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