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