Summary: A file compression utility. Name: bzip2 Version: 1.0.2 Release: 2 License: IBM_ILA Group: Applications/File Source: ftp://sources.redhat.com/pub/bzip2/v102/%{name}-%{version}.tar.gz Source1: IBM_ILA Patch0: bzip2-%{version}-shared.patch URL: http://sources.redhat.com/bzip2/ Prefix: %{_prefix} BuildRoot: /var/tmp/%{name}-root %define major 1 %define stdlib lib %define liblink ../.. %define DIRS . %define DEFCC cc %description Bzip2 is a freely available, patent-free, high quality data compressor. Bzip2 compresses files to within 10 to 15 percent of the capabilities of the best techniques available. However, bzip2 has the added benefit of being approximately two times faster at compression and six times faster at decompression than those techniques. Bzip2 is not the fastest compression utility, but it does strike a balance between speed and compression capability. Install bzip2 if you need a compression utility. %prep %setup -q %patch0 -p1 -b .aixshar # Add license info cat $RPM_SOURCE_DIR/IBM_ILA > LICENSE.new cat LICENSE >> LICENSE.new mv LICENSE.new LICENSE %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if [[ "$CC" != "gcc" ]] then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` fi for dir in %{DIRS}; do cd $dir; if [[ $dir != "." ]]; then export CC="$CC64"; fi make CC="$CC" CFLAGS="$RPM_OPT_FLAGS" all %ifarch ppc rs6000 if [[ "$CC" = "gcc" ]] then make -f Makefile-libbz2_so CFLAGS="$RPM_OPT_FLAGS" prefix=%{_prefix} all_ppc else make -f Makefile-libbz2_so.nongcc CC="$CC" CFLAGS="$RPM_OPT_FLAGS" prefix=%{_prefix} all_ppc fi %else if [[ "$CC" = "gcc" ]] then make -f Makefile-libbz2_so CFLAGS="$RPM_OPT_FLAGS" prefix=%{_prefix} all else make -f Makefile-libbz2_so.nongcc CC="$CC" CFLAGS="$RPM_OPT_FLAGS" prefix=%{_prefix} all fi %endif done %install rm -rf $RPM_BUILD_ROOT # Potential loop if building 64-bit libraries for IA64 for dir in %{DIRS}; do cd $dir; if [[ $dir = "." ]]; then INSTDIR=%{_prefix}; else INSTDIR=/%{PKG64}%{_prefix}; fi mkdir -p $RPM_BUILD_ROOT$INSTDIR mv bzip2-shared bzip2 make install PREFIX="$RPM_BUILD_ROOT$INSTDIR" done ( cd $RPM_BUILD_ROOT /usr/bin/strip .%{_prefix}/bin/* || : cat > .%{_prefix}/bin/bzless < tmp.exp libbase=`print $lib | sed -e 's/.a$//' -e 's/^lib//'` ld -L. -bI:tmp.exp -bE:tmp.exp -l$libbase -bM:SRE -bnoentry -o $COMPATMEMBER /usr/bin/strip -e $COMPATMEMBER # Make shr.o a load-only module /usr/bin/ar -r $lib $COMPATMEMBER rm -f $COMPATMEMBER tmp.exp done ) %endif %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README *.html LICENSE /usr/bin/* /usr/%{stdlib}/* /usr/include/* %{_prefix}/bin/* %{_prefix}/man/man1/* %{_prefix}/lib/libbz2.* %{_prefix}/include/bzlib.h %changelog * Fri Nov 22 2002 David Clissold - Add IBM ILA license. * Fri Apr 19 2002 David Clissold - Update to version 1.0.2. * Thu Mar 22 2001 Marc Stephenson - Build both 32- and 64-bit libraries * Thu Feb 15 2001 aixtoolbox - Account for different standard lib location in IA64 32-bit ABI * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Mon Feb 7 2000 Bill Nottingham - handle compressed manpages * Fri Dec 31 1999 Bernhard Rosenkränzer - 0.9.5d - Update download URL, add URL: tag in header * Tue Aug 10 1999 Jeff Johnson - upgrade to 0.9.5c. * Mon Aug 9 1999 Bill Nottingham - install actual bzip2 binary, not libtool cruft. * Sun Aug 8 1999 Jeff Johnson - run ldconfig to get shared library. * Mon Aug 2 1999 Jeff Johnson - create shared libbz1.so.* library. * Sun Apr 4 1999 Jeff Johnson - update to bzip2-0.9.0c. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 4) * Thu Dec 17 1998 Cristian Gafton - build against glibc 2.1 * Wed Sep 30 1998 Cristian Gafton - force compilation with egcs to avoid gcc optimization bug (thank God we haven't been beaten by it) * Wed Sep 09 1998 Cristian Gafton - version 0.9.0b * Tue Sep 08 1998 Cristian Gafton - updated to 0.9.0 * Thu Apr 09 1998 Cristian Gafton - first build for Manhattan