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