Blame SPECS/mingw-bzip2.spec

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