base-specs/liboil.spec
author yippi
Wed, 27 Feb 2008 20:47:10 +0000
changeset 11743 3547dd401d5c
parent 11717 b1a3d427860f
child 11916 ea5e343cad5e
permissions -rw-r--r--
2008-02-27 Brian Cameron <[email protected]> * base-specs/dbus.spec: Bump to 1.2.20. * base-specs/liboil.spec, patches/liboil-02-fixcopy.diff: Add patch needed to address compile issue when building gst-base-plugins.
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
#
11717
b1a3d427860f 2008-02-26 Brian Cameron <[email protected]>
yippi
parents: 11134
diff changeset
     4
# Copyright (c) 2008 Sun Microsystems, Inc.
9397
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
11717
b1a3d427860f 2008-02-26 Brian Cameron <[email protected]>
yippi
parents: 11134
diff changeset
    18
Version:		0.3.13
b1a3d427860f 2008-02-26 Brian Cameron <[email protected]>
yippi
parents: 11134
diff changeset
    19
Release:	 	1
9397
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
11717
b1a3d427860f 2008-02-26 Brian Cameron <[email protected]>
yippi
parents: 11134
diff changeset
    24
#owner:yippi date:2008-02-26 type:bug bugzilla:14635
10028
ead4d5496427 2007-06-08 Brian Cameron <[email protected]>
yippi
parents: 9450
diff changeset
    25
Patch1:                 liboil-01-fixcompile.diff
11743
3547dd401d5c 2008-02-27 Brian Cameron <[email protected]>
yippi
parents: 11717
diff changeset
    26
#owner:yippi date:2008-02-27 type:bug bugzilla:14643
3547dd401d5c 2008-02-27 Brian Cameron <[email protected]>
yippi
parents: 11717
diff changeset
    27
Patch2:                 liboil-02-fixcopy.diff
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
URL:			http://liboil.freedesktop.org/wiki/
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
Docdir:			%{_defaultdocdir}/doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
Autoreqprov:		on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
Prereq:                 /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
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
##     Package Defines Section     ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
%define			glib2_version	2.6.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
%define			zlib_version	1.2.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
%define			libxml2_version	2.6.7
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
%define			bzip2_version	1.0.2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
%define			libbonobo_version	2.6.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
%define			gnome_vfs_version	2.6.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
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
##  Package Requirements Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
Requires:		glib2	>=	%{glib2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
Requires:		libxml2	>=	%{libxml2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
BuildRequires:		glib2-devel >= %{glib2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
BuildRequires:		libxml2-devel	>=	%{libxml2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
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
##   Package Description Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
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
    60
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
    61
to improve performance.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
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
##   Package Development Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
Summary:		liboil development headers
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
Group:			Development/Libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
Requires:		%{name} = %{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
Requires:		glib2-devel >= %{glib2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
Requires:		libxml2-devel	>=	%{libxml2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
Requires:		zlib-devel	>=	%{zlib_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
Requires:		bzip2	>=	%{bzip2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
Requires:		libbonobo-devel	>=	%{libbonobo_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
Requires:		gnome-vfs-devel	>=	%{gnome_vfs_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
%description devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
liboil development headers
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
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
##   Package Preparation Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
%setup -q
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
%patch1 -p1
11743
3547dd401d5c 2008-02-27 Brian Cameron <[email protected]>
yippi
parents: 11717
diff changeset
    88
%patch2 -p1
9397
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
##      Package Build Section      ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
  CPUS=`getconf _NPROCESSORS_ONLN`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
  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
   102
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
aclocal $ACLOCAL_FLAGS -I ./m4
11134
803cf15a066b 2007-11-06 Brian Cameron <[email protected]>
yippi
parents: 10028
diff changeset
   108
autoheader
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
automake -a -c -f
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
CFLAGS="$RPM_OPT_FLAGS"			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
./configure --prefix=%{_prefix}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
	    --bindir=%{_bindir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
	    --libdir=%{_libdir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
            --includedir=%{_includedir}         \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
	    --sysconfdir=%{_sysconfdir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
	    %{gtk_doc_option}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
make
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
#Clean up unpackaged files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
rm $RPM_BUILD_ROOT%{_libdir}/*.a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
rm $RPM_BUILD_ROOT%{_libdir}/*.la
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
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
rm -rf $RPM_BUILD_ROOT
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
#########################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
##  Package Post[Un] Install Section   ##
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
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
%post
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
/sbin/ldconfig
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
%postun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
/sbin/ldconfig
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
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   140
##      Package Files Section      ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
#####################################
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
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
%{_libdir}/*.so.*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   147
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   148
%defattr(-,root,root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   149
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   150
%{_libdir}/*.so
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   151
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   152
%{_datadir}/gtk-doc/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   153
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   154
%changelog
11743
3547dd401d5c 2008-02-27 Brian Cameron <[email protected]>
yippi
parents: 11717
diff changeset
   155
* Wed Feb 27 2008 - [email protected]
3547dd401d5c 2008-02-27 Brian Cameron <[email protected]>
yippi
parents: 11717
diff changeset
   156
- Add patch liboil-02-fixcopy.diff to fix bug 14643.
11717
b1a3d427860f 2008-02-26 Brian Cameron <[email protected]>
yippi
parents: 11134
diff changeset
   157
* Mon Feb 25 2008 - [email protected]
b1a3d427860f 2008-02-26 Brian Cameron <[email protected]>
yippi
parents: 11134
diff changeset
   158
- Bump to 0.3.13 and remove upstream patch.
10028
ead4d5496427 2007-06-08 Brian Cameron <[email protected]>
yippi
parents: 9450
diff changeset
   159
* Fri Jun 08 2007 - [email protected]
ead4d5496427 2007-06-08 Brian Cameron <[email protected]>
yippi
parents: 9450
diff changeset
   160
- Bump to 0.3.12 and remove upstream patch.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   161
* Fri Feb 09 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   162
- 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
   163
  building with GCC.  Also add bugdb info.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   164
* Thu Nov 30 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   165
- Bump to 0.3.10.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   166
* Fri Nov  3 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   167
- 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
   168
  --without-gtk-doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   169
* Wed Jun 14 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   170
- Bump to 0.3.9.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   171
* Tue Jan 17 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   172
- Bump to 0.3.6.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   173
* Wed Jul 27 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   174
- Created.