source: projects/specs/trunk/lib/libo/liboil/liboil-vl.spec @ 8915

Revision 8915, 4.6 KB checked in by Takemikaduchi, 10 years ago (diff)

dash,liboil,libutempter,virtuoso-opensource,wavpack: new upstream release
others: rebuild

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.17
6Release:        1%{?_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}
81make install DESTDIR=$RPM_BUILD_ROOT
82
83rm -f $RPM_BUILD_ROOT%{_bindir}/oil-bugreport
84
85# remove .a and .la
86rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
87rm -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
124* Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.17-1
125- update to 0.3.17
126
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
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
Note: See TracBrowser for help on using the repository browser.