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-11-08 23:51:26 +01:00
|
|
|
Release: 46
|
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
|
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
|
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
|
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
|
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
|
|
|
|
|
|
|
|
%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
|
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
|
|
|
|
%changelog
|
2007-11-08 23:51:26 +01:00
|
|
|
* Thu Nov 08 2007 - lmichnovic@suse.cz
|
|
|
|
- added README, LICENSE, CHANGES files to libbz2-1 package
|
2007-06-04 00:21:29 +02:00
|
|
|
* Sun Jun 03 2007 - schwab@suse.de
|
|
|
|
- Fix dependency.
|
2007-06-03 21:05:49 +02:00
|
|
|
* Wed May 30 2007 - lmichnovic@suse.cz
|
|
|
|
- renamed lib to libbz2-1 according to Shared Library Packaging
|
|
|
|
Policy
|
|
|
|
- calling ldconfig for libbz2-1 package
|
2007-05-25 23:56:09 +02:00
|
|
|
* Fri May 25 2007 - dmueller@suse.de
|
|
|
|
- build with profile feedback enabled (7-15%% speedup)
|
2007-03-30 16:38:08 +02:00
|
|
|
* Fri Mar 30 2007 - rguenther@suse.de
|
|
|
|
- Add PreReq to libbz2 from bzip2 to work around update problems
|
2007-03-23 21:42:21 +01:00
|
|
|
* 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
|