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