Blame SPECS/xerces-c.spec

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