Blame SPECS/mingw-expat.spec

969a57
%{?mingw_package_header}
969a57
969a57
Name:           mingw-expat
969a57
Version:        2.2.4
2ee26a
Release:        5%{?dist}
969a57
Summary:        MinGW Windows port of expat XML parser library
969a57
969a57
License:        MIT
969a57
URL:            http://www.libexpat.org/
969a57
Source0:        http://downloads.sourceforge.net/expat/expat-%{version}.tar.bz2
2ee26a
Patch1:         expat-2.2.5-CVE-2018-20843.patch
969a57
969a57
BuildArch:      noarch
2ee26a
ExclusiveArch: %{ix86} x86_64
969a57
969a57
BuildRequires:  mingw32-filesystem >= 95
969a57
BuildRequires:  mingw32-gcc
969a57
BuildRequires:  mingw32-binutils
969a57
969a57
BuildRequires:  mingw64-filesystem >= 95
969a57
BuildRequires:  mingw64-gcc
969a57
BuildRequires:  mingw64-binutils
969a57
969a57
969a57
%description
969a57
This is expat, the C library for parsing XML, written by James Clark. Expat
969a57
is a stream oriented XML parser. This means that you register handlers with
969a57
the parser prior to starting the parse. These handlers are called when the
969a57
parser discovers the associated structures in the document being parsed. A
969a57
start tag is an example of the kind of structures for which you may
969a57
register handlers.
969a57
969a57
# Win32
969a57
%package -n mingw32-expat
969a57
Summary:        MinGW Windows port of expat XML parser library
969a57
969a57
%description -n mingw32-expat
969a57
This is expat, the C library for parsing XML, written by James Clark. Expat
969a57
is a stream oriented XML parser. This means that you register handlers with
969a57
the parser prior to starting the parse. These handlers are called when the
969a57
parser discovers the associated structures in the document being parsed. A
969a57
start tag is an example of the kind of structures for which you may
969a57
register handlers.
969a57
969a57
%package -n mingw32-expat-static
969a57
Summary:        Static version of the MinGW Windows expat XML parser library
969a57
Requires:       mingw32-expat = %{version}-%{release}
969a57
969a57
%description -n mingw32-expat-static
969a57
Static version of the MinGW Windows expat XML parser library.
969a57
969a57
# Win64
969a57
%package -n mingw64-expat
969a57
Summary:        MinGW Windows port of expat XML parser library
969a57
969a57
%description -n mingw64-expat
969a57
This is expat, the C library for parsing XML, written by James Clark. Expat
969a57
is a stream oriented XML parser. This means that you register handlers with
969a57
the parser prior to starting the parse. These handlers are called when the
969a57
parser discovers the associated structures in the document being parsed. A
969a57
start tag is an example of the kind of structures for which you may
969a57
register handlers.
969a57
969a57
%package -n mingw64-expat-static
969a57
Summary:        Static version of the MinGW Windows expat XML parser library
969a57
Requires:       mingw64-expat = %{version}-%{release}
969a57
969a57
%description -n mingw64-expat-static
969a57
Static version of the MinGW Windows expat XML parser library.
969a57
969a57
969a57
%?mingw_debug_package
969a57
969a57
969a57
%prep
969a57
%setup -q -n expat-%{version}
2ee26a
%patch1 -p2 -b .cve20843
969a57
969a57
%build
969a57
%mingw_configure
969a57
%mingw_make %{?_smp_mflags}
969a57
969a57
969a57
%install
969a57
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
969a57
969a57
# Remove .la files
969a57
find $RPM_BUILD_ROOT -name "*.la" -delete
969a57
969a57
# Remove documentation which duplicates that found in the native package.
969a57
rm -r $RPM_BUILD_ROOT%{mingw32_docdir}
969a57
rm -r $RPM_BUILD_ROOT%{mingw32_mandir}/man1
969a57
rm -r $RPM_BUILD_ROOT%{mingw64_docdir}
969a57
rm -r $RPM_BUILD_ROOT%{mingw64_mandir}/man1
969a57
969a57
# Win32
969a57
%files -n mingw32-expat
969a57
%license COPYING
969a57
%{mingw32_bindir}/libexpat-1.dll
969a57
%{mingw32_bindir}/xmlwf.exe
969a57
%{mingw32_libdir}/libexpat.dll.a
969a57
%{mingw32_libdir}/pkgconfig/expat.pc
969a57
%{mingw32_includedir}/expat.h
969a57
%{mingw32_includedir}/expat_config.h
969a57
%{mingw32_includedir}/expat_external.h
969a57
969a57
%files -n mingw32-expat-static
969a57
%{mingw32_libdir}/libexpat.a
969a57
969a57
# Win64
969a57
%files -n mingw64-expat
969a57
%license COPYING
969a57
%{mingw64_bindir}/libexpat-1.dll
969a57
%{mingw64_bindir}/xmlwf.exe
969a57
%{mingw64_libdir}/libexpat.dll.a
969a57
%{mingw64_libdir}/pkgconfig/expat.pc
969a57
%{mingw64_includedir}/expat.h
969a57
%{mingw64_includedir}/expat_config.h
969a57
%{mingw64_includedir}/expat_external.h
969a57
969a57
%files -n mingw64-expat-static
969a57
%{mingw64_libdir}/libexpat.a
969a57
969a57
969a57
%changelog
2ee26a
* Wed Jun 10 2020 Uri Lublin <uril@redhat.com> - 2.2.4-5
2ee26a
- Rebuild
2ee26a
- Resolves: rhbz#1773899
2ee26a
2ee26a
* Wed May 06 2020 Uri Lublin <uril@redhat.com> - 2.2.4-4
2ee26a
- Fix CVE-2018-20843
2ee26a
- Resolves: rhbz#1773899
2ee26a
969a57
* Tue Aug 14 2018 Victor Toso <victortoso@redhat.com> - 2.2.4-3
969a57
- ExclusiveArch: i686, x86_64
969a57
- Related: rhbz#1615874
969a57
969a57
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.4-2
969a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
969a57
969a57
* Sun Oct 15 2017 Kalev Lember <klember@redhat.com> - 2.2.4-1
969a57
- Update to 2.2.4
969a57
969a57
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
969a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
969a57
969a57
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
969a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
969a57
969a57
* Mon Oct 24 2016 Kalev Lember <klember@redhat.com> - 2.2.0-1
969a57
- Update to 2.2.0
969a57
- Don't set group tags
969a57
- Use license macro for COPYING
969a57
969a57
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-8
969a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
969a57
969a57
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-7
969a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
969a57
969a57
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-6
969a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
969a57
969a57
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-5
969a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
969a57
969a57
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-4
969a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
969a57
969a57
* Sat Jul 21 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.1.0-3
969a57
- Added static subpackages
969a57
969a57
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
969a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
969a57
969a57
* Sun Jun 03 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.1.0-1
969a57
- Update to 2.1.0
969a57
- Dropped the autoconf/libtool regeneration pieces
969a57
969a57
* Sat Mar 10 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.0.1-12
969a57
- Added win64 support
969a57
- Dropped unneeded RPM tags
969a57
969a57
* Fri Mar 09 2012 Kalev Lember <kalevlember@gmail.com> - 2.0.1-11
969a57
- Remove .la files
969a57
969a57
* Tue Mar 06 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.0.1-10
969a57
- Renamed the source package to mingw-expat (RHBZ #800377)
969a57
- Use mingw macros without leading underscore
969a57
- Use the RPM magic to automatically generate provides/requires tags
969a57
- Automatically generate a debuginfo subpackage
969a57
969a57
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.0.1-9
969a57
- Rebuild against the mingw-w64 toolchain
969a57
969a57
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-8
969a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
969a57
969a57
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-7
969a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
969a57
969a57
* Wed Jan 13 2010 Richard W.M. Jones <rjones@redhat.com> - 2.0.1-6
969a57
- Fix Source0 URL.
969a57
969a57
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-5
969a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
969a57
969a57
* Mon Mar  9 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.1-4
969a57
- Remove +x permissions on COPYING file.
969a57
969a57
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.1-3
969a57
- Rebuild for mingw32-gcc 4.4
969a57
969a57
* Fri Feb  6 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.1-2
969a57
- Include license.
969a57
969a57
* Fri Oct 31 2008 Richard W.M. Jones <rjones@redhat.com> - 2.0.1-1
969a57
- Initial RPM release.