1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Name: lzo |
---|
4 | Summary: Data compression library with very fast (de)compression |
---|
5 | Summary(ja): 高速なデータ圧縮ライブラリ |
---|
6 | Version: 2.03 |
---|
7 | Release: 3%{?_dist_release} |
---|
8 | |
---|
9 | Group: System Environment/Libraries |
---|
10 | License: GPLv2+ |
---|
11 | URL: http://www.oberhumer.com/opensource/lzo/ |
---|
12 | |
---|
13 | Source0: http://www.oberhumer.com/opensource/lzo/download/%{name}-%{version}.tar.gz |
---|
14 | Patch0: lzo-2.02-configure.patch |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
16 | BuildRequires: zlib-devel |
---|
17 | |
---|
18 | %description |
---|
19 | LZO is a portable lossless data compression library written in ANSI C. |
---|
20 | It offers pretty fast compression and very fast decompression. |
---|
21 | Decompression requires no memory. In addition there are slower |
---|
22 | compression levels achieving a quite competitive compression ratio |
---|
23 | while still decompressing at this very high speed. |
---|
24 | |
---|
25 | |
---|
26 | %package minilzo |
---|
27 | Summary: Mini version of lzo for apps which don't need the full version |
---|
28 | Group: System Environment/Libraries |
---|
29 | |
---|
30 | %description minilzo |
---|
31 | A small (mini) version of lzo for embedding into applications which don't need |
---|
32 | full blown lzo compression support. |
---|
33 | |
---|
34 | |
---|
35 | %package devel |
---|
36 | Summary: Development files for the lzo library |
---|
37 | Summary(ja): lzo ライブラリの開発ファイル |
---|
38 | Group: Development/Libraries |
---|
39 | Requires: %{name} = %{version}-%{release} |
---|
40 | Requires: %{name}-minilzo = %{version}-%{release} |
---|
41 | Requires: zlib-devel |
---|
42 | |
---|
43 | %description devel |
---|
44 | LZO is a portable lossless data compression library written in ANSI C. |
---|
45 | It offers pretty fast compression and very fast decompression. |
---|
46 | This package contains development files needed for lzo. |
---|
47 | |
---|
48 | |
---|
49 | %package -n compat32-%{name} |
---|
50 | Summary: Data compression library with very fast (de)compression |
---|
51 | Summary(ja): 高速なデータ圧縮ライブラリ |
---|
52 | Group: System Environment/Libraries |
---|
53 | |
---|
54 | %description -n compat32-%{name} |
---|
55 | LZO is a portable lossless data compression library written in ANSI C. |
---|
56 | It offers pretty fast compression and very fast decompression. |
---|
57 | Decompression requires no memory. In addition there are slower |
---|
58 | compression levels achieving a quite competitive compression ratio |
---|
59 | while still decompressing at this very high speed. |
---|
60 | |
---|
61 | |
---|
62 | %package -n compat32-%{name}-minilzo |
---|
63 | Summary: Mini version of lzo for apps which don't need the full version |
---|
64 | Group: System Environment/Libraries |
---|
65 | Requires: %{name}-minilzo = %{version}-%{release} |
---|
66 | |
---|
67 | %description -n compat32-%{name}-minilzo |
---|
68 | A small (mini) version of lzo for embedding into applications which don't need |
---|
69 | full blown lzo compression support. |
---|
70 | |
---|
71 | |
---|
72 | %package -n compat32-%{name}-devel |
---|
73 | Summary: Development files for the lzo library |
---|
74 | Summary(ja): lzo ライブラリの開発ファイル |
---|
75 | Group: Development/Libraries |
---|
76 | Requires: compat32-%{name} = %{version}-%{release} |
---|
77 | Requires: %{name}-minilzo = %{version}-%{release} |
---|
78 | Requires: compat32-zlib-devel |
---|
79 | |
---|
80 | %description -n compat32-%{name}-devel |
---|
81 | LZO is a portable lossless data compression library written in ANSI C. |
---|
82 | It offers pretty fast compression and very fast decompression. |
---|
83 | This package contains development files needed for lzo. |
---|
84 | |
---|
85 | |
---|
86 | %prep |
---|
87 | %setup -q |
---|
88 | %patch0 -p1 -z .configure |
---|
89 | # mark asm files as NOT needing execstack |
---|
90 | for i in asm/i386/src_gas/*.S; do |
---|
91 | echo '.section .note.GNU-stack,"",@progbits' >> $i |
---|
92 | done |
---|
93 | |
---|
94 | |
---|
95 | %build |
---|
96 | %configure --disable-dependency-tracking --disable-static --enable-shared |
---|
97 | make %{?_smp_mflags} |
---|
98 | # build minilzo too (bz 439979) |
---|
99 | gcc %{optflags} -fpic -Iinclude/lzo -o minilzo/minilzo.o -c minilzo/minilzo.c |
---|
100 | gcc -g -shared -o libminilzo.so.0 -Wl,-soname,libminilzo.so.0 minilzo/minilzo.o |
---|
101 | |
---|
102 | |
---|
103 | %install |
---|
104 | rm -rf $RPM_BUILD_ROOT |
---|
105 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
106 | rm $RPM_BUILD_ROOT%{_libdir}/liblzo2.la |
---|
107 | install -m 755 libminilzo.so.0 $RPM_BUILD_ROOT%{_libdir} |
---|
108 | ln -s libminilzo.so.0 $RPM_BUILD_ROOT%{_libdir}/libminilzo.so |
---|
109 | install -p -m 644 minilzo/minilzo.h $RPM_BUILD_ROOT%{_includedir}/lzo |
---|
110 | |
---|
111 | |
---|
112 | %check |
---|
113 | make check test |
---|
114 | |
---|
115 | |
---|
116 | %clean |
---|
117 | rm -rf $RPM_BUILD_ROOT |
---|
118 | |
---|
119 | |
---|
120 | %post -p /sbin/ldconfig |
---|
121 | |
---|
122 | %postun -p /sbin/ldconfig |
---|
123 | |
---|
124 | %post minilzo -p /sbin/ldconfig |
---|
125 | |
---|
126 | %postun minilzo -p /sbin/ldconfig |
---|
127 | |
---|
128 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
129 | |
---|
130 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
131 | |
---|
132 | %post -n compat32-%{name}-minilzo -p /sbin/ldconfig |
---|
133 | |
---|
134 | %postun -n compat32-%{name}-minilzo -p /sbin/ldconfig |
---|
135 | |
---|
136 | %files |
---|
137 | %defattr(-,root,root,-) |
---|
138 | %doc AUTHORS COPYING THANKS NEWS |
---|
139 | %{_libdir}/liblzo2.so.* |
---|
140 | |
---|
141 | %files minilzo |
---|
142 | %defattr(-,root,root,-) |
---|
143 | %doc minilzo/README.LZO |
---|
144 | %{_libdir}/libminilzo.so.0 |
---|
145 | |
---|
146 | %files devel |
---|
147 | %defattr(-,root,root,-) |
---|
148 | %doc doc/LZOAPI.TXT doc/LZO.FAQ doc/LZO.TXT |
---|
149 | %{_includedir}/lzo |
---|
150 | %{_libdir}/lib*lzo*.so |
---|
151 | |
---|
152 | # compat32 |
---|
153 | %if %{build_compat32} |
---|
154 | %files -n compat32-%{name} |
---|
155 | %defattr(-,root,root,-) |
---|
156 | %{_libdir}/liblzo2.so.* |
---|
157 | |
---|
158 | %files -n compat32-%{name}-minilzo |
---|
159 | %defattr(-,root,root,-) |
---|
160 | %{_libdir}/libminilzo.so.0 |
---|
161 | |
---|
162 | %files -n compat32-%{name}-devel |
---|
163 | %defattr(-,root,root,-) |
---|
164 | %{_libdir}/lib*lzo*.so |
---|
165 | %endif |
---|
166 | |
---|
167 | %changelog |
---|
168 | * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.03-3 |
---|
169 | - rebuilt with current VineSeed |
---|
170 | |
---|
171 | * Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.03-2 |
---|
172 | - added compat32 package for x86_64 arch support |
---|
173 | |
---|
174 | * Fri Aug 08 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.03-1 |
---|
175 | - initial build for Vine Linux |
---|
176 | |
---|
177 | * Thu May 1 2008 Lubomir Rintel <lkundrak@v3.sk> 2.03-1 |
---|
178 | - New upstream release |
---|
179 | - Changed the license to GPLv2+ |
---|
180 | |
---|
181 | * Wed Apr 2 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 2.02-5 |
---|
182 | - Fix configure failure with -Werror-implicit-function-declaration in CFLAGS |
---|
183 | - Add a minilzo subpackage which contains a shared version of minilzo, to be |
---|
184 | used by all applications which ship with their own copy of it (bz 439979) |
---|
185 | |
---|
186 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.02-4 |
---|
187 | - Autorebuild for GCC 4.3 |
---|
188 | |
---|
189 | * Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.02-3 |
---|
190 | - Update License tag for new Licensing Guidelines compliance |
---|
191 | |
---|
192 | * Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 2.02-2 |
---|
193 | - FE6 Rebuild |
---|
194 | |
---|
195 | * Wed Jul 26 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 2.02-1 |
---|
196 | - New upstream release 2.02, soname change! |
---|
197 | |
---|
198 | * Mon Jul 24 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.08-7 |
---|
199 | - Taking over as maintainer since Anvil has other priorities |
---|
200 | - Add a patch to fix asm detection on i386 (bug 145882, 145893). Thanks to |
---|
201 | Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe> for the initial patch. |
---|
202 | - Removed unused build dependency on nasm |
---|
203 | - Remove static lib |
---|
204 | - Cleanup %%doc a bit |
---|
205 | |
---|
206 | * Thu Mar 16 2006 Dams <anvil[AT]livna.org> - 1.08-6.fc5 |
---|
207 | - Rebuild for new gcc |
---|
208 | |
---|
209 | * Tue Jan 17 2006 Dams <anvil[AT]livna.org> - 1.08-5.fc5 |
---|
210 | - Bumped release for gcc 4.1 rebuild |
---|
211 | |
---|
212 | * Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.08-4 |
---|
213 | - rebuild on all arches |
---|
214 | |
---|
215 | * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> |
---|
216 | - rebuilt |
---|
217 | |
---|
218 | * Sun Apr 27 2003 Dams <anvil[AT]livna.org> 0:1.08-0.fdr.2 |
---|
219 | - Typo un devel description |
---|
220 | - Added post and postun scriptlets |
---|
221 | - Added URL in Source0 |
---|
222 | |
---|
223 | * Fri Apr 25 2003 Dams <anvil[AT]livna.org> |
---|
224 | - Initial build. |
---|