diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..04dce20 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +xmltooling-1.3.3.tar.gz +/xmltooling-1.4.2.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index d962a69..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -xmltooling fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1676235 diff --git a/sources b/sources new file mode 100644 index 0000000..3f199b4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +98ed7fb45c63cd6d03446f8c47dc645b xmltooling-1.4.2.tar.gz diff --git a/xmltooling-python-cxxtest.patch b/xmltooling-python-cxxtest.patch new file mode 100644 index 0000000..2439cc6 --- /dev/null +++ b/xmltooling-python-cxxtest.patch @@ -0,0 +1,18 @@ +diff -Naur xmltooling-1.4.2-orig/configure.ac xmltooling-1.4.2/configure.ac +--- xmltooling-1.4.2-orig/configure.ac 2011-06-28 02:38:30.000000000 +0200 ++++ xmltooling-1.4.2/configure.ac 2011-09-12 07:52:39.050758345 +0200 +@@ -388,12 +388,12 @@ + [AC_DEFINE([HAVE_ITERATOR_TRAITS],[1],[Define to 1 if you have an STL implementation that supports std::iterator_traits.])],[]) + + # Check for unit test support +-CXXTEST="/usr/bin/cxxtestgen.pl" ++CXXTEST="/usr/bin/cxxtestgen" + CXXTESTFLAGS="" + AC_ARG_WITH(cxxtest, + AS_HELP_STRING([--with-cxxtest=PATH], [where cxxtest is installed]), + [if test x_$with_cxxtest != x_/usr; then +- CXXTEST="${with_cxxtest}/cxxtestgen.pl" ++ CXXTEST="${with_cxxtest}/cxxtestgen" + CXXTESTFLAGS="-I${with_cxxtest}" + fi]) + if ! test -f "${CXXTEST}"; then diff --git a/xmltooling.spec b/xmltooling.spec new file mode 100644 index 0000000..4280065 --- /dev/null +++ b/xmltooling.spec @@ -0,0 +1,170 @@ +Name: xmltooling +Version: 1.4.2 +Release: 3%{?dist} +Summary: XML signing and encrytion library + +Group: System Environment/Libraries +License: ASL 2.0 +URL: https://wiki.shibboleth.net/confluence/display/OpenSAML/XMLTooling-C +Source0: http://www.shibboleth.net/downloads/c++-opensaml/2.4.3/xmltooling-%{version}.tar.gz +Patch0: %{name}-python-cxxtest.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: xml-security-c-devel +#cxxtest is not available in EPEL4. +# so skip it. +%if "%{?rhel}" != "4" +BuildRequires: cxxtest +%endif +BuildRequires: log4cpp-devel +BuildRequires: xerces-c-devel +BuildRequires: doxygen +BuildRequires: graphviz + +%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6 +BuildRequires: libcurl-devel +%else +BuildRequires: curl-devel +%endif + +# To bring in /usr/share/xml +Requires: xml-common + +# Needed since we are doing and autoreconf +# below. +BuildRequires: automake +BuildRequires: autoconf +BuildRequires: libtool + + +%description +The XMLTooling library contains generic XML parsing and processing +classes based on the Xerces-C DOM. It adds more powerful facilities +for declaring element- and type-specific API and implementation +classes to add value around the DOM, as well as signing and encryption +support. + +%package doc +Group: Documentation +Summary: XML signing and encrytion library documentation +%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6 +BuildArch: noarch +%endif + +%description doc +The XMLTooling library contains generic XML parsing and processing +classes based on the Xerces-C DOM. It adds more powerful facilities +for declaring element- and type-specific API and implementation +classes to add value around the DOM, as well as signing and encryption +support. + +This %{name}-doc package contains documentation. + +%package devel +Group: System Environment/Libraries +Summary: XML signing and encrytion library development files +Requires: %{name} = %{version}-%{release} + +%description devel +The XMLTooling library contains generic XML parsing and processing +classes based on the Xerces-C DOM. It adds more powerful facilities +for declaring element- and type-specific API and implementation +classes to add value around the DOM, as well as signing and encryption +support. + +This %{name}-devel package contains header files. + +%prep +%setup -q +%patch0 -p1 + +%build +#aclocal +#autoconf +#autoheader +#automake --add-missing --copy +#libtoolize --copy --force +autoreconf -fiv + +%if "%{?rhel}" == "4" +%configure --without-cxxtest +%else +%configure +%endif +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +# Don't need the unit test executer. +rm -f $RPM_BUILD_ROOT/%{_bindir}/xmltoolingtest + +%check +make check + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%{_libdir}/*.so.* +%{_datadir}/xml/xmltooling +%doc doc/README.txt doc/LICENSE.txt + +%files doc +%defattr(-,root,root,-) +%doc doc/api/html + +%files devel +%defattr(-,root,root,-) +%{_includedir}/%{name} +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%changelog +* Tue Feb 28 2012 Fedora Release Engineering - 1.4.2-3 +- Rebuilt for c++ ABI breakage + +* Sat Jan 14 2012 Fedora Release Engineering - 1.4.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Sep 12 2011 Guido Grazioli - 1.4.2-1 +- Update to opensaml 2.4.3, xmltooling 1.4.2 (CVE-2011-1411) +- Fix project url and download url + +* Wed Mar 16 2011 Kalev Lember - 1.3.3-4 +- Rebuilt with xml-security-c 1.6 + +* Thu Mar 10 2011 Kalev Lember - 1.3.3-3 +- Rebuilt with xerces-c 3.1 + +* Mon Feb 07 2011 Fedora Release Engineering - 1.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Jun 20 2010 Steve Traylen - 1.3.3-1 +- New upstream 1.3.3. + +* Sun Feb 07 2010 Steve Traylen - 1.3.2-2 +- Rebuild againt xerces 3 + +* Wed Dec 2 2009 Steve Traylen 1.3.2-1 +- New upstream 1.3.2 + +* Thu Nov 19 2009 Steve Traylen 1.3.1-2 +- New upstream +- Addition of graphviz to build requires. +- Correct date in this changelog. + +* Mon Oct 19 2009 Steve Traylen 1.2.2-3 +- Disable cxxtests for EPEL4 only. + +* Sat Oct 17 2009 Steve Traylen 1.2.2-2 +- Change Source URL to be permanent rather than contain "latest" +- Require xml-common to bring in /usr/share/xml + +* Mon Oct 5 2009 Steve Traylen 1.2.2-1 +- First Build +