source: projects/specs/branches/6/lib/libo/liboil/liboil-vl.spec @ 1988

Revision 1988, 4.5 KB checked in by owa, 13 years ago (diff)

rebuilt with rpm-4.8.1

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3Summary:        Library of simple functions optimized for various CPUs
4Name:           liboil
5Version:        0.3.14
6Release:        3%{?_dist_release}
7License:        LGPL
8Group:          System Environment/Libraries
9URL:            http://liboil.freedesktop.org/
10
11Source:         http://liboil.freedesktop.org/download/liboil-%{version}.tar.gz
12Patch10:        %{name}-0.3.8-altivec.patch
13
14BuildRoot:      %{_tmppath}/%{name}-%{version}-root
15BuildRequires:  glib2-devel
16
17%description
18Liboil is a library of simple functions that are optimized for various CPUs.
19These functions are generally loops implementing simple algorithms, such as
20converting an array of N integers to floating-point numbers or multiplying
21and summing an array of N numbers. Such functions are candidates for
22significant optimization using various techniques, especially by using
23extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).
24
25%package devel
26Summary:        Development files and static library for liboil
27Group:          Development/Libraries
28Requires:       %{name} = %{version}-%{release}
29
30%description devel
31Liboil is a library of simple functions that are optimized for various CPUs.
32These functions are generally loops implementing simple algorithms, such as
33converting an array of N integers to floating-point numbers or multiplying
34and summing an array of N numbers. Such functions are candidates for
35significant optimization using various techniques, especially by using
36extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).
37
38This package contains vevelopment files and static library for liboil.
39
40# compat32
41%package -n compat32-%{name}
42Summary:        Library of simple functions optimized for various CPUs
43Group:          System Environment/Libraries
44
45%description -n compat32-%{name}
46Liboil is a library of simple functions that are optimized for various CPUs.
47These functions are generally loops implementing simple algorithms, such as
48converting an array of N integers to floating-point numbers or multiplying
49and summing an array of N numbers. Such functions are candidates for
50significant optimization using various techniques, especially by using
51extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).
52
53%package -n compat32-%{name}-devel
54Summary:        Development files and static library for liboil
55Group:          Development/Libraries
56Requires:       compat32-%{name} = %{version}-%{release}
57Requires:       %{name}-devel = %{version}-%{release}
58
59%description -n compat32-%{name}-devel
60Liboil is a library of simple functions that are optimized for various CPUs.
61These functions are generally loops implementing simple algorithms, such as
62converting an array of N integers to floating-point numbers or multiplying
63and summing an array of N numbers. Such functions are candidates for
64significant optimization using various techniques, especially by using
65extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).
66
67This 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
84rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
85rm -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
Note: See TracBrowser for help on using the repository browser.