1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Summary: Library of simple functions optimized for various CPUs |
---|
4 | Name: liboil |
---|
5 | Version: 0.3.14 |
---|
6 | Release: 3%{?_dist_release} |
---|
7 | License: LGPL |
---|
8 | Group: System Environment/Libraries |
---|
9 | URL: http://liboil.freedesktop.org/ |
---|
10 | |
---|
11 | Source: http://liboil.freedesktop.org/download/liboil-%{version}.tar.gz |
---|
12 | Patch10: %{name}-0.3.8-altivec.patch |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | BuildRequires: glib2-devel |
---|
16 | |
---|
17 | %description |
---|
18 | Liboil is a library of simple functions that are optimized for various CPUs. |
---|
19 | These functions are generally loops implementing simple algorithms, such as |
---|
20 | converting an array of N integers to floating-point numbers or multiplying |
---|
21 | and summing an array of N numbers. Such functions are candidates for |
---|
22 | significant optimization using various techniques, especially by using |
---|
23 | extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.). |
---|
24 | |
---|
25 | %package devel |
---|
26 | Summary: Development files and static library for liboil |
---|
27 | Group: Development/Libraries |
---|
28 | Requires: %{name} = %{version}-%{release} |
---|
29 | |
---|
30 | %description devel |
---|
31 | Liboil is a library of simple functions that are optimized for various CPUs. |
---|
32 | These functions are generally loops implementing simple algorithms, such as |
---|
33 | converting an array of N integers to floating-point numbers or multiplying |
---|
34 | and summing an array of N numbers. Such functions are candidates for |
---|
35 | significant optimization using various techniques, especially by using |
---|
36 | extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.). |
---|
37 | |
---|
38 | This package contains vevelopment files and static library for liboil. |
---|
39 | |
---|
40 | # compat32 |
---|
41 | %package -n compat32-%{name} |
---|
42 | Summary: Library of simple functions optimized for various CPUs |
---|
43 | Group: System Environment/Libraries |
---|
44 | |
---|
45 | %description -n compat32-%{name} |
---|
46 | Liboil is a library of simple functions that are optimized for various CPUs. |
---|
47 | These functions are generally loops implementing simple algorithms, such as |
---|
48 | converting an array of N integers to floating-point numbers or multiplying |
---|
49 | and summing an array of N numbers. Such functions are candidates for |
---|
50 | significant optimization using various techniques, especially by using |
---|
51 | extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.). |
---|
52 | |
---|
53 | %package -n compat32-%{name}-devel |
---|
54 | Summary: Development files and static library for liboil |
---|
55 | Group: Development/Libraries |
---|
56 | Requires: compat32-%{name} = %{version}-%{release} |
---|
57 | Requires: %{name}-devel = %{version}-%{release} |
---|
58 | |
---|
59 | %description -n compat32-%{name}-devel |
---|
60 | Liboil is a library of simple functions that are optimized for various CPUs. |
---|
61 | These functions are generally loops implementing simple algorithms, such as |
---|
62 | converting an array of N integers to floating-point numbers or multiplying |
---|
63 | and summing an array of N numbers. Such functions are candidates for |
---|
64 | significant optimization using various techniques, especially by using |
---|
65 | extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.). |
---|
66 | |
---|
67 | This package contains vevelopment files and static library for liboil. |
---|
68 | |
---|
69 | %prep |
---|
70 | %setup -q |
---|
71 | %ifarch ppc |
---|
72 | %patch10 -p1 |
---|
73 | %endif |
---|
74 | |
---|
75 | %build |
---|
76 | %configure |
---|
77 | %__make |
---|
78 | |
---|
79 | %install |
---|
80 | %__rm -rf %{buildroot} |
---|
81 | %makeinstall |
---|
82 | |
---|
83 | # remove .a and .la |
---|
84 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
85 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
86 | |
---|
87 | %clean |
---|
88 | %__rm -rf %{buildroot} |
---|
89 | |
---|
90 | %post -p /sbin/ldconfig |
---|
91 | |
---|
92 | %postun -p /sbin/ldconfig |
---|
93 | |
---|
94 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
95 | |
---|
96 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
97 | |
---|
98 | %files |
---|
99 | %defattr(-,root,root) |
---|
100 | %doc AUTHORS COPYING NEWS README |
---|
101 | %{_libdir}/*.so.* |
---|
102 | |
---|
103 | %files devel |
---|
104 | %defattr(-,root,root) |
---|
105 | %{_datadir}/gtk-doc/html/liboil |
---|
106 | %{_includedir}/* |
---|
107 | %{_libdir}/*.so |
---|
108 | #{_libdir}/*.a |
---|
109 | %{_libdir}/pkgconfig/*.pc |
---|
110 | |
---|
111 | # compat32 |
---|
112 | %if %{build_compat32} |
---|
113 | %files -n compat32-%{name} |
---|
114 | %defattr(-,root,root) |
---|
115 | %{_libdir}/*.so.* |
---|
116 | |
---|
117 | %files -n compat32-%{name}-devel |
---|
118 | %defattr(-,root,root) |
---|
119 | %{_libdir}/*.so |
---|
120 | #{_libdir}/*.a |
---|
121 | %{_libdir}/pkgconfig/*.pc |
---|
122 | %endif |
---|
123 | |
---|
124 | %changelog |
---|
125 | * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.3.14-3 |
---|
126 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
127 | |
---|
128 | * Sun May 10 2009 NAKAMURA Kenta <kenta@vinelinux.org> 0.3.14-2vl5 |
---|
129 | - added compat32 package for x86_64 arch support |
---|
130 | - removed static library from devel package |
---|
131 | |
---|
132 | * Fri Mar 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.14-1vl5 |
---|
133 | - new upstream release |
---|
134 | |
---|
135 | * Wed Sep 12 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.12-0vl1 |
---|
136 | - new upstream release |
---|
137 | |
---|
138 | * Sat Mar 25 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.3.8-0vl2 |
---|
139 | - added Patch10 (ad-hoc) for ppc |
---|
140 | (this problem might be originally due to gcc-3.3.6's bug) |
---|
141 | |
---|
142 | * Fri Mar 24 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.8-0vl1 |
---|
143 | - new upstream release |
---|
144 | - remove .la |
---|
145 | |
---|
146 | * Fri Jan 20 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.3.6-0vl1 |
---|
147 | - initial build |
---|