[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
| 3 | Summary: Library of simple functions optimized for various CPUs |
---|
| 4 | Name: liboil |
---|
[8915] | 5 | Version: 0.3.17 |
---|
| 6 | Release: 1%{?_dist_release} |
---|
[521] | 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} |
---|
[8915] | 81 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
[521] | 82 | |
---|
[8915] | 83 | rm -f $RPM_BUILD_ROOT%{_bindir}/oil-bugreport |
---|
| 84 | |
---|
[521] | 85 | # remove .a and .la |
---|
| 86 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
| 87 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 88 | |
---|
| 89 | %clean |
---|
| 90 | %__rm -rf %{buildroot} |
---|
| 91 | |
---|
| 92 | %post -p /sbin/ldconfig |
---|
| 93 | |
---|
| 94 | %postun -p /sbin/ldconfig |
---|
| 95 | |
---|
| 96 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 97 | |
---|
| 98 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 99 | |
---|
| 100 | %files |
---|
| 101 | %defattr(-,root,root) |
---|
| 102 | %doc AUTHORS COPYING NEWS README |
---|
| 103 | %{_libdir}/*.so.* |
---|
| 104 | |
---|
| 105 | %files devel |
---|
| 106 | %defattr(-,root,root) |
---|
| 107 | %{_datadir}/gtk-doc/html/liboil |
---|
| 108 | %{_includedir}/* |
---|
| 109 | %{_libdir}/*.so |
---|
| 110 | %{_libdir}/pkgconfig/*.pc |
---|
| 111 | |
---|
| 112 | # compat32 |
---|
| 113 | %if %{build_compat32} |
---|
| 114 | %files -n compat32-%{name} |
---|
| 115 | %defattr(-,root,root) |
---|
| 116 | %{_libdir}/*.so.* |
---|
| 117 | |
---|
| 118 | %files -n compat32-%{name}-devel |
---|
| 119 | %defattr(-,root,root) |
---|
| 120 | %{_libdir}/*.so |
---|
| 121 | %endif |
---|
| 122 | |
---|
| 123 | %changelog |
---|
[8915] | 124 | * Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.17-1 |
---|
| 125 | - update to 0.3.17 |
---|
| 126 | |
---|
[1988] | 127 | * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.3.14-3 |
---|
| 128 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 129 | |
---|
[521] | 130 | * Sun May 10 2009 NAKAMURA Kenta <kenta@vinelinux.org> 0.3.14-2vl5 |
---|
| 131 | - added compat32 package for x86_64 arch support |
---|
| 132 | - removed static library from devel package |
---|
| 133 | |
---|
| 134 | * Fri Mar 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.14-1vl5 |
---|
| 135 | - new upstream release |
---|
| 136 | |
---|
| 137 | * Wed Sep 12 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.12-0vl1 |
---|
| 138 | - new upstream release |
---|
| 139 | |
---|
| 140 | * Sat Mar 25 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.3.8-0vl2 |
---|
| 141 | - added Patch10 (ad-hoc) for ppc |
---|
| 142 | (this problem might be originally due to gcc-3.3.6's bug) |
---|
| 143 | |
---|
| 144 | * Fri Mar 24 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.8-0vl1 |
---|
| 145 | - new upstream release |
---|
| 146 | - remove .la |
---|
| 147 | |
---|
| 148 | * Fri Jan 20 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.3.6-0vl1 |
---|
| 149 | - initial build |
---|