Blame SPECS/mingw-expat.spec

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