9397
|
1 |
#
|
|
2 |
# spec file for package liboil
|
|
3 |
#
|
17844
|
4 |
# Copyright (c) 2010 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 |
#
|
16434
|
8 |
%define owner yippi
|
9397
|
9 |
# bugdb: bugzilla.freedesktop.org
|
|
10 |
#
|
16430
|
11 |
|
|
12 |
%define OSR 8733:0.3.14
|
|
13 |
|
9397
|
14 |
#####################################
|
|
15 |
## Package Information Section ##
|
|
16 |
#####################################
|
|
17 |
|
|
18 |
Name: liboil
|
14571
|
19 |
License: BSD, MIT, Motorola
|
9397
|
20 |
Group: System/Libraries
|
17844
|
21 |
Version: 0.3.17
|
11717
|
22 |
Release: 1
|
9397
|
23 |
Distribution: Java Desktop System
|
17865
|
24 |
Vendor: freedesktop.org
|
17283
|
25 |
Summary: Library of Optimized Inner Loops
|
9397
|
26 |
Source: http://liboil.freedesktop.org/download/%{name}-%version.tar.gz
|
|
27 |
URL: http://liboil.freedesktop.org/wiki/
|
|
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
29 |
Docdir: %{_defaultdocdir}/doc
|
|
30 |
Autoreqprov: on
|
|
31 |
Prereq: /sbin/ldconfig
|
17788
|
32 |
# date:2010-03-31 owner:yippi type:feature
|
17304
|
33 |
Patch1: liboil-01-fixxref-modules.diff
|
17788
|
34 |
# date:2010-03-31 owner:yippi type:feature bugzilla:27404
|
17787
|
35 |
Patch2: liboil-02-sunstudio.diff
|
17810
|
36 |
# This patch avoids compiling functions that crash when built with ss12u1.
|
|
37 |
# These bugs are fixed in ss12u2. This patch shoudl be removed when the
|
|
38 |
# compiler is updated. See compiler bug #6941041.
|
|
39 |
# date:2010-04-06 owner:yippi type:feature
|
|
40 |
Patch3: liboil-03-ss12u1.diff
|
|
41 |
# This patch avoids compiling functions that crash when built with ss11, but
|
|
42 |
# work fine when built with ss12u1. This patch should be removed when the
|
|
43 |
# compiler is updated.
|
|
44 |
# date:2010-04-08 owner:yippi type:feature
|
|
45 |
Patch4: liboil-04-ss11.diff
|
|
46 |
# date:2010-04-08 owner:yippi type:feature
|
|
47 |
# When built with Sun Studio compiler, the SSE and SSE2 code needs to be
|
|
48 |
# separated into separate files. Since liboil combines SSE/SSE2 support in
|
|
49 |
# the same files, only support SSE if SSE2 is supported. It would be better
|
|
50 |
# to fix the code to separate the SSE and SSE2 code when there is time.
|
|
51 |
Patch5: liboil-05-sse.diff
|
17304
|
52 |
|
9397
|
53 |
#####################################
|
|
54 |
## Package Defines Section ##
|
|
55 |
#####################################
|
|
56 |
|
|
57 |
%define glib2_version 2.6.0
|
|
58 |
%define zlib_version 1.2.1
|
|
59 |
%define libxml2_version 2.6.7
|
|
60 |
%define bzip2_version 1.0.2
|
|
61 |
%define libbonobo_version 2.6.0
|
|
62 |
%define gnome_vfs_version 2.6.0
|
|
63 |
|
|
64 |
#####################################
|
|
65 |
## Package Requirements Section ##
|
|
66 |
#####################################
|
|
67 |
|
|
68 |
Requires: glib2 >= %{glib2_version}
|
|
69 |
Requires: libxml2 >= %{libxml2_version}
|
|
70 |
BuildRequires: glib2-devel >= %{glib2_version}
|
|
71 |
BuildRequires: libxml2-devel >= %{libxml2_version}
|
|
72 |
|
|
73 |
#####################################
|
|
74 |
## Package Description Section ##
|
|
75 |
#####################################
|
|
76 |
|
|
77 |
%description
|
|
78 |
liboil is a library of simple functions, generally loops, that are optimized
|
|
79 |
for various CPU's. These functions are typically used by media applications
|
|
80 |
to improve performance.
|
|
81 |
|
|
82 |
#####################################
|
|
83 |
## Package Development Section ##
|
|
84 |
#####################################
|
|
85 |
|
|
86 |
%package devel
|
|
87 |
Summary: liboil development headers
|
|
88 |
Group: Development/Libraries
|
|
89 |
Requires: %{name} = %{version}
|
|
90 |
Requires: glib2-devel >= %{glib2_version}
|
|
91 |
Requires: libxml2-devel >= %{libxml2_version}
|
|
92 |
Requires: zlib-devel >= %{zlib_version}
|
|
93 |
Requires: bzip2 >= %{bzip2_version}
|
|
94 |
Requires: libbonobo-devel >= %{libbonobo_version}
|
|
95 |
Requires: gnome-vfs-devel >= %{gnome_vfs_version}
|
|
96 |
|
|
97 |
%description devel
|
|
98 |
liboil development headers
|
|
99 |
|
|
100 |
#####################################
|
|
101 |
## Package Preparation Section ##
|
|
102 |
#####################################
|
|
103 |
|
|
104 |
%prep
|
|
105 |
%setup -q
|
17304
|
106 |
%patch1 -p1
|
17787
|
107 |
%patch2 -p1
|
|
108 |
%patch3 -p1
|
17810
|
109 |
%patch4 -p1
|
|
110 |
%patch5 -p1
|
9397
|
111 |
|
|
112 |
#####################################
|
|
113 |
## Package Build Section ##
|
|
114 |
#####################################
|
|
115 |
|
|
116 |
|
|
117 |
%build
|
|
118 |
%ifos linux
|
|
119 |
if [ -x /usr/bin/getconf ]; then
|
|
120 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
121 |
fi
|
|
122 |
%else
|
|
123 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
124 |
%endif
|
|
125 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
126 |
CPUS=1
|
|
127 |
fi
|
|
128 |
|
|
129 |
aclocal $ACLOCAL_FLAGS -I ./m4
|
11134
|
130 |
autoheader
|
9397
|
131 |
automake -a -c -f
|
|
132 |
autoconf
|
|
133 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
134 |
./configure --prefix=%{_prefix} \
|
|
135 |
--bindir=%{_bindir} \
|
|
136 |
--libdir=%{_libdir} \
|
17787
|
137 |
--includedir=%{_includedir} \
|
9397
|
138 |
--sysconfdir=%{_sysconfdir} \
|
|
139 |
%{gtk_doc_option}
|
|
140 |
make
|
|
141 |
|
|
142 |
%install
|
|
143 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
144 |
|
|
145 |
%clean
|
|
146 |
rm -rf $RPM_BUILD_ROOT
|
|
147 |
|
|
148 |
#########################################
|
|
149 |
## Package Post[Un] Install Section ##
|
|
150 |
#########################################
|
|
151 |
|
|
152 |
%post
|
|
153 |
/sbin/ldconfig
|
|
154 |
|
|
155 |
%postun
|
|
156 |
/sbin/ldconfig
|
|
157 |
|
|
158 |
#####################################
|
|
159 |
## Package Files Section ##
|
|
160 |
#####################################
|
|
161 |
|
|
162 |
%files
|
|
163 |
%defattr(-,root,root)
|
|
164 |
%{_libdir}/*.so.*
|
|
165 |
|
|
166 |
%files devel
|
|
167 |
%defattr(-,root,root)
|
|
168 |
%{_includedir}/*
|
|
169 |
%{_libdir}/*.so
|
|
170 |
%{_libdir}/pkgconfig/*
|
|
171 |
%{_datadir}/gtk-doc/*
|
|
172 |
|
|
173 |
%changelog
|
17844
|
174 |
* Thu Apr 15 2010 - [email protected]
|
|
175 |
- Bump to 0.3.17.
|
17304
|
176 |
* Tue Jan 12 2010 - [email protected]
|
|
177 |
- Add liboil-01-fixxref-modules to fix build issue.
|
17283
|
178 |
* Fri Jan 08 2009 - [email protected]
|
|
179 |
- Fix Summary.
|
15502
|
180 |
* Thu Mar 26 2009 - [email protected]
|
|
181 |
- Bump to 0.3.16.
|
13568
|
182 |
* Fri Sep 12 2008 - [email protected]
|
|
183 |
- Bump to 0.3.15.
|
11916
|
184 |
* Wed Mar 26 2008 - [email protected]
|
|
185 |
- Bump to 0.3.14.
|
11743
|
186 |
* Wed Feb 27 2008 - [email protected]
|
|
187 |
- Add patch liboil-02-fixcopy.diff to fix bug 14643.
|
11717
|
188 |
* Mon Feb 25 2008 - [email protected]
|
|
189 |
- Bump to 0.3.13 and remove upstream patch.
|
10028
|
190 |
* Fri Jun 08 2007 - [email protected]
|
|
191 |
- Bump to 0.3.12 and remove upstream patch.
|
9397
|
192 |
* Fri Feb 09 2007 - [email protected]
|
|
193 |
- Add patch to support hardware acelleration detection on x86 when
|
|
194 |
building with GCC. Also add bugdb info.
|
|
195 |
* Thu Nov 30 2006 - [email protected]
|
|
196 |
- Bump to 0.3.10.
|
|
197 |
* Fri Nov 3 2006 - [email protected]
|
|
198 |
- use %gtk_doc_option in configure so that it can be disabled using
|
|
199 |
--without-gtk-doc
|
|
200 |
* Wed Jun 14 2006 - [email protected]
|
|
201 |
- Bump to 0.3.9.
|
|
202 |
* Tue Jan 17 2006 - [email protected]
|
|
203 |
- Bump to 0.3.6.
|
|
204 |
* Wed Jul 27 2005 - [email protected]
|
|
205 |
- Created.
|