[rapidxml] Initial import (#907027)
Miro Hrončok
churchyard at fedoraproject.org
Tue Apr 23 09:30:12 UTC 2013
commit 2e38ed14769f2fb0c5889e0740c79c71a4cad99a
Author: Miro Hrončok <miro at hroncok.cz>
Date: Tue Apr 23 11:29:20 2013 +0200
Initial import (#907027)
.gitignore | 1 +
rapidxml-declarations.patch | 20 +++++++++++++
rapidxml.spec | 67 +++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 89 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..bad031a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rapidxml-1.13-with-tests.zip
diff --git a/rapidxml-declarations.patch b/rapidxml-declarations.patch
new file mode 100644
index 0000000..4acab2a
--- /dev/null
+++ b/rapidxml-declarations.patch
@@ -0,0 +1,20 @@
+diff -ru rapidxml-1.13-with-tests/rapidxml_print.hpp rapidxml-1.13-with-tests-2/rapidxml_print.hpp
+--- rapidxml-1.13-with-tests/rapidxml_print.hpp 2009-05-15 22:49:20.000000000 +0200
++++ rapidxml-1.13-with-tests-2/rapidxml_print.hpp 2013-02-02 19:51:56.233026000 +0100
+@@ -102,6 +102,16 @@
+ ///////////////////////////////////////////////////////////////////////////
+ // Internal printing operations
+
++ template<class OutIt, class Ch> inline OutIt print_children(OutIt, const xml_node<Ch> *, int, int);
++ template<class OutIt, class Ch> inline OutIt print_attributes(OutIt, const xml_node<Ch> *, int);
++ template<class OutIt, class Ch> inline OutIt print_data_node(OutIt, const xml_node<Ch> *, int, int);
++ template<class OutIt, class Ch> inline OutIt print_cdata_node(OutIt, const xml_node<Ch> *, int, int);
++ template<class OutIt, class Ch> inline OutIt print_element_node(OutIt, const xml_node<Ch> *, int, int);
++ template<class OutIt, class Ch> inline OutIt print_declaration_node(OutIt, const xml_node<Ch> *, int, int);
++ template<class OutIt, class Ch> inline OutIt print_comment_node(OutIt, const xml_node<Ch> *, int, int);
++ template<class OutIt, class Ch> inline OutIt print_doctype_node(OutIt, const xml_node<Ch> *, int, int);
++ template<class OutIt, class Ch> inline OutIt print_pi_node(OutIt, const xml_node<Ch> *, int, int);
++
+ // Print node
+ template<class OutIt, class Ch>
+ inline OutIt print_node(OutIt out, const xml_node<Ch> *node, int flags, int indent)
diff --git a/rapidxml.spec b/rapidxml.spec
new file mode 100644
index 0000000..6e9a6e5
--- /dev/null
+++ b/rapidxml.spec
@@ -0,0 +1,67 @@
+Name: rapidxml
+Version: 1.13
+Release: 2%{?dist}
+Summary: Fast XML parser
+License: Boost or MIT
+URL: http://rapidxml.sourceforge.net/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-with-tests.zip
+Patch0: %{name}-declarations.patch
+BuildArch: noarch
+BuildRequires: dos2unix
+
+%description
+RapidXml is an attempt to create the fastest XML parser possible, while
+retaining usability, portability and reasonable W3C compatibility. It is an
+in-situ parser written in modern C++, with parsing speed approaching that of
+strlen function executed on the same data.
+
+%package devel
+Summary: Fast XML parser
+Provides: %{name}-static = %{version}-%{release}
+
+%description devel
+RapidXml is an attempt to create the fastest XML parser possible, while
+retaining usability, portability and reasonable W3C compatibility. It is an
+in-situ parser written in modern C++, with parsing speed approaching that of
+strlen function executed on the same data.
+
+%prep
+%setup -qn %{name}-%{version}-with-tests
+%patch0 -p1
+
+dos2unix license.txt
+
+# Rename it to .h (but keep .hpp for tests)
+sed -i 's/.hpp/.h/g' manual.html
+for HPP in *.hpp; do
+ cp -p $HPP ${HPP%hpp}h
+ sed -i 's/.hpp/.h/g' ${HPP%hpp}h
+done
+
+%build
+cd tests
+# -jX is useless here
+make build-g++-debug
+cd -
+
+%install
+for H in *.h; do
+ install -Dpm0644 $H %{buildroot}%{_includedir}/$H
+done
+
+%check
+cd tests
+# -jX is useless here
+make run-g++-debug
+cd -
+
+%files devel
+%doc license.txt manual.html
+%{_includedir}/*
+
+%changelog
+* Sat Apr 20 2013 Miro Hrončok <mhroncok at redhat.com> - 1.13-2
+- devel subpackage now provides -static.
+
+* Sat Feb 02 2013 Miro Hrončok <mhroncok at redhat.com> - 1.13-1
+- Initial release
diff --git a/sources b/sources
index e69de29..cfa7e92 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+dd2109c138ee35e4cc774ecc0ce9633a rapidxml-1.13-with-tests.zip
More information about the scm-commits
mailing list