122c84
%global unversion 2_5_0
4e0c08
4e0c08
Summary: An XML parser library
4e0c08
Name: expat
4e0c08
Version: %(echo %{unversion} | sed 's/_/./g')
122c84
Release: 1%{?dist}
4e0c08
Source: https://github.com/libexpat/libexpat/archive/R_%{unversion}.tar.gz#/expat-%{version}.tar.gz
4e0c08
URL: https://libexpat.github.io/
4e0c08
License: MIT
4e0c08
BuildRequires: autoconf, libtool, xmlto, gcc-c++
4e0c08
BuildRequires: make
4e0c08
4e0c08
%description
4e0c08
This is expat, the C library for parsing XML, written by James Clark. Expat
4e0c08
is a stream oriented XML parser. This means that you register handlers with
4e0c08
the parser prior to starting the parse. These handlers are called when the
4e0c08
parser discovers the associated structures in the document being parsed. A
4e0c08
start tag is an example of the kind of structures for which you may
4e0c08
register handlers.
4e0c08
4e0c08
%package devel
4e0c08
Summary: Libraries and header files to develop applications using expat
4e0c08
Requires: expat%{?_isa} = %{version}-%{release}
4e0c08
4e0c08
%description devel
4e0c08
The expat-devel package contains the libraries, include files and documentation
4e0c08
to develop XML applications with expat.
4e0c08
4e0c08
%package static
4e0c08
Summary: expat XML parser static library
4e0c08
Requires: expat-devel%{?_isa} = %{version}-%{release}
4e0c08
4e0c08
%description static
4e0c08
The expat-static package contains the static version of the expat library.
4e0c08
Install it if you need to link statically with expat.
4e0c08
4e0c08
%prep
4e0c08
%setup -q -n libexpat-R_%{unversion}/expat
4e0c08
4e0c08
sed -i 's/install-data-hook/do-nothing-please/' lib/Makefile.am
4e0c08
./buildconf.sh
4e0c08
4e0c08
%build
4e0c08
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
4e0c08
export DOCBOOK_TO_MAN="xmlto man --skip-validation"
4e0c08
%configure
4e0c08
%make_build
4e0c08
4e0c08
%install
4e0c08
%make_install
4e0c08
4e0c08
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
4e0c08
4e0c08
%check
4e0c08
make check
4e0c08
4e0c08
%ldconfig_scriptlets
4e0c08
4e0c08
%files
4e0c08
%doc AUTHORS Changes
4e0c08
%license COPYING
4e0c08
%{_bindir}/*
4e0c08
%{_libdir}/lib*.so.*
4e0c08
%{_mandir}/*/*
4e0c08
4e0c08
%files devel
ea8246
%doc doc/reference.html doc/*.css examples/*.c
4e0c08
%{_libdir}/lib*.so
4e0c08
%{_libdir}/pkgconfig/*.pc
4e0c08
%{_includedir}/*.h
ea8246
%{_libdir}/cmake/expat-%{version}
4e0c08
4e0c08
%files static
4e0c08
%{_libdir}/lib*.a
4e0c08
4e0c08
%changelog
122c84
* Thu Nov 10 2022 Tomas Korbar <tkorbar@redhat.com> - 2.5.0-1
122c84
- Rebase to version 2.5.0
e56760
- Resolves: CVE-2022-43680
e56760
ea8246
* Thu Sep 29 2022 Tomas Korbar <tkorbar@redhat.com> - 2.4.9-1
ea8246
- Rebase to version 2.4.9
a028e6
- Resolves: CVE-2022-40674
a028e6
ea8246
* Tue Apr 26 2022 Tomas Korbar <tkorbar@redhat.com> -  2.4.7-1
ea8246
- Rebase to version 2.4.7
ea8246
- Resolves: rhbz#2067201
cb7fe5
- Resolves: CVE-2022-25313
ea8246
- Resolves: CVE-2022-25314
ea8246
- Resolves: CVE-2022-25236
4e0c08
4e0c08
* Mon Mar 14 2022 Tomas Korbar <tkorbar@redhat.com> -  2.2.10-11
4e0c08
- Improve fix for CVE-2022-25236
4e0c08
- Related: CVE-2022-25236
4e0c08
4e0c08
* Mon Feb 28 2022 Tomas Korbar <tkorbar@redhat.com> -  2.2.10-10
4e0c08
- Fix multiple CVEs
4e0c08
- CVE-2022-25236 expat: namespace-separator characters in "xmlns[:prefix]" attribute values can lead to arbitrary code execution
4e0c08
- CVE-2022-25235 expat: malformed 2- and 3-byte UTF-8 sequences can lead to arbitrary code execution
4e0c08
- CVE-2022-25315 expat: integer overflow in storeRawNames()
4e0c08
- Resolves: CVE-2022-25236
4e0c08
- Resolves: CVE-2022-25235
4e0c08
- Resolves: CVE-2022-25315
4e0c08
4e0c08
* Thu Feb 10 2022 Tomas Korbar <tkorbar@redhat.com> -  2.2.10-9
4e0c08
- CVE-2022-23852 expat: integer overflow in function XML_GetBuffer
4e0c08
- Resolves: CVE-2022-23852
4e0c08
4e0c08
* Thu Feb 10 2022 Tomas Korbar <tkorbar@redhat.com> -  2.2.10-8
4e0c08
- CVE-2021-45960 expat: Large number of prefixed XML attributes on a single tag can crash libexpat
4e0c08
- Resolves: CVE-2021-45960
4e0c08
4e0c08
* Wed Feb 09 2022 Tomas Korbar <tkorbar@redhat.com> -  2.2.10-7
4e0c08
- CVE-2021-46143 expat: Integer overflow in doProlog in xmlparse.c
4e0c08
- Resolves: CVE-2021-46143
4e0c08
4e0c08
* Wed Feb 09 2022 Tomas Korbar <tkorbar@redhat.com> -  2.2.10-6
4e0c08
- CVE-2022-22827 Integer overflow in storeAtts in xmlparse.c
4e0c08
- CVE-2022-22826 Integer overflow in nextScaffoldPart in xmlparse.c
4e0c08
- CVE-2022-22825 Integer overflow in lookup in xmlparse.c
4e0c08
- CVE-2022-22824 Integer overflow in defineAttribute in xmlparse.c
4e0c08
- CVE-2022-22823 Integer overflow in build_model in xmlparse.c
4e0c08
- CVE-2022-22822 Integer overflow in addBinding in xmlparse.c
4e0c08
- Resolves: CVE-2022-22827
4e0c08
- Resolves: CVE-2022-22826
4e0c08
- Resolves: CVE-2022-22825
4e0c08
- Resolves: CVE-2022-22824
4e0c08
- Resolves: CVE-2022-22823
4e0c08
- Resolves: CVE-2022-22822
4e0c08
4e0c08
* Mon Feb 07 2022 Tomas Korbar <tkorbar@redhat.com> -  2.2.10-5
4e0c08
- CVE-2022-23990 expat: integer overflow in the doProlog function
4e0c08
- Resolve: rhbz#2050503
4e0c08
4e0c08
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.2.10-4
4e0c08
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
4e0c08
  Related: rhbz#1991688
4e0c08
4e0c08
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.2.10-3
4e0c08
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
4e0c08
4e0c08
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.10-2
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4e0c08
4e0c08
* Fri Nov 13 2020 Joe Orton <jorton@redhat.com> - 2.2.10-1
4e0c08
- update to 2.2.10 (#1884940)
4e0c08
4e0c08
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.8-3
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4e0c08
4e0c08
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.8-2
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4e0c08
4e0c08
* Mon Sep 16 2019 Joe Orton <jorton@redhat.com> - 2.2.8-1
4e0c08
- update to 2.2.8 (#1752167)
4e0c08
4e0c08
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.7-2
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4e0c08
4e0c08
* Thu Jun 27 2019 Joe Orton <jorton@redhat.com> - 2.2.7-1
4e0c08
- update to 2.2.7 (#1723724, #1722224)
4e0c08
4e0c08
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.6-2
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4e0c08
4e0c08
* Wed Aug 15 2018 Joe Orton <jorton@redhat.com> - 2.2.6-1
4e0c08
- update to 2.2.6
4e0c08
4e0c08
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.5-4
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4e0c08
4e0c08
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.5-3
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4e0c08
4e0c08
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.2.5-2
4e0c08
- Switch to %%ldconfig_scriptlets
4e0c08
4e0c08
* Thu Nov  2 2017 Joe Orton <jorton@redhat.com> - 2.2.5-1
4e0c08
- update to 2.2.5 (#1508667)
4e0c08
4e0c08
* Mon Aug 21 2017 Joe Orton <jorton@redhat.com> - 2.2.4-1
4e0c08
- update to 2.2.4 (#1483359)
4e0c08
4e0c08
* Fri Aug  4 2017 Joe Orton <jorton@redhat.com> - 2.2.3-1
4e0c08
- fix tests with unsigned char (upstream PR 109)
4e0c08
- update to 2.2.3 (#1473266)
4e0c08
4e0c08
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-4
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
4e0c08
4e0c08
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-3
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4e0c08
4e0c08
* Fri Jul 14 2017 Joe Orton <jorton@redhat.com> - 2.2.2-2
4e0c08
- update to 2.2.2 (#1470891)
4e0c08
4e0c08
* Fri Jul  7 2017 Joe Orton <jorton@redhat.com> - 2.2.1-2
4e0c08
- trim unnecessary doc, examples content
4e0c08
4e0c08
* Mon Jun 19 2017 Joe Orton <jorton@redhat.com> - 2.2.1-1
4e0c08
- update to 2.2.1 (#1462474)
4e0c08
4e0c08
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4e0c08
4e0c08
* Tue Jun 21 2016 Joe Orton <jorton@redhat.com> - 2.2.0-1
4e0c08
- update to 2.2.0 (#1247348)
4e0c08
4e0c08
* Thu Jun 16 2016 Joe Orton <jorton@redhat.com> - 2.1.1-2
4e0c08
- add security fixes for CVE-2016-0718, CVE-2012-6702, CVE-2016-5300,
4e0c08
  CVE-2016-4472
4e0c08
4e0c08
* Mon Apr 18 2016 David Tardon <dtardon@redhat.com> - 2.1.1-1
4e0c08
- new upstream release
4e0c08
4e0c08
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-13
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4e0c08
4e0c08
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-12
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4e0c08
4e0c08
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 2.1.0-11
4e0c08
- Rebuilt for Fedora 23 Change
4e0c08
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
4e0c08
4e0c08
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-10
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4e0c08
4e0c08
* Sat Jul 12 2014 Tom Callaway <spot@fedoraproject.org> - 2.1.0-9
4e0c08
- fix license handling
4e0c08
4e0c08
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-8
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4e0c08
4e0c08
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-7
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4e0c08
4e0c08
* Mon Jun 17 2013 Joe Orton <jorton@redhat.com> - 2.1.0-6
4e0c08
- fix "xmlwf -h" output (#948534)
4e0c08
4e0c08
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-5
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4e0c08
4e0c08
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-4
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4e0c08
4e0c08
* Fri Apr 13 2012 Joe Orton <jorton@redhat.com> - 2.1.0-3
4e0c08
- add -static subpackage (#722647)
4e0c08
4e0c08
* Fri Mar 30 2012 Joe Orton <jorton@redhat.com> - 2.1.0-1
4e0c08
- ship .pc file, move library back to libdir (#808399)
4e0c08
4e0c08
* Mon Mar 26 2012 Joe Orton <jorton@redhat.com> - 2.1.0-1
4e0c08
- update to 2.1.0 (#806602)
4e0c08
4e0c08
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-12
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4e0c08
4e0c08
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-11
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4e0c08
4e0c08
* Mon Feb  8 2010 Joe Orton <jorton@redhat.com> - 2.0.1-10
4e0c08
- revised fix for CVE-2009-3560 regression (#544996)
4e0c08
4e0c08
* Sun Jan 31 2010 Joe Orton <jorton@redhat.com> - 2.0.1-9
4e0c08
- drop static libraries (#556046)
4e0c08
- add fix for regression in CVE-2009-3560 patch (#544996)
4e0c08
4e0c08
* Tue Dec  1 2009 Joe Orton <jorton@redhat.com> - 2.0.1-8
4e0c08
- add security fix for CVE-2009-3560 (#533174)
4e0c08
- add security fix for CVE-2009-3720 (#531697)
4e0c08
- run the test suite
4e0c08
4e0c08
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-7
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4e0c08
4e0c08
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-6
4e0c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4e0c08
4e0c08
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.1-5
4e0c08
- Autorebuild for GCC 4.3
4e0c08
4e0c08
* Wed Jan 23 2008 Joe Orton <jorton@redhat.com> 2.0.1-4
4e0c08
- chmod 644 even more documentation (#429806)
4e0c08
4e0c08
* Tue Jan  8 2008 Joe Orton <jorton@redhat.com> 2.0.1-3
4e0c08
- chmod 644 the documentation (#427950)
4e0c08
4e0c08
* Wed Aug 22 2007 Joe Orton <jorton@redhat.com> 2.0.1-2
4e0c08
- rebuild
4e0c08
4e0c08
* Wed Aug  8 2007 Joe Orton <jorton@redhat.com> 2.0.1-1
4e0c08
- update to 2.0.1
4e0c08
- fix the License tag
4e0c08
- drop the .la file
4e0c08
4e0c08
* Sun Feb  4 2007 Joe Orton <jorton@redhat.com> 1.95.8-10
4e0c08
- remove trailing dot in Summary (#225742)
4e0c08
- use preferred BuildRoot per packaging guidelines (#225742)
4e0c08
4e0c08
* Tue Jan 30 2007 Joe Orton <jorton@redhat.com> 1.95.8-9
4e0c08
- regenerate configure/libtool correctly (#199361)
4e0c08
- strip DSP files from examples (#186889)
4e0c08
- fix expat.h compilation with g++ -pedantic (#190244)
4e0c08
4e0c08
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.95.8-8.2.1
4e0c08
- rebuild
4e0c08
4e0c08
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.95.8-8.2
4e0c08
- bump again for double-long bug on ppc(64)
4e0c08
4e0c08
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.95.8-8.1
4e0c08
- rebuilt for new gcc4.1 snapshot and glibc changes
4e0c08
4e0c08
* Tue Jan 31 2006 Joe Orton <jorton@redhat.com> 1.95.8-8
4e0c08
- restore .la file for apr-util
4e0c08
4e0c08
* Mon Jan 30 2006 Joe Orton <jorton@redhat.com> 1.95.8-7
4e0c08
- move library to /lib (#178743)
4e0c08
- omit .la file (#170031)
4e0c08
4e0c08
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
4e0c08
- rebuilt
4e0c08
4e0c08
* Tue Mar  8 2005 Joe Orton <jorton@redhat.com> 1.95.8-6
4e0c08
- rebuild
4e0c08
4e0c08
* Thu Nov 25 2004 Ivana Varekova <varekova@redhat.com> 1.95.8
4e0c08
- update to 1.95.8
4e0c08
4e0c08
* Wed Jun 16 2004 Jeff Johnson <jbj@jbj.org> 1.95.7-4
4e0c08
- add -fPIC (#125586).
4e0c08
4e0c08
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
4e0c08
- rebuilt
4e0c08
4e0c08
* Fri Jun 11 2004 Jeff Johnson <jbj@jbj.org> 1.95.7-2
4e0c08
- fix: malloc failure from dbus test suite (#124747).
4e0c08
4e0c08
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
4e0c08
- rebuilt
4e0c08
4e0c08
* Sun Feb 22 2004 Joe Orton <jorton@redhat.com> 1.95.7-1
4e0c08
- update to 1.95.7, include COPYING file in main package
4e0c08
4e0c08
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
4e0c08
- rebuilt
4e0c08
4e0c08
* Wed Sep 17 2003 Matt Wilson <msw@redhat.com> 1.95.5-6
4e0c08
- rebuild again for #91211
4e0c08
4e0c08
* Tue Sep 16 2003 Matt Wilson <msw@redhat.com> 1.95.5-5
4e0c08
- rebuild to fix gzip'ed file md5sums (#91211)
4e0c08
4e0c08
* Tue Jun 17 2003 Jeff Johnson <jbj@redhat.com> 1.95.5-4
4e0c08
- rebuilt because of crt breakage on ppc64.
4e0c08
4e0c08
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
4e0c08
- rebuilt
4e0c08
4e0c08
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
4e0c08
- rebuilt
4e0c08
4e0c08
* Mon Nov 11 2002 Jeff Johnson <jbj@redhat.com> 1.95.5-1
4e0c08
- update to 1.95.5.
4e0c08
4e0c08
* Mon Aug 19 2002 Trond Eivind Glomsrød <teg@redhat.com> 1,95.4-1
4e0c08
- 1.95.4. 1.95.3 was withdrawn by the expat developers.
4e0c08
4e0c08
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
4e0c08
- automated rebuild
4e0c08
4e0c08
* Thu Jun  6 2002 Trond Eivind Glomsrød <teg@redhat.com> 1,95.3-1
4e0c08
- 1.95.3
4e0c08
4e0c08
* Thu May 23 2002 Tim Powers <timp@redhat.com>
4e0c08
- automated rebuild
4e0c08
4e0c08
* Fri Mar 22 2002 Trond Eivind Glomsrød <teg@redhat.com>
4e0c08
- Change a prereq in -devel on main package to a req
4e0c08
- License from MIT/X11 to BSD
4e0c08
4e0c08
* Mon Mar 11 2002 Trond Eivind Glomsrød <teg@redhat.com>
4e0c08
- 1.95.2
4e0c08
4e0c08
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
4e0c08
- Bump release + rebuild.
4e0c08
4e0c08
* Tue Oct 24 2000 Jeff Johnson <jbj@redhat.com>
4e0c08
- update to 1.95.1
4e0c08
4e0c08
* Sun Oct  8 2000 Jeff Johnson <jbj@redhat.com>
4e0c08
- Create.