2006-12-19 00:15:26 +01:00
|
|
|
#
|
2008-04-06 02:00:24 +02:00
|
|
|
# spec file for package bzip2 (Version 1.0.5)
|
2006-12-19 00:15:26 +01:00
|
|
|
#
|
2008-03-26 16:05:50 +01:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:26 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-26 16:05:50 +01:00
|
|
|
|
2006-12-19 00:15:26 +01:00
|
|
|
Name: bzip2
|
2008-04-06 02:00:24 +02:00
|
|
|
Version: 1.0.5
|
2008-08-02 02:33:00 +02:00
|
|
|
Release: 20
|
2006-12-19 00:15:26 +01:00
|
|
|
Provides: bzip
|
|
|
|
Obsoletes: bzip
|
2007-03-30 16:38:08 +02:00
|
|
|
# The following is a kludge to get updating bzip2 to after the split work
|
2007-06-03 21:05:49 +02:00
|
|
|
PreReq: libbz2-1
|
2007-11-08 23:51:26 +01:00
|
|
|
AutoReqProv: on
|
2006-12-19 00:15:26 +01:00
|
|
|
Group: Productivity/Archiving/Compression
|
2007-11-08 23:51:26 +01:00
|
|
|
License: BSD 3-Clause
|
|
|
|
Url: http://www.bzip.org/
|
2006-12-19 00:15:26 +01:00
|
|
|
Summary: A Program for Compressing Files
|
|
|
|
Source: bzip2-%{version}.tar.gz
|
|
|
|
Source1: bznew.gz
|
|
|
|
Source2: bznew.1.gz
|
2007-05-25 23:56:09 +02:00
|
|
|
Source100: rpmlintrc
|
2007-06-03 21:05:49 +02:00
|
|
|
Patch1: bzip2-shared_lib.patch
|
2007-01-19 12:25:02 +01:00
|
|
|
Patch2: bzip2-maxlen20.patch
|
|
|
|
Patch3: bzip2-faster.patch
|
2008-04-06 02:00:24 +02:00
|
|
|
Patch4: bzip2-cflags.patch
|
|
|
|
Patch5: bzip2-unsafe_strcpy.patch
|
2006-12-19 00:15:26 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2007-11-08 23:51:26 +01:00
|
|
|
The bzip2 program is a very powerful program for compressing files.
|
2006-12-19 00:15:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-03-23 21:42:21 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Julian Seward <jseward@acm.org>
|
|
|
|
|
|
|
|
%package doc
|
2008-04-06 02:00:24 +02:00
|
|
|
License: BSD 3-Clause
|
2007-11-08 23:51:26 +01:00
|
|
|
Summary: The bzip2 program and Library Documentation
|
2007-03-23 21:42:21 +01:00
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
|
|
|
|
%description doc
|
2007-11-08 23:51:26 +01:00
|
|
|
The bzip2 program and library documentation.
|
2007-03-23 21:42:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Julian Seward <jseward@acm.org>
|
|
|
|
|
2007-06-03 21:05:49 +02:00
|
|
|
%package -n libbz2-1
|
2008-04-06 02:00:24 +02:00
|
|
|
License: BSD 3-Clause
|
2007-11-08 23:51:26 +01:00
|
|
|
Summary: The bzip2 runtime library
|
2007-03-23 21:42:21 +01:00
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
|
2007-06-03 21:05:49 +02:00
|
|
|
%description -n libbz2-1
|
2007-11-08 23:51:26 +01:00
|
|
|
The bzip2 runtime library
|
2007-03-23 21:42:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Julian Seward <jseward@acm.org>
|
|
|
|
|
|
|
|
%package -n libbz2-devel
|
2008-04-06 02:00:24 +02:00
|
|
|
License: BSD 3-Clause
|
2007-11-08 23:51:26 +01:00
|
|
|
Summary: The bzip2 runtime library development files
|
|
|
|
Group: Development/Libraries/Other
|
2007-06-04 00:21:29 +02:00
|
|
|
Requires: libbz2-1 = %{version}
|
2007-03-23 21:42:21 +01:00
|
|
|
|
|
|
|
%description -n libbz2-devel
|
2007-11-08 23:51:26 +01:00
|
|
|
The bzip2 runtime library development files.
|
2007-03-23 21:42:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2006-12-19 00:15:26 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Julian Seward <jseward@acm.org>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2007-01-19 12:25:02 +01:00
|
|
|
%patch1
|
2006-12-19 00:15:26 +01:00
|
|
|
%patch2
|
|
|
|
%patch3
|
2008-04-06 02:00:24 +02:00
|
|
|
%patch4
|
|
|
|
%patch5
|
2006-12-19 00:15:26 +01:00
|
|
|
|
|
|
|
%build
|
2007-05-25 23:56:09 +02:00
|
|
|
profile_bzip2()
|
|
|
|
{
|
|
|
|
tmpfile=$(mktemp)
|
|
|
|
trap "rm -f $tmpfile $tmpfile.gz" EXIT
|
|
|
|
tar -cjf $tmpfile.bz2 /usr/src || true
|
|
|
|
# time ./bzip2 $tmpfile
|
|
|
|
export LD_PRELOAD=$PWD/libbz2.so
|
|
|
|
time ./bzip2 -d < $tmpfile.bz2 > /dev/null
|
|
|
|
unset LD_PRELOAD
|
|
|
|
}
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -Wall -Winline -fpic"
|
|
|
|
%if %{do_profiling}
|
|
|
|
make CFLAGS="$CFLAGS %{cflags_profile_generate}" LIBDIR=%{_libdir} %{?jobs:-j %jobs} bzip2
|
|
|
|
profile_bzip2
|
|
|
|
make clean
|
|
|
|
make CFLAGS="$CFLAGS %{cflags_profile_feedback}" LIBDIR=%{_libdir} %{?jobs:-j %jobs} bzip2
|
|
|
|
%endif
|
|
|
|
make CFLAGS="$CFLAGS" LIBDIR=%{_libdir} %{?jobs:-j %jobs}
|
2006-12-19 00:15:26 +01:00
|
|
|
|
|
|
|
%install
|
2007-05-25 23:56:09 +02:00
|
|
|
make PREFIX=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT%{_mandir} \
|
|
|
|
LIBDIR=$RPM_BUILD_ROOT%{_libdir} install
|
2006-12-19 00:15:26 +01:00
|
|
|
gzip -9 manual.ps
|
|
|
|
gzip -dc %{SOURCE1} > bznew
|
2007-05-25 23:56:09 +02:00
|
|
|
install -D -m 755 bznew $RPM_BUILD_ROOT%{_bindir}/bznew
|
|
|
|
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man1
|
2006-12-19 00:15:26 +01:00
|
|
|
install -m 755 -d $RPM_BUILD_ROOT/%{_lib}/
|
2007-05-25 23:56:09 +02:00
|
|
|
mv $RPM_BUILD_ROOT%{_libdir}/libbz2.so $RPM_BUILD_ROOT/%{_lib}/libbz2.so.%{version}
|
|
|
|
ln -sf libbz2.so.%{version} $RPM_BUILD_ROOT/%{_lib}/libbz2.so.1
|
|
|
|
ln -sf ../../%{_lib}/libbz2.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libbz2.so
|
2008-04-06 02:00:24 +02:00
|
|
|
# installing bzgrep, bzdiff and bzmore scripts bnc#376464
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
install -m 755 bzgrep bzdiff bzmore $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
install -m 644 bzgrep.1 bzdiff.1 bzmore.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
ln -s bzdiff $RPM_BUILD_ROOT%{_bindir}/bzcmp
|
|
|
|
ln -s bzmore $RPM_BUILD_ROOT%{_bindir}/bzless
|
|
|
|
ln -s bzdiff.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzcmp.1
|
|
|
|
ln -s bzmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzless.1
|
2006-12-19 00:15:26 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2007-06-03 21:05:49 +02:00
|
|
|
%post -n libbz2-1 -p /sbin/ldconfig
|
2006-12-19 00:15:26 +01:00
|
|
|
|
2007-06-03 21:05:49 +02:00
|
|
|
%postun -n libbz2-1 -p /sbin/ldconfig
|
2006-12-19 00:15:26 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-03-23 21:42:21 +01:00
|
|
|
%doc README LICENSE CHANGES
|
|
|
|
%doc %{_mandir}/man1/*
|
2006-12-19 00:15:26 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
|
2007-03-23 21:42:21 +01:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc manual.ps.gz manual*.html
|
|
|
|
|
2007-06-03 21:05:49 +02:00
|
|
|
%files -n libbz2-1
|
2007-03-23 21:42:21 +01:00
|
|
|
%defattr(-,root,root)
|
2007-11-08 23:51:26 +01:00
|
|
|
%doc README LICENSE CHANGES
|
2007-03-23 21:42:21 +01:00
|
|
|
/%{_lib}/libbz2.so.1
|
|
|
|
/%{_lib}/libbz2.so.1.*
|
|
|
|
|
|
|
|
%files -n libbz2-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/bzlib.h
|
|
|
|
%{_libdir}/libbz2.a
|
|
|
|
%{_libdir}/libbz2.so
|
2007-12-07 19:52:27 +01:00
|
|
|
|
2007-03-23 21:42:21 +01:00
|
|
|
%changelog
|
2008-08-02 02:33:00 +02:00
|
|
|
* Fri Aug 01 2008 jw@suse.de
|
|
|
|
- added missing header to bznew [bnc#413261]
|
2008-05-16 21:58:10 +02:00
|
|
|
* Wed May 14 2008 coolo@suse.de
|
|
|
|
- fix rename of xxbit packages
|
2008-04-10 13:09:37 +02:00
|
|
|
* Thu Apr 10 2008 ro@suse.de
|
|
|
|
- added baselibs.conf file to build xxbit packages
|
|
|
|
for multilib support
|
2008-04-06 02:00:24 +02:00
|
|
|
* Thu Apr 03 2008 lmichnovic@suse.cz
|
|
|
|
- update to version 1.5
|
|
|
|
* Fixes CERT-FI 20469 as it applies to bzip2
|
|
|
|
which obsoletes bzip2-CVE-2008-1372-CERT-FI-20469.patch
|
|
|
|
- installing scripts bzdiff, bzgrep, bzmore
|
|
|
|
and symlinks bzless, bzcmp [bnc#376464]
|
|
|
|
- addded CFLAGS in Makefile-libbz2_so (cflags.patch)
|
|
|
|
- fix unsafe strcpy in bzip2recover (unsafe_strcpy.patch)
|
|
|
|
Thanks to Red Hat.
|
2008-03-26 16:05:50 +01:00
|
|
|
* Wed Mar 19 2008 nadvornik@suse.cz
|
|
|
|
- fixed buffer overflows CVE-2008-1372 [bnc#372047]
|
|
|
|
* Thu Dec 06 2007 lmichnovic@suse.cz
|
2007-12-07 19:52:27 +01:00
|
|
|
- bznew can now repack also .tar.gz files [#342612]
|
|
|
|
The dot in suffix is explicitly checked
|
2008-03-26 16:05:50 +01:00
|
|
|
* Thu Nov 08 2007 lmichnovic@suse.cz
|
2007-11-08 23:51:26 +01:00
|
|
|
- added README, LICENSE, CHANGES files to libbz2-1 package
|
2008-03-26 16:05:50 +01:00
|
|
|
* Mon Jun 04 2007 schwab@suse.de
|
2007-06-04 00:21:29 +02:00
|
|
|
- Fix dependency.
|
2008-03-26 16:05:50 +01:00
|
|
|
* Wed May 30 2007 lmichnovic@suse.cz
|
2007-06-03 21:05:49 +02:00
|
|
|
- renamed lib to libbz2-1 according to Shared Library Packaging
|
|
|
|
Policy
|
|
|
|
- calling ldconfig for libbz2-1 package
|
2008-03-26 16:05:50 +01:00
|
|
|
* Sat May 26 2007 dmueller@suse.de
|
2007-05-25 23:56:09 +02:00
|
|
|
- build with profile feedback enabled (7-15%% speedup)
|
2008-03-26 16:05:50 +01:00
|
|
|
* Fri Mar 30 2007 rguenther@suse.de
|
2007-03-30 16:38:08 +02:00
|
|
|
- Add PreReq to libbz2 from bzip2 to work around update problems
|
2008-03-26 16:05:50 +01:00
|
|
|
* Fri Mar 23 2007 rguenther@suse.de
|
2007-03-23 21:42:21 +01:00
|
|
|
- Split off doc, libbz2 and libbz2-devel packages
|
2008-03-26 16:05:50 +01:00
|
|
|
* Mon Jan 15 2007 lmichnovic@suse.cz
|
2007-01-19 12:25:02 +01:00
|
|
|
- Update to version 1.0.4
|
|
|
|
* Fixes some minor bugs since the last version, 1.0.3.
|
|
|
|
* Fix file permissions race problem (CAN-2005-0953).
|
|
|
|
* Avoid possible segfault in BZ2_bzclose. From Coverity's NetBSD
|
|
|
|
scan.
|
|
|
|
* 'const'/prototype cleanups in the C code.
|
|
|
|
* Change default install location to /usr/local, and handle
|
|
|
|
multiple 'make install's without error.
|
|
|
|
* Sanitise file names more carefully in bzgrep. Fixes
|
|
|
|
CAN-2005-0758 to the extent that applies to bzgrep.
|
|
|
|
* Use 'mktemp' rather than 'tempfile' in bzdiff.
|
|
|
|
* Tighten up a couple of assertions in blocksort.c following
|
|
|
|
automated analysis.
|
|
|
|
* Fix minor doc/comment bugs.
|
2008-03-26 16:05:50 +01:00
|
|
|
* Mon Oct 16 2006 dmueller@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- strip .la files
|
2008-03-26 16:05:50 +01:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-03-26 16:05:50 +01:00
|
|
|
* Wed Jan 18 2006 schwab@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- Don't strip binaries.
|
2008-03-26 16:05:50 +01:00
|
|
|
* Fri Aug 12 2005 mls@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- make decompress much faster
|
|
|
|
- compile with -O3
|
|
|
|
- go back to maxlen=20 when compressing
|
2008-03-26 16:05:50 +01:00
|
|
|
* Fri Aug 05 2005 ro@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- next libdir: only package lib*
|
2008-03-26 16:05:50 +01:00
|
|
|
* Fri Aug 05 2005 ro@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- do not package all of libdir (debuginfo)
|
2008-03-26 16:05:50 +01:00
|
|
|
* Mon Aug 01 2005 mjancar@suse.cz
|
2006-12-19 00:15:26 +01:00
|
|
|
- update to 1.0.3
|
2008-03-26 16:05:50 +01:00
|
|
|
* Tue Jun 28 2005 kukuk@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- Move shared libraries to /%%{_lib}
|
2008-03-26 16:05:50 +01:00
|
|
|
* Thu Mar 24 2005 werner@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- Add bznew, a changeed version of the gzip znew.
|
2008-03-26 16:05:50 +01:00
|
|
|
* Tue Apr 20 2004 mmj@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- Fix strict aliasing
|
2008-03-26 16:05:50 +01:00
|
|
|
* Sun Jan 11 2004 adrian@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- add %%defattr and %%run_ldconfig
|
2008-03-26 16:05:50 +01:00
|
|
|
* Wed Jul 23 2003 tcrhak@suse.cz
|
2006-12-19 00:15:26 +01:00
|
|
|
- fixed URL
|
2008-03-26 16:05:50 +01:00
|
|
|
* Tue Jul 23 2002 tcrhak@suse.cz
|
2006-12-19 00:15:26 +01:00
|
|
|
- renamed to bzip2
|
2008-03-26 16:05:50 +01:00
|
|
|
* Tue Feb 05 2002 tcrhak@suse.cz
|
2006-12-19 00:15:26 +01:00
|
|
|
- update to version 1.0.2
|
|
|
|
- bziped tarball
|
2008-03-26 16:05:50 +01:00
|
|
|
* Thu Mar 08 2001 nadvornik@suse.cz
|
2006-12-19 00:15:26 +01:00
|
|
|
- re-added /usr/include/bzlib.h
|
2008-03-26 16:05:50 +01:00
|
|
|
* Thu Mar 08 2001 bk@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- Replaced the -malign options with -mcpu=pentiumpro
|
2008-04-06 02:00:24 +02:00
|
|
|
* Wed Mar 07 2001 bk@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- add version info to libbz2 link to fix the library version number
|
|
|
|
- if i386, add -malign-loops=2 -malign-jumps=2 -malign-functions=2
|
2008-03-26 16:05:50 +01:00
|
|
|
* Thu Nov 30 2000 aj@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- New version, compile with LFS support.
|
2008-03-26 16:05:50 +01:00
|
|
|
* Tue Oct 03 2000 kukuk@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- Set libdir for 64bit architectures
|
2008-03-26 16:05:50 +01:00
|
|
|
* Mon May 22 2000 nadvornik@suse.cz
|
2006-12-19 00:15:26 +01:00
|
|
|
- update to 1.0.0
|
2008-03-26 16:05:50 +01:00
|
|
|
* Wed Apr 26 2000 nadvornik@suse.cz
|
2006-12-19 00:15:26 +01:00
|
|
|
- changed Group
|
2008-03-26 16:05:50 +01:00
|
|
|
* Mon Apr 10 2000 nadvornik@suse.cz
|
2006-12-19 00:15:26 +01:00
|
|
|
- added URL
|
2008-03-26 16:05:50 +01:00
|
|
|
* Tue Apr 04 2000 nadvornik@suse.cz
|
2006-12-19 00:15:26 +01:00
|
|
|
- fixed to compile
|
2008-03-26 16:05:50 +01:00
|
|
|
* Mon Apr 03 2000 bk@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- added libbz2 shared library support for s390
|
2008-03-26 16:05:50 +01:00
|
|
|
* Thu Mar 02 2000 fehr@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- moved man pages to /usr/share/man
|
2008-03-26 16:05:50 +01:00
|
|
|
* Mon Sep 13 1999 bs@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
2008-03-26 16:05:50 +01:00
|
|
|
* Mon Sep 13 1999 fehr@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- update to 0.9.5d
|
2008-03-26 16:05:50 +01:00
|
|
|
* Thu Jul 01 1999 ro@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- update to 0.9.0c
|
2008-03-26 16:05:50 +01:00
|
|
|
* Fri Sep 18 1998 ro@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- update to 0.9.0b (including libbz2 and bzlib.h)
|
2008-03-26 16:05:50 +01:00
|
|
|
* Thu Oct 30 1997 fehr@suse.de
|
2006-12-19 00:15:26 +01:00
|
|
|
- add bzip package to S.u.S.E. distribution
|