Blame SPECS/mingw-zlib.spec

d40a89
%{?mingw_package_header}
d40a89
d40a89
Name:           mingw-zlib
d40a89
Version:        1.2.11
d40a89
Release:        7%{?dist}
d40a89
Summary:        MinGW Windows zlib compression library
d40a89
d40a89
License:        zlib
d40a89
URL:            http://www.zlib.net/
d40a89
Source0:        http://www.zlib.net/zlib-%{version}.tar.xz
d40a89
# Replace the zlib build system with an autotools based one
d40a89
Patch3:         mingw32-zlib-1.2.7-autotools.patch
d40a89
# The .def file contains an empty LIBRARY line which isn't valid
d40a89
Patch5:         zlib-1.2.7-use-correct-def-file.patch
d40a89
# Libtool tries to make a libz-1.dll while we expect zlib1.dll
d40a89
# Force this by hacking the ltmain.sh
d40a89
Patch6:         mingw32-zlib-create-zlib1-dll.patch
d40a89
d40a89
BuildArch:      noarch
d40a89
d40a89
BuildRequires: make
d40a89
BuildRequires:  mingw32-filesystem >= 95
d40a89
BuildRequires:  mingw32-gcc
d40a89
BuildRequires:  mingw32-binutils
d40a89
d40a89
BuildRequires:  mingw64-filesystem >= 95
d40a89
BuildRequires:  mingw64-gcc
d40a89
BuildRequires:  mingw64-binutils
d40a89
d40a89
BuildRequires:  perl-interpreter
d40a89
BuildRequires:  autoconf
d40a89
BuildRequires:  automake
d40a89
BuildRequires:  libtool
d40a89
d40a89
d40a89
%description
d40a89
MinGW Windows zlib compression library.
d40a89
d40a89
d40a89
# Win32
d40a89
%package -n mingw32-zlib
d40a89
Summary:        MinGW Windows zlib compression library for the win32 target
d40a89
d40a89
%description -n mingw32-zlib
d40a89
MinGW Windows zlib compression library for the win32 target.
d40a89
d40a89
d40a89
%package -n mingw32-zlib-static
d40a89
Summary:        Static libraries for mingw32-zlib development.
d40a89
Requires:       mingw32-zlib = %{version}-%{release}
d40a89
d40a89
%description -n mingw32-zlib-static
d40a89
The mingw32-zlib-static package contains static library for mingw32-zlib development.
d40a89
d40a89
d40a89
# Win64
d40a89
%package -n mingw64-zlib
d40a89
Summary:        MinGW Windows zlib compression library for the win64 target
d40a89
d40a89
%description -n mingw64-zlib
d40a89
MinGW Windows zlib compression library for the win64 target.
d40a89
d40a89
%package -n mingw64-zlib-static
d40a89
Summary:        Static libraries for mingw64-zlib development
d40a89
Requires:       mingw64-zlib = %{version}-%{release}
d40a89
d40a89
%description -n mingw64-zlib-static
d40a89
The mingw64-zlib-static package contains static library for mingw64-zlib development.
d40a89
d40a89
d40a89
%{?mingw_debug_package}
d40a89
d40a89
d40a89
%prep
d40a89
%setup -q -n zlib-%{version}
d40a89
%patch3 -p1 -b .atools
d40a89
%patch5 -p1 -b .def
d40a89
# patch cannot create an empty dir
d40a89
mkdir m4
d40a89
iconv -f windows-1252 -t utf-8 <ChangeLog >ChangeLog.tmp
d40a89
d40a89
autoreconf --install --force
d40a89
d40a89
%patch6 -p0 -b .libtool
d40a89
d40a89
d40a89
%build
d40a89
%mingw_configure
d40a89
%mingw_make_build
d40a89
d40a89
d40a89
%install
d40a89
# Libtool tries to install a file called libz-1.dll
d40a89
# but this isn't created anymore due to patch #6
d40a89
# Fool libtool until a proper fix has been found
d40a89
touch build_win32/.libs/libz-1.dll build_win64/.libs/libz-1.dll
d40a89
%mingw_make_install
d40a89
d40a89
# Manually install the correct zlib.dll
d40a89
install -m 0644 build_win32/.libs/zlib1.dll %{buildroot}%{mingw32_bindir}/
d40a89
install -m 0644 build_win64/.libs/zlib1.dll %{buildroot}%{mingw64_bindir}/
d40a89
d40a89
# Install the pkgconfig file
d40a89
install -Dm 0644 build_win32/zlib.pc %{buildroot}%{mingw32_libdir}/pkgconfig/zlib.pc
d40a89
install -Dm 0644 build_win64/zlib.pc %{buildroot}%{mingw64_libdir}/pkgconfig/zlib.pc
d40a89
d40a89
# Drop the fake libz-1.dll
d40a89
rm -f %{buildroot}%{mingw32_bindir}/libz-1.dll
d40a89
rm -f %{buildroot}%{mingw64_bindir}/libz-1.dll
d40a89
d40a89
# Drop all .la files
d40a89
find %{buildroot} -name "*.la" -delete
d40a89
d40a89
# Drop the man pages
d40a89
rm -rf %{buildroot}%{mingw32_mandir}
d40a89
rm -rf %{buildroot}%{mingw64_mandir}
d40a89
d40a89
d40a89
# Win32
d40a89
%files -n mingw32-zlib
d40a89
%{mingw32_includedir}/zconf.h
d40a89
%{mingw32_includedir}/zlib.h
d40a89
%{mingw32_libdir}/libz.dll.a
d40a89
%{mingw32_bindir}/zlib1.dll
d40a89
%{mingw32_libdir}/pkgconfig/zlib.pc
d40a89
d40a89
%files -n mingw32-zlib-static
d40a89
%{mingw32_libdir}/libz.a
d40a89
d40a89
# Win64
d40a89
%files -n mingw64-zlib
d40a89
%{mingw64_includedir}/zconf.h
d40a89
%{mingw64_includedir}/zlib.h
d40a89
%{mingw64_libdir}/libz.dll.a
d40a89
%{mingw64_bindir}/zlib1.dll
d40a89
%{mingw64_libdir}/pkgconfig/zlib.pc
d40a89
d40a89
%files -n mingw64-zlib-static
d40a89
%{mingw64_libdir}/libz.a
d40a89
d40a89
d40a89
%changelog
d40a89
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.11-7
d40a89
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
d40a89
  Related: rhbz#1991688
d40a89
d40a89
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.11-6
d40a89
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
d40a89
d40a89
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.11-5
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d40a89
d40a89
* Thu Nov 12 2020 Sandro Mani <manisandro@gmail.com> - 1.2.11-4
d40a89
- Drop minizip subpackages, it's a separate package now
d40a89
d40a89
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.11-3
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d40a89
d40a89
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.11-2
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d40a89
d40a89
* Tue Aug 13 2019 Marc-André Lureau <marcandre.lureau@redhat.com> - 1.2.11-1
d40a89
- Update to 1.2.11
d40a89
d40a89
* Tue Aug 06 2019 Thomas Sailer <t.sailer@alumni.ethz.ch> - 1.2.8-12
d40a89
- update pkgconf file version to 1.2.8
d40a89
d40a89
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-11
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d40a89
d40a89
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-10
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d40a89
d40a89
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-9
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d40a89
d40a89
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-8
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d40a89
d40a89
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-7
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d40a89
d40a89
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-6
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d40a89
d40a89
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-5
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d40a89
d40a89
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.8-4
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d40a89
d40a89
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.8-3
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d40a89
d40a89
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.8-2
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d40a89
d40a89
* Sat Jul 13 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.2.8-1
d40a89
- Update to 1.2.8
d40a89
d40a89
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-2
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d40a89
d40a89
* Thu Nov 22 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.2.7-1
d40a89
- Update to 1.2.7
d40a89
d40a89
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-11
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d40a89
d40a89
* Sat Mar 10 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.2.5-10
d40a89
- Added win64 support
d40a89
- Simplified the build process by using autotools and a hacked version of libtool
d40a89
- Made the package compliant with the new MinGW packaging guidelines
d40a89
d40a89
* Tue Mar 06 2012 Kalev Lember <kalevlember@gmail.com> - 1.2.5-9
d40a89
- Renamed the source package to mingw-zlib (#800415)
d40a89
- Use mingw macros without leading underscore
d40a89
d40a89
* Mon Feb 27 2012 Kalev Lember <kalevlember@gmail.com> - 1.2.5-8
d40a89
- Remove the .la files
d40a89
- Spec clean up
d40a89
d40a89
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.2.5-7
d40a89
- Rebuild against the mingw-w64 toolchain
d40a89
- Use the correct RPM macros
d40a89
- Fix FTBFS against the latest binutils caused by the use of an invalid .def file
d40a89
d40a89
* Fri Feb 17 2012 David Tardon <dtardon@redhat.com> - 1.2.5-6
d40a89
- fix dlname in libz.la
d40a89
d40a89
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-5
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d40a89
d40a89
* Tue May 10 2011 Kalev Lember <kalev@smartlink.ee> - 1.2.5-4
d40a89
- Use the built .pc file instead of manually generating it
d40a89
d40a89
* Tue Apr 26 2011 Kalev Lember <kalev@smartlink.ee> - 1.2.5-3
d40a89
- Install zlib pkgconfig file
d40a89
d40a89
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-2
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d40a89
d40a89
* Sun Sep 12 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.2.5-1
d40a89
- Update to 1.2.5
d40a89
- Use %%global instead of %%define
d40a89
- Automatically generate debuginfo subpackage
d40a89
- Use correct %%defattr tag
d40a89
- Merged the changes from the native Fedora package
d40a89
d40a89
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-19
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d40a89
d40a89
* Fri Jun 12 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-18
d40a89
- Cannot copy current directory into itself, so fix the copy command
d40a89
  which creates 'x' subdirectory.
d40a89
d40a89
* Fri May  1 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 1.2.3-17
d40a89
- BR autoconf, automake, libtool
d40a89
d40a89
* Thu Apr 30 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 1.2.3-16
d40a89
- use autotools build system from native package
d40a89
d40a89
* Tue Mar  3 2009 W. Pilorz <wpilorz at gmail.com> - 1.2.3-15
d40a89
- Add static subpackage.
d40a89
d40a89
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-14
d40a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d40a89
d40a89
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-13
d40a89
- Rebuild for mingw32-gcc 4.4
d40a89
d40a89
* Mon Jan 19 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-12
d40a89
- Force rebuild to test maintenance account.
d40a89
d40a89
* Thu Dec 18 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-11
d40a89
- Pass correct CFLAGS to build.
d40a89
d40a89
* Thu Oct 16 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-10
d40a89
- Consider native patches.
d40a89
d40a89
* Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-9
d40a89
- Rename mingw -> mingw32.
d40a89
d40a89
* Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-8
d40a89
- Remove manpage.
d40a89
d40a89
* Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-7
d40a89
- Remove static library.
d40a89
d40a89
* Fri Sep  5 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-5
d40a89
- Fix misnamed file: zlibdll.a -> zlib.dll.a
d40a89
- Explicitly provide mingw(zlib1.dll).
d40a89
d40a89
* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-3
d40a89
- Initial RPM release, largely based on earlier work from several sources.