Blame SPECS/mingw-bzip2.spec

2146af
%?mingw_package_header
2146af
2146af
Name:           mingw-bzip2
2146af
Version:        1.0.6
1741ca
Release:        14%{?dist}
2146af
Summary:        MinGW port of bzip2 file compression utility
2146af
2146af
License:        BSD
2146af
Group:          Development/Libraries
2146af
URL:            http://www.bzip.org/
2146af
Source0:        http://www.bzip.org/%{version}/bzip2-%{version}.tar.gz
2146af
2146af
BuildArch:      noarch
1741ca
ExclusiveArch: %{ix86} x86_64
2146af
2146af
Patch6:         bzip2-1.0.4-bzip2recover.patch
2146af
2146af
Patch10:        mingw32-bzip2-1.0.5-slash.patch
2146af
2146af
Patch12:        bzip2-1.0.5-autoconfiscated.patch
2146af
2146af
# Export all symbols using the cdecl calling convention instead of
2146af
# stdcall as it is also done by various other downstream distributors
2146af
# (like mingw.org and gnuwin32) and it resolves various autoconf and
2146af
# cmake detection issues (RHBZ #811909, RHBZ #812573)
2146af
# Patch is taken from the gnuwin32 project
2146af
Patch13:        bzip2-use-cdecl-calling-convention.patch
2146af
2146af
BuildRequires:  mingw32-filesystem >= 95
2146af
BuildRequires:  mingw64-filesystem >= 95
2146af
BuildRequires:  mingw32-gcc
2146af
BuildRequires:  mingw64-gcc
2146af
BuildRequires:  mingw32-binutils
2146af
BuildRequires:  mingw64-binutils
2146af
BuildRequires:  autoconf, automake, libtool
2146af
2146af
2146af
%description
2146af
Bzip2 is a freely available, patent-free, high quality data compressor.
2146af
Bzip2 compresses files to within 10 to 15 percent of the capabilities
2146af
of the best techniques available.  However, bzip2 has the added benefit
2146af
of being approximately two times faster at compression and six times
2146af
faster at decompression than those techniques.  Bzip2 is not the
2146af
fastest compression utility, but it does strike a balance between speed
2146af
and compression capability.
2146af
2146af
This package contains development tools and libraries for use when
215cb2
cross-compiling Windows software.
2146af
2146af
# Win32
2146af
%package -n mingw32-bzip2
2146af
Summary:        32 Bit version of bzip2 for Windows
2146af
2146af
%description -n mingw32-bzip2
2146af
Bzip2 is a freely available, patent-free, high quality data compressor.
2146af
Bzip2 compresses files to within 10 to 15 percent of the capabilities
2146af
of the best techniques available.  However, bzip2 has the added benefit
2146af
of being approximately two times faster at compression and six times
2146af
faster at decompression than those techniques.  Bzip2 is not the
2146af
fastest compression utility, but it does strike a balance between speed
2146af
and compression capability.
2146af
2146af
This package contains development tools and libraries for use when
215cb2
cross-compiling Windows software.
2146af
2146af
%package -n mingw32-bzip2-static
2146af
Summary:        Static library for mingw32-bzip2 development
2146af
Requires:       mingw32-bzip2 = %{version}-%{release}
2146af
2146af
%description -n mingw32-bzip2-static
2146af
Static library for mingw32-bzip2 development.
2146af
2146af
# Win64
2146af
%package -n mingw64-bzip2
2146af
Summary:        64 Bit version of bzip2 for Windows
2146af
2146af
%description -n mingw64-bzip2
2146af
Bzip2 is a freely available, patent-free, high quality data compressor.
2146af
Bzip2 compresses files to within 10 to 15 percent of the capabilities
2146af
of the best techniques available.  However, bzip2 has the added benefit
2146af
of being approximately two times faster at compression and six times
2146af
faster at decompression than those techniques.  Bzip2 is not the
2146af
fastest compression utility, but it does strike a balance between speed
2146af
and compression capability.
2146af
2146af
This package contains development tools and libraries for use when
215cb2
cross-compiling Windows software.
2146af
2146af
%package -n mingw64-bzip2-static
2146af
Summary:        Static library for mingw64-bzip2 development
2146af
Requires:       mingw64-bzip2 = %{version}-%{release}
2146af
2146af
%description -n mingw64-bzip2-static
2146af
Static library for mingw64-bzip2 development.
2146af
2146af
2146af
%?mingw_debug_package
2146af
2146af
2146af
%prep
2146af
%setup -q -n bzip2-%{version}
2146af
2146af
%patch6 -p1 -b .bz2recover
2146af
2146af
%patch10 -p1 -b .slash
2146af
2146af
%patch12 -p1 -b .autoconfiscated
2146af
2146af
%patch13 -p1 -b .cdecl
2146af
2146af
sh ./autogen.sh
2146af
2146af
2146af
%build
2146af
%mingw_configure
2146af
%mingw_make %{?_smp_mflags}
2146af
2146af
2146af
%install
2146af
%mingw_make install DESTDIR=$RPM_BUILD_ROOT
2146af
2146af
# The binaries which are symlinks contain the full buildroot
2146af
# name in the symlink, so replace those.
2146af
for dir in $RPM_BUILD_ROOT%{mingw32_bindir} $RPM_BUILD_ROOT%{mingw64_bindir} ; do
2146af
pushd $dir
2146af
rm bzcmp.exe bzegrep.exe bzfgrep.exe bzless.exe
2146af
ln -s bzdiff bzcmp
2146af
ln -s bzgrep bzegrep
2146af
ln -s bzgrep bzfgrep
2146af
ln -s bzmore bzless
2146af
popd
2146af
done
2146af
2146af
2146af
# Remove the manpages, they're duplicates of the native package,
2146af
# and located in the wrong place anyway.
2146af
rm -r $RPM_BUILD_ROOT%{mingw32_mandir}/man1
2146af
rm -r $RPM_BUILD_ROOT%{mingw64_mandir}/man1
2146af
2146af
# Remove libtool .la files.
2146af
rm $RPM_BUILD_ROOT%{mingw32_libdir}/libbz2.la
2146af
rm $RPM_BUILD_ROOT%{mingw64_libdir}/libbz2.la
2146af
2146af
# Win32
2146af
%files -n mingw32-bzip2
2146af
%doc COPYING
2146af
%{mingw32_bindir}/libbz2-1.dll
2146af
%{mingw32_bindir}/bunzip2.exe
2146af
%{mingw32_bindir}/bzcat.exe
2146af
%{mingw32_bindir}/bzcmp
2146af
%{mingw32_bindir}/bzdiff
2146af
%{mingw32_bindir}/bzegrep
2146af
%{mingw32_bindir}/bzfgrep
2146af
%{mingw32_bindir}/bzgrep
2146af
%{mingw32_bindir}/bzip2.exe
2146af
%{mingw32_bindir}/bzip2recover.exe
2146af
%{mingw32_bindir}/bzless
2146af
%{mingw32_bindir}/bzmore
2146af
%{mingw32_includedir}/bzlib.h
2146af
%{mingw32_libdir}/libbz2.dll.a
2146af
%{mingw32_libdir}/pkgconfig/bzip2.pc
2146af
2146af
%files -n mingw32-bzip2-static
2146af
%{mingw32_libdir}/libbz2.a
2146af
2146af
# Win64
2146af
%files -n mingw64-bzip2
2146af
%doc COPYING
2146af
%{mingw64_bindir}/libbz2-1.dll
2146af
%{mingw64_bindir}/bunzip2.exe
2146af
%{mingw64_bindir}/bzcat.exe
2146af
%{mingw64_bindir}/bzcmp
2146af
%{mingw64_bindir}/bzdiff
2146af
%{mingw64_bindir}/bzegrep
2146af
%{mingw64_bindir}/bzfgrep
2146af
%{mingw64_bindir}/bzgrep
2146af
%{mingw64_bindir}/bzip2.exe
2146af
%{mingw64_bindir}/bzip2recover.exe
2146af
%{mingw64_bindir}/bzless
2146af
%{mingw64_bindir}/bzmore
2146af
%{mingw64_includedir}/bzlib.h
2146af
%{mingw64_libdir}/libbz2.dll.a
2146af
%{mingw64_libdir}/pkgconfig/bzip2.pc
2146af
2146af
%files -n mingw64-bzip2-static
2146af
%{mingw64_libdir}/libbz2.a
2146af
2146af
2146af
%changelog
1741ca
* Tue Dec  1 2020 Uri Lublin <uril@redhat.com> - 1.0.6-14
1741ca
- rebuilt
1741ca
1741ca
* Tue Jun  9 2020 Uri Lublin <uril@redhat.com> - 1.0.6-13
1741ca
- Rebuild
1741ca
  Related: rhbz#1841952
1741ca
215cb2
* Tue Aug 13 2019 Victor Toso <victortoso@redhat.com> - 1.0.6-12
215cb2
- Metadata: Don't refer to Fedora on Red Hat package
215cb2
- Resolves: rhbz#1704074
215cb2
2146af
* Tue Aug 14 2018 Victor Toso <victortoso@redhat.com> - 1.0.6-11
2146af
- ExclusiveArch: i686, x86_64
2146af
- Related: rhbz#1615874
2146af
2146af
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-10
2146af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2146af
2146af
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-9
2146af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2146af
2146af
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-8
2146af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2146af
2146af
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-7
2146af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2146af
2146af
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-6
2146af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2146af
2146af
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-5
2146af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2146af
2146af
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-4
2146af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2146af
2146af
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-3
2146af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2146af
2146af
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-2
2146af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2146af
2146af
* Wed Apr 25 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.6-1
2146af
- Update to 1.0.6
2146af
- Export all symbols using the cdecl calling convention instead of
2146af
  stdcall as it is also done by various other downstream distributors
2146af
  (like mingw.org and gnuwin32) and it resolves various autoconf and
2146af
  cmake detection issues (RHBZ #811909, RHBZ #812573)
2146af
- Added -static subpackages (RHBZ #665539)
2146af
2146af
* Fri Mar 16 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.5-13
2146af
- Added win64 support (contributed by Jay Higley)
2146af
- Added the autoconf patch from http://ftp.suse.com/pub/people/sbrabec/bzip2/
2146af
- Dropped some unneeded patches
2146af
- Dropped the non-implementated testsuite pieces
2146af
- Bundle the pkgconfig files
2146af
2146af
* Wed Mar 07 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.5-12
2146af
- Renamed the source package to mingw-bzip2 (RHBZ #800847)
2146af
- Use mingw macros without leading underscore
2146af
- Dropped unneeded RPM tags
2146af
2146af
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.5-11
2146af
- Rebuild against the mingw-w64 toolchain
2146af
2146af
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-10
2146af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2146af
2146af
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-9
2146af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2146af
2146af
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-8
2146af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2146af
2146af
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-7
2146af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2146af
2146af
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.5-6
2146af
- Rebuild for mingw32-gcc 4.4
2146af
2146af
* Thu Dec 18 2008 Richard Jones <rjones@redhat.com> - 1.0.5-5
2146af
- Include the LICENSE file in doc section.
2146af
2146af
* Sat Nov 22 2008 Richard Jones <rjones@redhat.com> - 1.0.5-4
2146af
- Rename the implib as libbz2.dll.a so that libtool can find it.
2146af
2146af
* Wed Oct 29 2008 Richard Jones <rjones@redhat.com> - 1.0.5-3
2146af
- Fix mixed spaces/tabs in specfile.
2146af
2146af
* Fri Oct 10 2008 Richard Jones <rjones@redhat.com> - 1.0.5-2
2146af
- Allow the tests to be disabled selectively.
2146af
2146af
* Thu Sep 25 2008 Richard Jones <rjones@redhat.com> - 1.0.5-1
2146af
- Initial RPM release.