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