Blame SPECS/bzip2.spec

54e403
%global library_version 1.0.6
54e403
54e403
Summary: A file compression utility
54e403
Name: bzip2
54e403
Version: 1.0.6
54e403
Release: 13%{?dist}
54e403
License: BSD
54e403
Group: Applications/File
54e403
URL: http://www.bzip.org/
54e403
Source: http://www.bzip.org/%{version}/%{name}-%{version}.tar.gz
54e403
54e403
Requires: bzip2-libs = %{version}-%{release}
54e403
54e403
Patch0: bzip2-1.0.4-saneso.patch
54e403
Patch1: bzip2-1.0.4-cflags.patch
54e403
# resolves: #226979
54e403
Patch2: bzip2-1.0.4-bzip2recover.patch
54e403
54e403
%description
54e403
Bzip2 is a freely available, patent-free, high quality data compressor.
54e403
Bzip2 compresses files to within 10 to 15 percent of the capabilities
54e403
of the best techniques available.  However, bzip2 has the added benefit
54e403
of being approximately two times faster at compression and six times
54e403
faster at decompression than those techniques.  Bzip2 is not the
54e403
fastest compression utility, but it does strike a balance between speed
54e403
and compression capability.
54e403
54e403
Install bzip2 if you need a compression utility.
54e403
54e403
%package devel
54e403
Summary: Libraries and header files for apps which will use bzip2
54e403
Group: Development/Libraries
54e403
Requires: bzip2-libs = %{version}-%{release}
54e403
54e403
%description devel
54e403
54e403
Header files and a library of bzip2 functions, for developing apps
54e403
which will use the library.
54e403
54e403
%package libs
54e403
Summary: Libraries for applications using bzip2
54e403
Group: System Environment/Libraries
54e403
54e403
%description libs
54e403
54e403
Libraries for applications using the bzip2 compression format.
54e403
54e403
%prep
54e403
%setup -q
54e403
%patch0 -p1 -b .saneso
54e403
%patch1 -p1 -b .cflags
54e403
%patch2 -p1 -b .bz2recover
54e403
54e403
%build
54e403
%ifarch ppc64 ppc64le
54e403
export O3="-O3"
54e403
%else
54e403
export O3=""
54e403
%endif
54e403
54e403
make -f Makefile-libbz2_so CC="%{__cc}" AR="%{__ar}" RANLIB="%{__ranlib}" \
54e403
    CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -fpic -fPIC $O3" \
54e403
    %{?_smp_mflags} all
54e403
54e403
rm -f *.o
54e403
make CC="%{__cc}" AR="%{__ar}" RANLIB="%{__ranlib}" \
54e403
    CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 $O3" \
54e403
    %{?_smp_mflags} all
54e403
54e403
%install
54e403
chmod 644 bzlib.h
54e403
mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir},%{_includedir}}
54e403
cp -p bzlib.h $RPM_BUILD_ROOT%{_includedir}
54e403
install -m 755 libbz2.so.%{library_version} $RPM_BUILD_ROOT%{_libdir}
54e403
install -m 755 bzip2-shared  $RPM_BUILD_ROOT%{_bindir}/bzip2
54e403
install -m 755 bzip2recover bzgrep bzdiff bzmore  $RPM_BUILD_ROOT%{_bindir}/
54e403
cp -p bzip2.1 bzdiff.1 bzgrep.1 bzmore.1  $RPM_BUILD_ROOT%{_mandir}/man1/
54e403
ln -s bzip2 $RPM_BUILD_ROOT%{_bindir}/bunzip2
54e403
ln -s bzip2 $RPM_BUILD_ROOT%{_bindir}/bzcat
54e403
ln -s bzdiff $RPM_BUILD_ROOT%{_bindir}/bzcmp
54e403
ln -s bzmore $RPM_BUILD_ROOT%{_bindir}/bzless
54e403
ln -s libbz2.so.%{library_version} $RPM_BUILD_ROOT%{_libdir}/libbz2.so.1
54e403
ln -s libbz2.so.1 $RPM_BUILD_ROOT%{_libdir}/libbz2.so
54e403
ln -s bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzip2recover.1
54e403
ln -s bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/bunzip2.1
54e403
ln -s bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzcat.1
54e403
ln -s bzdiff.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzcmp.1
54e403
ln -s bzmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzless.1
54e403
54e403
%post libs -p /sbin/ldconfig
54e403
54e403
%postun libs  -p /sbin/ldconfig
54e403
54e403
%files
54e403
%doc LICENSE CHANGES README
54e403
%{_bindir}/*
54e403
%{_mandir}/*/*
54e403
54e403
%files libs
54e403
%doc LICENSE
54e403
%{_libdir}/libbz2.so.1*
54e403
54e403
%files devel
54e403
%doc manual.html manual.pdf
54e403
%{_includedir}/*
54e403
%{_libdir}/*.so
54e403
54e403
%changelog
54e403
* Thu Jul 31 2014 jchaloup <jchaloup@redhat.com> - 1.0.6-13
54e403
- resolves: #1123489
54e403
  recompiled with -O3 flag for ppc64le arch
54e403
54e403
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.0.6-12
54e403
- Mass rebuild 2014-01-24
54e403
54e403
* Fri Jan 10 2014 Peter Schiffer <pschiffe@redhat.com> - 1.0.6-11
54e403
- related: #1051062
54e403
  added explicit requires on bzip2-libs subpackage from main package
54e403
54e403
* Fri Jan 10 2014 Peter Schiffer <pschiffe@redhat.com> - 1.0.6-10
54e403
- resolves: #1051062
54e403
  recompiled with -O3 flag for ppc64 arch
54e403
54e403
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.6-9
54e403
- Mass rebuild 2013-12-27
54e403
54e403
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-8
54e403
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
54e403
54e403
* Fri Oct 26 2012 Peter Schiffer <pschiffe@redhat.com> - 1.0.6-7
54e403
- moved libraries from /lib to /usr/lib
54e403
54e403
* Fri Oct 26 2012 Peter Schiffer <pschiffe@redhat.com> - 1.0.6-6
54e403
- .spec file cleanup
54e403
54e403
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-5
54e403
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
54e403
54e403
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-4
54e403
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
54e403
54e403
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-3
54e403
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
54e403
54e403
* Wed Sep 29 2010 jkeating - 1.0.6-2
54e403
- Rebuilt for gcc bug 634757
54e403
54e403
* Wed Sep 22 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 1.0.6-1
54e403
- update to 1.0.6
54e403
54e403
* Mon Jul 12 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 1.0.5-7
54e403
- add LICENSE to bzip2-libs
54e403
54e403
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-6
54e403
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
54e403
54e403
* Tue Mar 17 2009 Ivana Varekova <varekova@redhat.com> 1.0.5-5
54e403
- remove static library
54e403
54e403
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-4
54e403
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
54e403
54e403
* Mon Sep  1 2008 Ivana Varekova <varekova@redhat.com> 1.0.5-3
54e403
- minor spec file changew
54e403
54e403
* Thu Apr 10 2008 Ivana Varekova <varekova@redhat.com> 1.0.5-2
54e403
- Resolves: #441775
54e403
  fix libs link
54e403
54e403
* Tue Mar 25 2008 Ivana Varekova <varekova@redhat.com> 1.0.5-1
54e403
- update to 1.0.5
54e403
54e403
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.4-14
54e403
- Autorebuild for GCC 4.3
54e403
54e403
* Wed Jan 23 2008 Ivana Varekova <varekova@redhat.com> 1.0.4-13
54e403
- rebuild
54e403
54e403
* Mon May 21 2007 Ivana Varekova <varekova@redhat.com> 1.0.4-12
54e403
- fix *.so,*.a directory
54e403
54e403
* Mon May 21 2007 Ivana Varekova <varekova@redhat.com> 1.0.4-11
54e403
- remove libbz2.* from /usr/lib* to /lib*
54e403
54e403
* Wed Apr  4 2007 Ivana Varekova <varekova@redhat.com> 1.0.4-10
54e403
- change libz.a permissions
54e403
54e403
* Wed Apr  4 2007 Ivana Varekova <varekova@redhat.com> 1.0.4-9
54e403
- remove useless -p 
54e403
54e403
* Thu Mar 15 2007 Ivana Varekova <varekova@redhat.com> 1.0.4-8
54e403
- remove unnecessary "/" after RPM_BUILD_ROOT macro
54e403
54e403
* Mon Feb 19 2007 Jesse Keating <jkeating@redhat.com> 1.0.4-7
54e403
- Temporarily add static lib back in for rpm
54e403
54e403
* Fri Feb 16 2007 Ivana Varekova <varekova@redhat.com> 1.0.4-6
54e403
- incorporate the next review feedback
54e403
54e403
* Thu Feb 15 2007 Ivana Varekova <varekova@redhat.com> 1.0.4-5
54e403
- incorporate package review feedback
54e403
54e403
* Tue Feb  6 2007 Ivana Varekova <varekova@redhat.com> 1.0.4-4
54e403
- fix bzip2recover patch
54e403
54e403
* Mon Feb  5 2007 Ivana Varekova <varekova@redhat.com> 1.0.4-3
54e403
- Resolves: 226979 
54e403
  Buffer overflow in bzip2's bzip2recover
54e403
54e403
* Mon Jan  8 2007 Ivana Varekova <varekova@redhat.com> 1.0.4-1
54e403
- update to 1.0.4
54e403
- spec file cleanup
54e403
54e403
* Mon Jul 17 2006 Ivana Varekova <varekova@redhat.com> 1.0.3-3
54e403
- add cflags (#198926)
54e403
54e403
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.3-2.2.2
54e403
- rebuild
54e403
54e403
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0.3-2.2.1
54e403
- bump again for double-long bug on ppc(64)
54e403
54e403
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.3-2.2
54e403
- rebuilt for new gcc4.1 snapshot and glibc changes
54e403
54e403
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
54e403
- rebuilt
54e403
54e403
* Fri Nov 25 2005 Ivana Varekova <varekova@redhat.com> 1.0.3-2
54e403
- fix bug 174172 - CAN-2005-0758 bzgrep has security issue in sed usage
54e403
54e403
* Mon Aug 29 2005 Ivana Varekova <varekova@redhat.com> 1.0.3-1
54e403
- 1.0.3
54e403
- add NULL-ptr-check patch 
54e403
  (patch author: Mihai Limbasan 
54e403
54e403
* Thu May 19 2005 Jiri Ryska <jryska@redhat.com>
54e403
- fixed permission setting for decompressed files #155742
54e403
- fixed decompression bomb (DoS) #157548
54e403
54e403
* Fri Mar 04 2005 Jiri Ryska <jryska@redhat.com>
54e403
- rebuilt
54e403
54e403
* Thu Dec 09 2004 Jiri Ryska <jryska@redhat.com>
54e403
- changed temp file creation in bzdiff #92444
54e403
54e403
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
54e403
- rebuilt
54e403
54e403
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
54e403
- rebuilt
54e403
54e403
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
54e403
- rebuilt
54e403
54e403
* Tue Jun 17 2003 Jeff Johnson <jbj@redhat.com> 1.0.2-11
54e403
- rebuilt because of crt breakage on ppc64.
54e403
54e403
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
54e403
- rebuilt
54e403
54e403
* Mon Mar 31 2003 Jeff Johnson <jbj@redhat.com> 1.0.2-9
54e403
- rebuild to get rid of undefined __ctype_b in libbz2.a.
54e403
54e403
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
54e403
- rebuilt
54e403
54e403
* Thu Nov 21 2002 Elliot Lee <sopwith@redhat.com>
54e403
- Pass __cc/__ar/__ranlib to makefiles
54e403
- Use _smp_mflags
54e403
54e403
* Tue Nov 19 2002 Tim Powers <timp@redhat.com>
54e403
- rebuild on all arches
54e403
- fix %%doc file list
54e403
54e403
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
54e403
- automated rebuild
54e403
54e403
* Thu May 23 2002 Tim Powers <timp@redhat.com>
54e403
- automated rebuild
54e403
54e403
* Thu Apr 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.0.2-3
54e403
- Rebuild in new environment
54e403
54e403
* Thu Feb 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.0.2-2
54e403
- Rebuild
54e403
54e403
* Wed Jan 30 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.0.2-1
54e403
- 1.0.2
54e403
- Total overhaul of build precedure
54e403
- Add many small helper programs added to 1.0.2
54e403
- drop old patches
54e403
54e403
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
54e403
- automated rebuild
54e403
54e403
* Mon Nov 26 2001 Trond Eivind Glomsrød <teg@redhat.com> 1.0.1-5
54e403
- Don't segfault when infile is a directory and "-f" is used (#56623)
54e403
- Automake is evil. Add workaround
54e403
54e403
* Fri Mar 30 2001 Trond Eivind Glomsrød <teg@redhat.com>
54e403
- use "License" instead of "Copyright"
54e403
- split out libs
54e403
54e403
* Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
54e403
- new URL and source location
54e403
54e403
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
54e403
- automatic rebuild
54e403
54e403
* Sat Jul 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
54e403
- 1.0.1
54e403
- ported my patch
54e403
54e403
* Tue Jun 13 2000 Jeff Johnson <jbj@redhat.com>
54e403
- FHS packaging to build on solaris2.5.1.
54e403
- remove config.cache from autoconf patch.
54e403
- sparc: use %%configure, but not the m4 macros.
54e403
54e403
* Tue Jun 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
54e403
- Use %%configure, %%makeinstall, %%{_manpath} and %%{_tmpdir}
54e403
54e403
* Wed May 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
54e403
- 1.0.0 - ported my 1.0pre8 libtoolizedautoconf patch
54e403
54e403
* Tue May 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
54e403
- use soft links, not hardlinks, for binaries
54e403
- mv .so to devel
54e403
54e403
* Mon May 15 2000 Trond Eivind Glomsrød <teg@redhat.com>
54e403
- autoconfed and libtoolized package 
54e403
- fixed Copyright (it's BSD, not GPL)
54e403
- dumped bzless (less works fine with bz2-files)
54e403
- rewrote build and install parts
54e403
- separated main package and devel package
54e403
54e403
* Mon May  8 2000 Bernhard Rosenkränzer <bero@redhat.com>
54e403
- 1.0pre8
54e403
54e403
* Fri Apr 14 2000 Bernhard Rosenkränzer <bero@redhat.com>
54e403
- Add bzgrep (a version of zgrep hacked to do bzip2)
54e403
54e403
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
54e403
- handle compressed manpages
54e403
54e403
* Fri Dec 31 1999 Bernhard Rosenkränzer <bero@redhat.com>
54e403
- 0.9.5d
54e403
- Update download URL, add URL: tag in header
54e403
54e403
* Tue Aug 10 1999 Jeff Johnson <jbj@redhat.com>
54e403
- upgrade to 0.9.5c.
54e403
54e403
* Mon Aug  9 1999 Bill Nottingham <notting@redhat.com>
54e403
- install actual bzip2 binary, not libtool cruft.
54e403
54e403
* Sun Aug  8 1999 Jeff Johnson <jbj@redhat.com>
54e403
- run ldconfig to get shared library.
54e403
54e403
* Mon Aug  2 1999 Jeff Johnson <jbj@redhat.com>
54e403
- create shared libbz1.so.* library.
54e403
54e403
* Sun Apr  4 1999 Jeff Johnson <jbj@redhat.com>
54e403
- update to bzip2-0.9.0c.
54e403
54e403
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
54e403
- auto rebuild in the new build environment (release 4)
54e403
54e403
* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
54e403
- build against glibc 2.1
54e403
54e403
* Wed Sep 30 1998 Cristian Gafton <gafton@redhat.com>
54e403
- force compilation with egcs to avoid gcc optimization bug (thank God 
54e403
  we haven't been beaten by it)
54e403
54e403
* Wed Sep 09 1998 Cristian Gafton <gafton@redhat.com>
54e403
- version 0.9.0b
54e403
54e403
* Tue Sep 08 1998 Cristian Gafton <gafton@redhat.com>
54e403
- updated to 0.9.0
54e403
54e403
* Thu Apr 09 1998 Cristian Gafton <gafton@redhat.com>
54e403
- first build for Manhattan