%define libname_orig lib%{name} %define libname %mklibname %{name}_ 1 %define buildpdf 0 Summary: Extremely powerful file compression utility Name: bzip2 Version: 1.0.3 Release: %mkrel 6 License: BSD Group: Archiving/Compression URL: http://www.bzip.org/index.html Source0: http://www.bzip.org/%{version}/%{name}-%{version}.tar.bz2 Source1: bzgrep Source2: bzme Source3: bzme.1 Patch0: bzip2-1.0.2-mktemp.patch Patch1: bzip2-1.0.3-makefile.patch Patch3: bzip2-1.0.2-bzgrep.patch Patch4: bzip2-1.0.2-CAN-2005-0953.patch Patch5: bzip2-1.0.2-NULL-ptr-check.patch Requires: mktemp Requires: %{libname} = %{version} %if %buildpdf BuildRequires: tetex-dvips tetex-latex %endif BuildRequires: texinfo libtool BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Bzip2 compresses files using the Burrows-Wheeler block-sorting text compression algorithm, and Huffman coding. Compression is generally considerably better than that achieved by more conventional LZ77/LZ78-based compressors, and approaches the performance of the PPM family of statistical compressors. The command-line options are deliberately very similar to those of GNU Gzip, but they are not identical. %package -n %{libname} Summary: Libraries for developing apps which will use bzip2 Group: System/Libraries %description -n %{libname} Library of bzip2 functions, for developing apps which will use the bzip2 library (aka libz2). %package -n %{libname}-devel Summary: Header files for developing apps which will use bzip2 Group: Development/C Requires: %{libname} = %{version} Provides: %{libname_orig}-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{name}-devel %description -n %{libname}-devel Header files and static library of bzip2 functions, for developing apps which will use the bzip2 library (aka libz2). %prep %setup -q %patch0 -p1 -b .mktemp %patch1 -p1 -b .makefile %patch3 -p1 %patch4 -p1 %patch5 -p1 -b .nullptr echo "lib = %{_lib}" >> config.in echo "CFLAGS = %{optflags}" >> config.in cp %{SOURCE1} bzgrep cp %{SOURCE2} bzme cp %{SOURCE3} bzme.1 %build %make -f Makefile-libbz2_so %make %if %buildpdf texi2dvi --pdf manual.texi %endif %install rm -rf %{buildroot} %makeinstall_std install -m0755 bzme %{buildroot}%{_bindir}/ install -m0755 bzgrep %{buildroot}%{_bindir}/ install -m0644 bzgrep.1 %{buildroot}%{_mandir}/man1/ cat > %{buildroot}%{_bindir}/bzless <<EOF #!/bin/sh %{_bindir}/bunzip2 -c "\$@" | %{_bindir}/less EOF chmod 755 %{buildroot}%{_bindir}/bzless install -m 644 %{SOURCE3} %{buildroot}%{_mandir}/man1/ %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean rm -rf %{buildroot} %files %defattr(-,root,root,755) %doc README LICENSE %{_bindir}/* %{_mandir}/man1/* %files -n %{libname} %defattr(-,root,root,755) %doc LICENSE %{_libdir}/libbz2.so.* %files -n %{libname}-devel %defattr(-,root,root,755) %doc *.html LICENSE %if %buildpdf %doc manual.pdf %endif %{_libdir}/libbz2.a %{_libdir}/libbz2.la %{_libdir}/libbz2.so %{_includedir}/*.h %changelog * Sat Jul 29 2006 Oden Eriksson <oeriksson@mandriva.com> 1.0.3-6mdk - sync with fedora (1.0.3-2.2.1) - dropped the progress patch (P2) because it don't work with large files, fixes #22262 * Fri May 12 2006 Stefan van der Eijk <stefan@eijk.nu> 1.0.3-5mdk - rebuild for sparc * Tue Jan 31 2006 Oden Eriksson <oeriksson@mandriva.com> 1.0.3-4mdk - merge with the 1.0.3-1.2.20060mdk relese (CVE-2005-0953,CVE-2005-0758) * Sat Jan 07 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.0.3-3mdk - add BuildRequires: libtool * Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 1.0.3-2mdk - Rebuild * Tue Jun 7 2005 Götz Waschk <waschk@mandriva.org> 1.0.3-1mdk - update patch 1 - fix URLs - new version * Fri Feb 11 2005 Olivier Blin <oblin@mandrakesoft.com> 1.0.2-20mdk - bzme: allow to force compression with -F option (#11183, patch from Michael Scherer) - fix summary ended with dot * Thu Sep 16 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.0.2-19mdk - ship with bzdiff, bzmore - automake build is evil here for a so small project * Mon Apr 05 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.2-18mdk - fix url * Sun Nov 23 2003 Stefan van der Eijk <stefan@eijk.nu> 1.0.2-17mdk - rebuild 4 reupload (alpha) * Tue Jul 08 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.0.2-16mdk - rebuild for new provides * Fri May 23 2003 Stefan van der Eijk <stefan@eijk.nu> 1.0.2-15mdk - BuildRequires - quiet setup - rebuild * Mon Apr 14 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.2-14mdk - let use %%mklibname - remove now useless "chmod +x ./configure" that mistakely confuse rpmlint's configure_libdir_spec_regex - fix -devel provides * Tue Feb 04 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.2-13mdk - kill stupid message * Tue Feb 04 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.2-12mdk - implements a progress counter (in %) and display the percentage of the original file the new file size is (Oden Eriksson) * Thu Jan 02 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.2-11mdk - add missing headers * Thu Jul 25 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.2-10mdk - fix configure-without-libdir-spec - gcc3.2 rebuild * Mon Jul 08 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.0.2-9mdk - Removed utterly wrong provides in main package. * Sat May 11 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.2-8mdk - bzme-1.8: handle gziped files with trailling characters * Mon May 06 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.0.2-7mdk - Automated rebuild in gcc3.1 environment * Tue Apr 30 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.2-6mdk - bzme-1.7: handle file names with spaces * Wed Apr 24 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.2-5mdk - add bzme(1) man page - bzme-1.6: - print error message on stderr rather than on stdin - factorize/simplify zip method (fix erase temp files on bzip2ing error) - typo fixes - simplify for_each(file) loop - add "Know bugs" and TODO sections - add -h and -k options - if -k (keep) option is used, keep all files * Wed Mar 06 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.2-4mdk - bzme: * make zip method acting as *z one (remove orginal file, keeping only smalest file, displaying size gain, ...) thus giving occasion to factorize some common code * check that the source file exists * handle corrupted zip file * comment the script and verbos-ize() some old changes * use cheaper shell tests * add GPL reference * update online help to reflect optional options and newer supported formats * remove dependancy on sed by using ${1%old}new_extension * Tue Mar 05 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.2-3mdk - bzme: add zip support * Thu Feb 14 2002 Stefan van der Eijk <stefan@eijk.nu> 1.0.2-2mdk - BuildRequires * Fri Feb 01 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.2-1mdk - new release * Thu Jan 24 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-18mdk - add chmou force option to bzme to overwrite existing bzip2 files note that it won't force switch from gzip to bzip2 format if disk space is larger * Tue Oct 30 2001 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-17mdk - build release * Wed Oct 10 2001 Stefan van der Eijk <stefan@eijk.nu> 1.0.1-16mdk - fix Provides and Obsoletes: bzip2-devel * Tue Oct 09 2001 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-15mdk - fixes for lord rpmlint - since we obsoletes it, provides also bzip2-devel * Mon Aug 06 2001 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-14mdk - add license in %%_docdir * Tue Jun 26 2001 Jeff Garzik <jgarzik@mandrakesoft.com> 1.0.1-13mdk - regenerate libtool/autoconf/automake at build time, to fix build - remove --enable-shared and --enable-static configure args, redundant * Wed May 30 2001 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-12mdk - new bzme : use less cpu time * Tue May 08 2001 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-11mdk - s!Copyright!License - bzme: fix error path when eof (or any other decompressing error); then we keep the {{{t,}g,}}{z,Z} one, not the bzip2 one * Sat Mar 24 2001 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0.1-10mdk - fixed changelog comment (macro expansion). * Thu Mar 22 2001 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0.1-9mdk - use of %%configure. - rebuild with large file support. * Mon Feb 12 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.1-8mdk - devel package has to provide the libname without major name #- bump soname version to 2 * Wed Dec 06 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-7mdk - split libbz2 in %{libname} and headers in %{libname}devel - fix %%{tmppatch} * Tue Jul 25 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-6mdk - BM * Thu Jul 06 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-5mdk - let my bzme script handle old .Z archives * Wed Jul 05 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-4mdk - increase the .so version for compatibility reason (to force upgrades) (thanks Fred) - let spec-helper bzip2 man-pages (and let packager use shrtcrt) * Tue Jul 04 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-3mdk - fix my bzme script so that an error in a batch won't stop the processing of the remaining files to compress * Mon Jul 03 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-2mdk - bzip2 a gziped patch (saves 48k on SRPMS cd :-) ) * Mon Jun 26 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-1mdk - 1.0.1 release - add URL - fix libbzip2 API * Fri May 5 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.9.5d-9mdk - corrected shlib patch to have a correct soname. * Wed Apr 19 2000 François Pons <fpons@mandrakesoft.com> 0.9.5d-8mdk - remove 1.0pre5 of bzip2, titi sucks ? * Wed Mar 22 2000 Pixel <pixel@mandrakesoft.com> 0.9.5d-7mdk - remove provides bzip2 * Wed Mar 21 2000 Daouda LO <daouda@mandrakesoft.com> 0.9.5d-6mdk - change to new group architecture * Sat Mar 4 2000 Pixel <pixel@mandrakesoft.com> 0.9.5d-5mdk - remove the silly commented out chmod in %post (that way, bzip2 don't need /bin/sh anymore) * Thu Mar 02 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> - fix bzme script : now it use a lot less disk space. * Thu Oct 21 1999 Thierry Vignaud <tvignaud@mandrakesoft.com> - add bzme script * Tue Oct 19 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Build release. * Thu Sep 16 1999 Thierry Vignaud <tvignaud@mandrakesoft.com> - 0.9.5d (sanity fixes such as warnings killers casts) * Wed Aug 25 1999 Axalon Bloodstone <axalon@linux-mandrake.com> - No really, allow users into the docdir.. (don't put %%attr on %%doc files) * Wed Aug 25 1999 Axalon Bloodstone <axalon@linux-mandrake.com> - %%defattr(-,root,root,755) * Tue Aug 17 1999 Thierry Vignaud <tvignaud@mandrakesoft.com> - fix a bug in the spec - clean spec * Fri Aug 13 1999 Thierry Vignaud <tvignaud@mandrakesoft.com> - fix bogus permissions on doc * Wed Aug 11 1999 Thierry Vignaud <tvignaud@mandrakesoft.com> - 0.9.5c * Thu Aug 05 1999 Thierry Vignaud <tvignaud@mandrakesoft.com> - updated to 0.9.5b - remove unused patch - merge all packages in one - clean spec * Tue Jul 6 1999 Axalon Bloodstone <axalon@linux-mandrake.com> - added overly redundant provides to help clean up install.log's * Fri May 14 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Add a bzgrep script. * Fri Apr 16 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Mandrake adaptations. - Add patch to permit the bunzip2 on link. * Thu Jan 14 1999 Bernhard Rosenkraenzer <bero@microsoft.sucks.eu.org> - version 0.9.0c * Sun Nov 29 1998 Bernhard Rosenkraenzer <bero@microsoft.sucks.eu.org> - remove CC="egcs" - we want to compile with pgcc - bzip2 manpages - build a shared libbz2.so; move libbz2 and bzlib.h to bzip2-devel * Wed Sep 30 1998 Cristian Gafton <gafton@redhat.com> - force compilation with egcs to avoid gcc optimization bug (thank God we haven't been beaten by it) * Wed Sep 09 1998 Cristian Gafton <gafton@redhat.com> - version 0.9.0b * Tue Sep 08 1998 Cristian Gafton <gafton@redhat.com> - updated to 0.9.0 * Thu Apr 09 1998 Cristian Gafton <gafton@redhat.com> - first build for Manhattan