2006-12-19 00:15:26 +01:00
|
|
|
#
|
2007-01-19 12:25:02 +01:00
|
|
|
# spec file for package bzip2 (Version 1.0.4)
|
2006-12-19 00:15:26 +01:00
|
|
|
#
|
2007-01-19 12:25:02 +01:00
|
|
|
# Copyright (c) 2007 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
|
|
|
|
|
|
|
|
Name: bzip2
|
2007-01-19 12:25:02 +01:00
|
|
|
Version: 1.0.4
|
2007-03-23 21:42:21 +01:00
|
|
|
Release: 6
|
2006-12-19 00:15:26 +01:00
|
|
|
Provides: bzip
|
|
|
|
Obsoletes: bzip
|
|
|
|
Autoreqprov: on
|
|
|
|
Group: Productivity/Archiving/Compression
|
2007-01-19 12:25:02 +01:00
|
|
|
License: BSD License and BSD-like
|
2006-12-19 00:15:26 +01:00
|
|
|
URL: http://www.bzip.org/
|
|
|
|
Summary: A Program for Compressing Files
|
|
|
|
Source: bzip2-%{version}.tar.gz
|
|
|
|
Source1: bznew.gz
|
|
|
|
Source2: bznew.1.gz
|
2007-01-19 12:25:02 +01:00
|
|
|
Patch1: bzip2-%{version}-makefile.patch
|
|
|
|
Patch2: bzip2-maxlen20.patch
|
|
|
|
Patch3: bzip2-faster.patch
|
2006-12-19 00:15:26 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
bzip is a very powerful program for compressing files.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-03-23 21:42:21 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Julian Seward <jseward@acm.org>
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: bzip2 Program and Library Documentation
|
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
bzip2 program and library documentation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Julian Seward <jseward@acm.org>
|
|
|
|
|
|
|
|
%package -n libbz2
|
|
|
|
Summary: bzip2 runtime library
|
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
|
|
|
|
%description -n libbz2
|
|
|
|
bzip2 runtime library
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Julian Seward <jseward@acm.org>
|
|
|
|
|
|
|
|
%package -n libbz2-devel
|
|
|
|
Summary: bzip2 runtime library development files
|
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
Requires: libbz2 = %{version}
|
|
|
|
|
|
|
|
%description -n libbz2-devel
|
|
|
|
bzip2 runtime library development files
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
%build
|
|
|
|
# -O3 really makes a difference
|
|
|
|
RPM_OPT_FLAGS=${RPM_OPT_FLAGS/-O2/-O3}
|
|
|
|
make CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -Wall -Winline" libdir=%{_libdir}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make PREFIX=$RPM_BUILD_ROOT install libdir=%{_libdir}
|
|
|
|
gzip -9 manual.ps
|
|
|
|
gzip -dc %{SOURCE1} > bznew
|
|
|
|
install -m 755 bznew $RPM_BUILD_ROOT%{_bindir}/
|
|
|
|
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man1/
|
|
|
|
install -m 755 -d $RPM_BUILD_ROOT/%{_lib}/
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
|
|
mv $RPM_BUILD_ROOT%{_libdir}/libbz2.so.* $RPM_BUILD_ROOT/%{_lib}/
|
|
|
|
ln -sf ../../%{_lib}/libbz2.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/libbz2.so
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%files -n libbz2
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/%{_lib}/libbz2.so.1
|
|
|
|
/%{_lib}/libbz2.so.1.*
|
|
|
|
|
|
|
|
%files -n libbz2-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/bzlib.h
|
|
|
|
%{_libdir}/libbz2.a
|
|
|
|
%{_libdir}/libbz2.so
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Fri Mar 23 2007 - rguenther@suse.de
|
|
|
|
- Split off doc, libbz2 and libbz2-devel packages
|
2007-01-19 12:25:02 +01:00
|
|
|
* Mon Jan 15 2007 - lmichnovic@suse.cz
|
|
|
|
- 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.
|
2006-12-19 00:15:26 +01:00
|
|
|
* Mon Oct 16 2006 - dmueller@suse.de
|
|
|
|
- strip .la files
|
|
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
|
|
- converted neededforbuild to BuildRequires
|
|
|
|
* Tue Jan 17 2006 - schwab@suse.de
|
|
|
|
- Don't strip binaries.
|
|
|
|
* Fri Aug 12 2005 - mls@suse.de
|
|
|
|
- make decompress much faster
|
|
|
|
- compile with -O3
|
|
|
|
- go back to maxlen=20 when compressing
|
|
|
|
* Fri Aug 05 2005 - ro@suse.de
|
|
|
|
- next libdir: only package lib*
|
|
|
|
* Fri Aug 05 2005 - ro@suse.de
|
|
|
|
- do not package all of libdir (debuginfo)
|
|
|
|
* Mon Aug 01 2005 - mjancar@suse.cz
|
|
|
|
- update to 1.0.3
|
|
|
|
* Tue Jun 28 2005 - kukuk@suse.de
|
|
|
|
- Move shared libraries to /%%{_lib}
|
|
|
|
* Thu Mar 24 2005 - werner@suse.de
|
|
|
|
- Add bznew, a changeed version of the gzip znew.
|
|
|
|
* Tue Apr 20 2004 - mmj@suse.de
|
|
|
|
- Fix strict aliasing
|
|
|
|
* Sun Jan 11 2004 - adrian@suse.de
|
|
|
|
- add %%defattr and %%run_ldconfig
|
|
|
|
* Wed Jul 23 2003 - tcrhak@suse.cz
|
|
|
|
- fixed URL
|
|
|
|
* Tue Jul 23 2002 - tcrhak@suse.cz
|
|
|
|
- renamed to bzip2
|
|
|
|
* Tue Feb 05 2002 - tcrhak@suse.cz
|
|
|
|
- update to version 1.0.2
|
|
|
|
- bziped tarball
|
|
|
|
* Thu Mar 08 2001 - nadvornik@suse.cz
|
|
|
|
- re-added /usr/include/bzlib.h
|
|
|
|
* Thu Mar 08 2001 - bk@suse.de
|
|
|
|
- Replaced the -malign options with -mcpu=pentiumpro
|
|
|
|
* Tue Mar 06 2001 - bk@suse.de
|
|
|
|
- add version info to libbz2 link to fix the library version number
|
|
|
|
- if i386, add -malign-loops=2 -malign-jumps=2 -malign-functions=2
|
|
|
|
* Thu Nov 30 2000 - aj@suse.de
|
|
|
|
- New version, compile with LFS support.
|
|
|
|
* Tue Oct 03 2000 - kukuk@suse.de
|
|
|
|
- Set libdir for 64bit architectures
|
|
|
|
* Mon May 22 2000 - nadvornik@suse.cz
|
|
|
|
- update to 1.0.0
|
|
|
|
* Wed Apr 26 2000 - nadvornik@suse.cz
|
|
|
|
- changed Group
|
|
|
|
* Mon Apr 10 2000 - nadvornik@suse.cz
|
|
|
|
- added URL
|
|
|
|
* Tue Apr 04 2000 - nadvornik@suse.cz
|
|
|
|
- fixed to compile
|
|
|
|
* Mon Apr 03 2000 - bk@suse.de
|
|
|
|
- added libbz2 shared library support for s390
|
|
|
|
* Thu Mar 02 2000 - fehr@suse.de
|
|
|
|
- moved man pages to /usr/share/man
|
|
|
|
* Mon Sep 13 1999 - bs@suse.de
|
|
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
|
|
|
* Mon Sep 13 1999 - fehr@suse.de
|
|
|
|
- update to 0.9.5d
|
|
|
|
* Thu Jul 01 1999 - ro@suse.de
|
|
|
|
- update to 0.9.0c
|
|
|
|
* Fri Sep 18 1998 - ro@suse.de
|
|
|
|
- update to 0.9.0b (including libbz2 and bzlib.h)
|
|
|
|
* Thu Oct 30 1997 - fehr@suse.de
|
|
|
|
- add bzip package to S.u.S.E. distribution
|