%define doc_license %{nil} %define doc_license 1 %if 0%{?rhel}%{?fedora} %if 0%{?rhel} %if 0%{?rhel} < 7 %define doc_license 0 %endif %else %if 0%{?fedora} < 19 %define doc_license 0 %endif %endif %endif %define license_file COPYING Summary: A library for parsing XML documents Name: compat-expat1 Version: 1.95.8 Release: 18%{?dist} Group: System Environment/Libraries Source: http://downloads.sourceforge.net/expat/expat-%{version}.tar.gz Patch1: expat-2.0.1-CVE-2009-3560-revised.patch Patch2: expat-1.95.8-CVE-2009-3720.patch URL: http://www.libexpat.org/ License: MIT BuildRequires: autoconf, automake, libtool BuildRequires: gcc-c++ %description This is expat, the C library for parsing XML, written by James Clark. Expat is a stream oriented XML parser. This means that you register handlers with the parser prior to starting the parse. These handlers are called when the parser discovers the associated structures in the document being parsed. A start tag is an example of the kind of structures for which you may register handlers. %prep %setup -q -n "expat-%{version}" %patch1 -p1 -b .cve3560 %patch2 -p1 -b .cve3720 %build rm -rf autom4te*.cache cp "$( aclocal --print-ac-dir )"/libtool.m4 conftools || exit 1 libtoolize --copy --force --automake && aclocal && autoheader && autoconf export CFLAGS="${RPM_OPT_FLAGS} -fPIC" export ac_cv_header_check_h=no %configure %{__make} %{?_smp_mflags} %install %makeinstall man1dir="${RPM_BUILD_ROOT}/%{_mandir}/man1" rm -rf "${RPM_BUILD_ROOT}"{"%{_bindir}","%{_includedir}","%{_datadir}/man"} \ "${RPM_BUILD_ROOT}%{_libdir}"/libexpat.{a,la,so} %check %{__make} %{?_smp_mflags} check %post /sbin/ldconfig %postun /sbin/ldconfig %files %if 0%{?doc_license} %license %{license_file} %else %doc %{license_file} %endif %{_libdir}/lib*.so.* %changelog * Fri Oct 27 2017 Tomasz Tomasik - 1.95.8-18 - Add a few changes to the SPEC file - Rebuilt for EL7 * Fri Feb 10 2017 Fedora Release Engineering - 1.95.8-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 1.95.8-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.95.8-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Aug 16 2014 Fedora Release Engineering - 1.95.8-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.95.8-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.95.8-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 8 2013 Joe Orton - 1.95.8-11 - add fixes for CVE-2009-3560, CVE-2009-3720 - run "make check" - spec file cleanups * Wed Feb 13 2013 Fedora Release Engineering - 1.95.8-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Nov 12 2012 Joe Orton - 1.95.8-9 - rebuild * Wed Jul 18 2012 Fedora Release Engineering - 1.95.8-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jan 12 2012 Fedora Release Engineering - 1.95.8-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 1.95.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 24 2009 Fedora Release Engineering - 1.95.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering - 1.95.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Feb 19 2008 Fedora Release Engineering - 1.95.8-4 - Autorebuild for GCC 4.3 * Wed Aug 22 2007 Joe Orton 1.95.8-3 - fix Source location * Wed Aug 8 2007 Joe Orton 1.95.8-2 - fix License tag * Thu Jul 26 2007 Joe Orton 1.95.8-1 - new package