|
|
95d693 |
Summary: Validating XML Parser
|
|
|
95d693 |
Name: xerces-c
|
|
|
95d693 |
Version: 3.1.1
|
|
|
d6e115 |
Release: 10%{?dist}
|
|
|
95d693 |
License: ASL 2.0
|
|
|
95d693 |
Group: System Environment/Libraries
|
|
|
95d693 |
URL: http://xml.apache.org/xerces-c/
|
|
|
95d693 |
Source0: http://archive.apache.org/dist/xerces/c/3/sources/xerces-c-%{version}.tar.gz
|
|
|
95d693 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
95d693 |
Patch1: XMLReader.cpp.patch
|
|
|
95d693 |
Patch2: xerces-c-CVE-2016-0729.patch
|
|
|
95d693 |
Patch3: xerces-c-CVE-2016-4463.patch
|
|
|
d6e115 |
Patch4: xerces-c-3.0.1-CVE-2018-1311.patch
|
|
|
95d693 |
|
|
|
95d693 |
BuildRequires: dos2unix
|
|
|
95d693 |
|
|
|
95d693 |
%description
|
|
|
95d693 |
Xerces-C is a validating XML parser written in a portable
|
|
|
95d693 |
subset of C++. Xerces-C makes it easy to give your application the
|
|
|
95d693 |
ability to read and write XML data. A shared library is provided for
|
|
|
95d693 |
parsing, generating, manipulating, and validating XML
|
|
|
95d693 |
documents. Xerces-C is faithful to the XML 1.0 recommendation and
|
|
|
95d693 |
associated standards: XML 1.0 (Third Edition), XML 1.1 (First
|
|
|
95d693 |
Edition), DOM Level 1, 2, 3 Core, DOM Level 2.0 Traversal and Range,
|
|
|
95d693 |
DOM Level 3.0 Load and Save, SAX 1.0 and SAX 2.0, Namespaces in XML,
|
|
|
95d693 |
Namespaces in XML 1.1, XML Schema, XML Inclusions).
|
|
|
95d693 |
|
|
|
95d693 |
|
|
|
95d693 |
%package devel
|
|
|
95d693 |
Summary: Header files, libraries and development documentation for %{name}
|
|
|
95d693 |
Group: Development/Libraries
|
|
|
95d693 |
Requires: %{name} = %{version}-%{release}
|
|
|
95d693 |
|
|
|
95d693 |
%description devel
|
|
|
95d693 |
This package contains the header files, static libraries and development
|
|
|
95d693 |
documentation for %{name}. If you like to develop programs using %{name},
|
|
|
95d693 |
you will need to install %{name}-devel.
|
|
|
95d693 |
|
|
|
95d693 |
%package doc
|
|
|
95d693 |
Group: Documentation
|
|
|
95d693 |
Summary: Documentation for Xerces-C++ validating XML parser
|
|
|
95d693 |
BuildArch: noarch
|
|
|
95d693 |
|
|
|
95d693 |
%description doc
|
|
|
95d693 |
Documentation for Xerces-C++.
|
|
|
95d693 |
|
|
|
95d693 |
Xerces-C++ is a validating XML parser written in a portable subset of C++.
|
|
|
95d693 |
Xerces-C++ makes it easy to give your application the ability to read and
|
|
|
95d693 |
write XML data. A shared library is provided for parsing, generating,
|
|
|
95d693 |
manipulating, and validating XML documents.
|
|
|
95d693 |
|
|
|
95d693 |
%prep
|
|
|
95d693 |
%setup -q
|
|
|
95d693 |
%patch1 -p1
|
|
|
95d693 |
%patch2 -p1
|
|
|
95d693 |
%patch3 -p1
|
|
|
d6e115 |
%patch4 -p1 -b .cve1311
|
|
|
d6e115 |
|
|
|
95d693 |
# Copy samples before build to avoid including built binaries in -doc package
|
|
|
95d693 |
mkdir -p _docs
|
|
|
95d693 |
cp -a samples/ _docs/
|
|
|
95d693 |
|
|
|
95d693 |
%build
|
|
|
95d693 |
# --disable-sse2 makes sure explicit -msse2 isn't passed to gcc so
|
|
|
95d693 |
# the binaries would be compatible with non-SSE2 i686 hardware.
|
|
|
95d693 |
# This only affects i686, as on x86_64 the compiler uses SSE2 by default.
|
|
|
95d693 |
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
|
95d693 |
export CXXFLAGS="$CFLAGS"
|
|
|
95d693 |
%configure --disable-static \
|
|
|
95d693 |
--disable-pretty-make \
|
|
|
95d693 |
--disable-sse2
|
|
|
95d693 |
make %{?_smp_mflags}
|
|
|
95d693 |
|
|
|
95d693 |
%install
|
|
|
95d693 |
rm -rf $RPM_BUILD_ROOT
|
|
|
95d693 |
make install DESTDIR="$RPM_BUILD_ROOT"
|
|
|
95d693 |
# Correct errors in encoding
|
|
|
95d693 |
iconv -f iso8859-1 -t utf-8 CREDITS > CREDITS.tmp && mv -f CREDITS.tmp CREDITS
|
|
|
95d693 |
# Correct errors in line endings
|
|
|
95d693 |
pushd doc; dos2unix -k *.xml; popd
|
|
|
95d693 |
# Remove unwanted binaries
|
|
|
95d693 |
rm -rf $RPM_BUILD_ROOT%{_bindir}
|
|
|
95d693 |
# Remove .la files
|
|
|
95d693 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
95d693 |
|
|
|
95d693 |
%post -p /sbin/ldconfig
|
|
|
95d693 |
%postun -p /sbin/ldconfig
|
|
|
95d693 |
|
|
|
95d693 |
%clean
|
|
|
95d693 |
rm -rf $RPM_BUILD_ROOT
|
|
|
95d693 |
|
|
|
95d693 |
%files
|
|
|
95d693 |
%defattr(-,root,root,-)
|
|
|
95d693 |
%doc LICENSE
|
|
|
95d693 |
%{_libdir}/libxerces-c-3.*.so
|
|
|
95d693 |
|
|
|
95d693 |
%files devel
|
|
|
95d693 |
%defattr(-,root,root,-)
|
|
|
95d693 |
%{_libdir}/libxerces-c.so
|
|
|
95d693 |
%{_libdir}/pkgconfig/xerces-c.pc
|
|
|
95d693 |
%{_includedir}/xercesc/
|
|
|
95d693 |
|
|
|
95d693 |
%files doc
|
|
|
95d693 |
%defattr(-,root,root,-)
|
|
|
95d693 |
%doc README LICENSE NOTICE CREDITS doc _docs/*
|
|
|
95d693 |
|
|
|
95d693 |
%changelog
|
|
|
d6e115 |
* Thu Feb 27 2020 Joe Orton <jorton@redhat.com> - 3.1.1-10
|
|
|
d6e115 |
- add security fix for CVE-2018-1311
|
|
|
d6e115 |
|
|
|
95d693 |
* Wed Sep 05 2018 Robbie Harwood <rharwood@redhat.com> - 3.1.1-9
|
|
|
95d693 |
- Fix CVE-2016-4463
|
|
|
95d693 |
- Resolves: #1534481
|
|
|
95d693 |
|
|
|
95d693 |
* Thu Mar 03 2016 Avesh Agarwal <avagarwa@redhat.com> - 3.1.1-8
|
|
|
95d693 |
Resolves: CVE-2016-0729
|
|
|
95d693 |
|
|
|
95d693 |
* Mon Jun 22 2015 Avesh Agarwal <avagarwa@redhat.com> - 3.1.1-7
|
|
|
95d693 |
Resolves: rhbz#1217105 CVE-2015-0252
|
|
|
95d693 |
|
|
|
95d693 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.1.1-6
|
|
|
95d693 |
- Mass rebuild 2014-01-24
|
|
|
95d693 |
|
|
|
95d693 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.1.1-5
|
|
|
95d693 |
- Mass rebuild 2013-12-27
|
|
|
95d693 |
|
|
|
95d693 |
* Tue Sep 10 2013 Avesh Agarwal <avagarwa@redhat.com> - 3.1.1-4
|
|
|
95d693 |
- Rebuilding for rhel7
|
|
|
95d693 |
|
|
|
95d693 |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-3
|
|
|
95d693 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
95d693 |
|
|
|
95d693 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-2
|
|
|
95d693 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
95d693 |
|
|
|
95d693 |
* Wed Mar 09 2011 Kalev Lember <kalev@smartlink.ee> - 3.1.1-1
|
|
|
95d693 |
- Update to 3.1.1
|
|
|
95d693 |
- Dropped CVE-2009-1885 patch.
|
|
|
95d693 |
- Use dos2unix -k instead of unrecognized option -U
|
|
|
95d693 |
- Removed the multilib conflict workaround as Xerces_autoconf_config.hpp
|
|
|
95d693 |
no longer contains the conflicting XERCES_SIZEOF_LONG define.
|
|
|
95d693 |
|
|
|
95d693 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-21
|
|
|
95d693 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
95d693 |
|
|
|
95d693 |
* Fri Jul 9 2010 Jonathan Robie <jrobie@localhost.localdomain> - 3.0.1-20
|
|
|
95d693 |
- Added no-strict-aliasing flag to stop rpmdiff from griping
|
|
|
95d693 |
|
|
|
95d693 |
* Wed May 26 2010 Kalev Lember <kalev@smartlink.ee> 3.0.1-19
|
|
|
95d693 |
- Fix multilib conflict caused by Xerces_autoconf_config.hpp (#595923)
|
|
|
95d693 |
|
|
|
95d693 |
* Fri May 14 2010 Kalev Lember <kalev@smartlink.ee> 3.0.1-18
|
|
|
95d693 |
- Build -doc subpackage as noarch
|
|
|
95d693 |
|
|
|
95d693 |
* Fri May 14 2010 Kalev Lember <kalev@smartlink.ee> 3.0.1-17
|
|
|
95d693 |
- Disable explicit -msse2 to make sure the binaries run on non-SSE2 i686
|
|
|
95d693 |
|
|
|
95d693 |
* Sun Feb 07 2010 Kalev Lember <kalev@smartlink.ee> 3.0.1-16
|
|
|
95d693 |
- Reintroduce a patch for CVE-2009-1885
|
|
|
95d693 |
- Don't build static library
|
|
|
95d693 |
- Use parallel make
|
|
|
95d693 |
- Spec file clean up
|
|
|
95d693 |
|
|
|
95d693 |
* Thu Feb 4 2010 Jonathan Robie <jonathan.robie@redhat.com> 3.0.1-15
|
|
|
95d693 |
- Corrected .spec file
|
|
|
95d693 |
|
|
|
95d693 |
* Wed Feb 3 2010 Jonathan Robie <jonathan.robie@redhat.com> 3.0.1-1
|
|
|
95d693 |
- Move to Xerces 3.0.1.
|
|
|
95d693 |
|
|
|
95d693 |
* Thu Aug 6 2009 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-5
|
|
|
95d693 |
- Fix CVE-2009-1885
|
|
|
95d693 |
|
|
|
95d693 |
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-4
|
|
|
95d693 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
95d693 |
|
|
|
95d693 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-3
|
|
|
95d693 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
95d693 |
|
|
|
95d693 |
* Mon Jun 30 2008 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-2
|
|
|
95d693 |
- Spec cleanups ( https://bugzilla.redhat.com/show_bug.cgi?id=435132 )
|
|
|
95d693 |
|
|
|
95d693 |
* Sun Feb 10 2008 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-1
|
|
|
95d693 |
- Ver. 2.8.0
|
|
|
95d693 |
|
|
|
95d693 |
* Sat Nov 25 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-6
|
|
|
95d693 |
- typo fix
|
|
|
95d693 |
|
|
|
95d693 |
* Sat Nov 25 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-5
|
|
|
95d693 |
- fixed some rpmlint warnings
|
|
|
95d693 |
|
|
|
95d693 |
* Fri Nov 24 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-4
|
|
|
95d693 |
- Added samples to docs-package
|
|
|
95d693 |
|
|
|
95d693 |
* Sat Nov 18 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-3
|
|
|
95d693 |
- improvements suggested by Aurelien Bompard
|
|
|
95d693 |
|
|
|
95d693 |
* Sat Oct 14 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-2
|
|
|
95d693 |
- Disabled package 'samples'
|
|
|
95d693 |
|
|
|
95d693 |
* Fri Oct 13 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-1
|
|
|
95d693 |
- initial build for FE
|
|
|
95d693 |
|
|
|
95d693 |
* Fri Jan 06 2006 Dag Wieers <dag@wieers.com> - 2.7.0-1 - 3891/dag
|
|
|
95d693 |
- Cleaned SPEC file.
|
|
|
95d693 |
|
|
|
95d693 |
* Tue Jan 03 2006 Dries Verachtert <dries@ulyssis.org> - 2.7.0-1
|
|
|
95d693 |
- Updated to release 2.7.0.
|
|
|
95d693 |
|
|
|
95d693 |
* Thu Sep 22 2005 C.Lee Taylor <leet@leenx.co.za> 2.6.1-1
|
|
|
95d693 |
- Update to 2.6.1
|
|
|
95d693 |
- Build for FC4 32/64bit
|
|
|
95d693 |
|
|
|
95d693 |
* Sat Aug 20 2005 Che
|
|
|
95d693 |
- initial rpm release
|