base-specs/liboil.spec
author laca
Wed, 28 Feb 2007 18:57:18 +0000
changeset 9397 b16e349d18c5
child 9430 b65ea0ce1f12
permissions -rw-r--r--
the easy part of the reorg (most files moved around)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package liboil
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# Owner: yippi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
# bugdb: bugzilla.freedesktop.org
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
##   Package Information Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Name:			liboil
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
License:		LGPL
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Group:			System/Libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Version:		0.3.10
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
Release:	 	2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
Distribution:		Java Desktop System
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Vendor:			Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
Summary:		The GNOME Structured File Library
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
Source:			http://liboil.freedesktop.org/download/%{name}-%version.tar.gz
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
# date:2007-02-09 owner:yippi type:bug bugster:9925
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
Patch1:                 liboil-01-detection.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
URL:			http://liboil.freedesktop.org/wiki/
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Docdir:			%{_defaultdocdir}/doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
Autoreqprov:		on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
Prereq:                 /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
##     Package Defines Section     ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
%define			glib2_version	2.6.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
%define			zlib_version	1.2.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
%define			libxml2_version	2.6.7
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
%define			bzip2_version	1.0.2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
%define			libbonobo_version	2.6.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
%define			gnome_vfs_version	2.6.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
##  Package Requirements Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
Requires:		glib2	>=	%{glib2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
Requires:		libxml2	>=	%{libxml2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
BuildRequires:		glib2-devel >= %{glib2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
BuildRequires:		libxml2-devel	>=	%{libxml2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
##   Package Description Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
liboil is a library of simple functions, generally loops, that are optimized
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
for various CPU's.  These functions are typically used by media applications
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
to improve performance.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
##   Package Development Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
Summary:		liboil development headers
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
Group:			Development/Libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
Requires:		%{name} = %{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
Requires:		glib2-devel >= %{glib2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
Requires:		libxml2-devel	>=	%{libxml2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
Requires:		zlib-devel	>=	%{zlib_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
Requires:		bzip2	>=	%{bzip2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
Requires:		libbonobo-devel	>=	%{libbonobo_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
Requires:		gnome-vfs-devel	>=	%{gnome_vfs_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
%description devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
liboil development headers
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
##   Package Preparation Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
%setup -q
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
%patch1 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
##      Package Build Section      ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
  CPUS=`getconf _NPROCESSORS_ONLN`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
aclocal $ACLOCAL_FLAGS -I ./m4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
automake -a -c -f
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
CFLAGS="$RPM_OPT_FLAGS"			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
./configure --prefix=%{_prefix}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
	    --bindir=%{_bindir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
	    --libdir=%{_libdir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
            --includedir=%{_includedir}         \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
	    --sysconfdir=%{_sysconfdir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
	    %{gtk_doc_option}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
make
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
#Clean up unpackaged files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
rm $RPM_BUILD_ROOT%{_libdir}/*.a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
rm $RPM_BUILD_ROOT%{_libdir}/*.la
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
#########################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
##  Package Post[Un] Install Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
#########################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
%post
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
/sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
%postun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
/sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
##      Package Files Section      ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   140
%defattr(-,root,root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
%{_libdir}/*.so.*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   144
%defattr(-,root,root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
%{_libdir}/*.so
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   147
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   148
%{_datadir}/gtk-doc/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   149
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   150
%changelog
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   151
* Fri Feb 09 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   152
- Add patch to support hardware acelleration detection on x86 when
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   153
  building with GCC.  Also add bugdb info.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   154
* Thu Nov 30 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   155
- Bump to 0.3.10.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   156
* Fri Nov  3 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   157
- use %gtk_doc_option in configure so that it can be disabled using
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   158
  --without-gtk-doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   159
* Wed Jun 14 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   160
- Bump to 0.3.9.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   161
* Tue Jan 17 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   162
- Bump to 0.3.6.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   163
* Wed Jul 27 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   164
- Created.