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