3032c4
Summary: An XML parser library
3032c4
Name: expat
3032c4
Version: 2.1.0
8718de
Release: 12%{?dist}
3032c4
Group: System Environment/Libraries
3032c4
Source: http://downloads.sourceforge.net/expat/expat-%{version}.tar.gz
3032c4
Patch0: expat-2.1.0-xmlwfargs.patch
3032c4
Patch1: expat-2.1.0-CVE-2016-0718.patch
3032c4
Patch2: expat-2.1.0-CVE-2015-2716.patch
8718de
Patch3: expat-2.1.0-CVE-2018-20843.patch
8718de
Patch4: expat-2.1.0-CVE-2019-15903.patch
3032c4
URL: http://www.libexpat.org/
3032c4
License: MIT
3032c4
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3032c4
BuildRequires: autoconf, automake, libtool, check-devel
3032c4
3032c4
%description
3032c4
This is expat, the C library for parsing XML, written by James Clark. Expat
3032c4
is a stream oriented XML parser. This means that you register handlers with
3032c4
the parser prior to starting the parse. These handlers are called when the
3032c4
parser discovers the associated structures in the document being parsed. A
3032c4
start tag is an example of the kind of structures for which you may
3032c4
register handlers.
3032c4
3032c4
%package devel
3032c4
Summary: Libraries and header files to develop applications using expat
3032c4
Group: Development/Libraries
3032c4
Requires: expat = %{version}-%{release}
3032c4
3032c4
%description devel
3032c4
The expat-devel package contains the libraries, include files and documentation
3032c4
to develop XML applications with expat.
3032c4
3032c4
%package static
3032c4
Summary: expat XML parser static library
3032c4
Group: Development/Libraries
3032c4
Requires: expat-devel%{?_isa} = %{version}-%{release}
3032c4
3032c4
%description static
3032c4
The expat-static package contains the static version of the expat library.
3032c4
Install it if you need to link statically with expat.
3032c4
3032c4
%prep
3032c4
%setup -q
3032c4
%patch0 -p1 -b .xmlwfargs
3032c4
%patch1 -p1 -b .cve0718
3032c4
%patch2 -p1 -b .cve2716
8718de
%patch3 -p1 -b .cve20843
8718de
%patch4 -p1 -b .cve15903
3032c4
3032c4
%build
3032c4
rm -rf autom4te*.cache
3032c4
libtoolize --copy --force --automake && aclocal && autoheader && autoconf
3032c4
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
3032c4
%configure
3032c4
make %{?_smp_mflags}
3032c4
3032c4
%install
3032c4
rm -rf ${RPM_BUILD_ROOT}
3032c4
3032c4
rm -f examples/*.dsp
3032c4
chmod 644 README COPYING Changes doc/* examples/*
3032c4
3032c4
make install DESTDIR=$RPM_BUILD_ROOT
3032c4
3032c4
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
3032c4
3032c4
%check
3032c4
make check
3032c4
3032c4
%clean
3032c4
rm -rf ${RPM_BUILD_ROOT}
3032c4
3032c4
%post -p /sbin/ldconfig
3032c4
%postun -p /sbin/ldconfig
3032c4
3032c4
%files
3032c4
%defattr(-,root,root)
3032c4
%doc README COPYING
3032c4
%{_bindir}/*
3032c4
%{_libdir}/lib*.so.*
3032c4
%{_mandir}/*/*
3032c4
3032c4
%files devel
3032c4
%defattr(-,root,root)
3032c4
%doc Changes doc examples
3032c4
%{_libdir}/lib*.so
3032c4
%{_libdir}/pkgconfig/*.pc
3032c4
%{_includedir}/*.h
3032c4
3032c4
%files static
3032c4
%defattr(-,root,root)
3032c4
%{_libdir}/lib*.a
3032c4
3032c4
%changelog
8718de
* Thu Apr  2 2020 Joe Orton <jorton@redhat.com> - 2.1.0-12
8718de
- add security fixes for CVE-2018-20843, CVE-2019-15903
8718de
3032c4
* Thu Jul 25 2019 Joe Orton <jorton@redhat.com> - 2.1.0-11
3032c4
- add security fix for CVE-2015-2716
3032c4
3032c4
* Thu Nov 24 2016 Joe Orton <jorton@redhat.com> - 2.1.0-10
3032c4
- updated security fix for CVE-2016-0718
3032c4
3032c4
* Thu Nov 24 2016 Joe Orton <jorton@redhat.com> - 2.1.0-9
3032c4
- add security fix for CVE-2016-0718
3032c4
3032c4
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.1.0-8
3032c4
- Mass rebuild 2014-01-24
3032c4
3032c4
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.1.0-7
3032c4
- Mass rebuild 2013-12-27
3032c4
3032c4
* Mon Jun 17 2013 Joe Orton <jorton@redhat.com> - 2.1.0-6
3032c4
- fix "xmlwf -h" output (#948534)
3032c4
3032c4
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-5
3032c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3032c4
3032c4
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-4
3032c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3032c4
3032c4
* Fri Apr 13 2012 Joe Orton <jorton@redhat.com> - 2.1.0-3
3032c4
- add -static subpackage (#722647)
3032c4
3032c4
* Fri Mar 30 2012 Joe Orton <jorton@redhat.com> - 2.1.0-1
3032c4
- ship .pc file, move library back to libdir (#808399)
3032c4
3032c4
* Mon Mar 26 2012 Joe Orton <jorton@redhat.com> - 2.1.0-1
3032c4
- update to 2.1.0 (#806602)
3032c4
3032c4
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-12
3032c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3032c4
3032c4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-11
3032c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3032c4
3032c4
* Mon Feb  8 2010 Joe Orton <jorton@redhat.com> - 2.0.1-10
3032c4
- revised fix for CVE-2009-3560 regression (#544996)
3032c4
3032c4
* Sun Jan 31 2010 Joe Orton <jorton@redhat.com> - 2.0.1-9
3032c4
- drop static libraries (#556046)
3032c4
- add fix for regression in CVE-2009-3560 patch (#544996)
3032c4
3032c4
* Tue Dec  1 2009 Joe Orton <jorton@redhat.com> - 2.0.1-8
3032c4
- add security fix for CVE-2009-3560 (#533174)
3032c4
- add security fix for CVE-2009-3720 (#531697)
3032c4
- run the test suite
3032c4
3032c4
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-7
3032c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3032c4
3032c4
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-6
3032c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3032c4
3032c4
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.1-5
3032c4
- Autorebuild for GCC 4.3
3032c4
3032c4
* Wed Jan 23 2008 Joe Orton <jorton@redhat.com> 2.0.1-4
3032c4
- chmod 644 even more documentation (#429806)
3032c4
3032c4
* Tue Jan  8 2008 Joe Orton <jorton@redhat.com> 2.0.1-3
3032c4
- chmod 644 the documentation (#427950)
3032c4
3032c4
* Wed Aug 22 2007 Joe Orton <jorton@redhat.com> 2.0.1-2
3032c4
- rebuild
3032c4
3032c4
* Wed Aug  8 2007 Joe Orton <jorton@redhat.com> 2.0.1-1
3032c4
- update to 2.0.1
3032c4
- fix the License tag
3032c4
- drop the .la file
3032c4
3032c4
* Sun Feb  4 2007 Joe Orton <jorton@redhat.com> 1.95.8-10
3032c4
- remove trailing dot in Summary (#225742)
3032c4
- use preferred BuildRoot per packaging guidelines (#225742)
3032c4
3032c4
* Tue Jan 30 2007 Joe Orton <jorton@redhat.com> 1.95.8-9
3032c4
- regenerate configure/libtool correctly (#199361)
3032c4
- strip DSP files from examples (#186889)
3032c4
- fix expat.h compilation with g++ -pedantic (#190244)
3032c4
3032c4
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.95.8-8.2.1
3032c4
- rebuild
3032c4
3032c4
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.95.8-8.2
3032c4
- bump again for double-long bug on ppc(64)
3032c4
3032c4
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.95.8-8.1
3032c4
- rebuilt for new gcc4.1 snapshot and glibc changes
3032c4
3032c4
* Tue Jan 31 2006 Joe Orton <jorton@redhat.com> 1.95.8-8
3032c4
- restore .la file for apr-util
3032c4
3032c4
* Mon Jan 30 2006 Joe Orton <jorton@redhat.com> 1.95.8-7
3032c4
- move library to /lib (#178743)
3032c4
- omit .la file (#170031)
3032c4
3032c4
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
3032c4
- rebuilt
3032c4
3032c4
* Tue Mar  8 2005 Joe Orton <jorton@redhat.com> 1.95.8-6
3032c4
- rebuild
3032c4
3032c4
* Thu Nov 25 2004 Ivana Varekova <varekova@redhat.com> 1.95.8
3032c4
- update to 1.95.8
3032c4
3032c4
* Wed Jun 16 2004 Jeff Johnson <jbj@jbj.org> 1.95.7-4
3032c4
- add -fPIC (#125586).
3032c4
3032c4
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
3032c4
- rebuilt
3032c4
3032c4
* Fri Jun 11 2004 Jeff Johnson <jbj@jbj.org> 1.95.7-2
3032c4
- fix: malloc failure from dbus test suite (#124747).
3032c4
3032c4
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
3032c4
- rebuilt
3032c4
3032c4
* Sun Feb 22 2004 Joe Orton <jorton@redhat.com> 1.95.7-1
3032c4
- update to 1.95.7, include COPYING file in main package
3032c4
3032c4
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
3032c4
- rebuilt
3032c4
3032c4
* Wed Sep 17 2003 Matt Wilson <msw@redhat.com> 1.95.5-6
3032c4
- rebuild again for #91211
3032c4
3032c4
* Tue Sep 16 2003 Matt Wilson <msw@redhat.com> 1.95.5-5
3032c4
- rebuild to fix gzip'ed file md5sums (#91211)
3032c4
3032c4
* Tue Jun 17 2003 Jeff Johnson <jbj@redhat.com> 1.95.5-4
3032c4
- rebuilt because of crt breakage on ppc64.
3032c4
3032c4
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
3032c4
- rebuilt
3032c4
3032c4
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
3032c4
- rebuilt
3032c4
3032c4
* Mon Nov 11 2002 Jeff Johnson <jbj@redhat.com> 1.95.5-1
3032c4
- update to 1.95.5.
3032c4
3032c4
* Mon Aug 19 2002 Trond Eivind Glomsrød <teg@redhat.com> 1,95.4-1
3032c4
- 1.95.4. 1.95.3 was withdrawn by the expat developers.
3032c4
3032c4
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
3032c4
- automated rebuild
3032c4
3032c4
* Thu Jun  6 2002 Trond Eivind Glomsrød <teg@redhat.com> 1,95.3-1
3032c4
- 1.95.3
3032c4
3032c4
* Thu May 23 2002 Tim Powers <timp@redhat.com>
3032c4
- automated rebuild
3032c4
3032c4
* Fri Mar 22 2002 Trond Eivind Glomsrød <teg@redhat.com>
3032c4
- Change a prereq in -devel on main package to a req
3032c4
- License from MIT/X11 to BSD
3032c4
3032c4
* Mon Mar 13 2002 Trond Eivind Glomsrød <teg@redhat.com>
3032c4
- 1.95.2
3032c4
3032c4
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
3032c4
- Bump release + rebuild.
3032c4
3032c4
* Tue Oct 24 2000 Jeff Johnson <jbj@redhat.com>
3032c4
- update to 1.95.1
3032c4
3032c4
* Sun Oct  8 2000 Jeff Johnson <jbj@redhat.com>
3032c4
- Create.