[decentxml] Initial version of the package

Stanislav Ochotnicky sochotni at fedoraproject.org
Fri Feb 25 15:29:58 UTC 2011


commit 3154fd307d030f4b60eb03074e50f2e115d03dbc
Author: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date:   Fri Feb 25 16:09:07 2011 +0100

    Initial version of the package

 .gitignore     |    2 +
 decentxml.spec |   94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    2 +
 3 files changed, 98 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b06b3c5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/decentxml-1.3.tar.xz
+/xmlts20031210.zip
diff --git a/decentxml.spec b/decentxml.spec
new file mode 100644
index 0000000..b944f45
--- /dev/null
+++ b/decentxml.spec
@@ -0,0 +1,94 @@
+Name:             decentxml
+Version:          1.3
+Release:          1%{?dist}
+Summary:          XML parser optimized for round-tripping and code reuse
+License:          BSD
+Group:            Development/Libraries
+URL:              http://code.google.com/p/%{name}
+# request for tarball: https://code.google.com/p/decentxml/issues/detail?id=1
+# svn export http://decentxml.googlecode.com/svn/tags/r1.3 decentxml-1.3
+# tar caf decentxml-1.3.tar.xz decentxml-1.3
+Source0:          %{name}-%{version}.tar.xz
+# for running w3c conformance test suite
+Source1:          http://www.w3.org/XML/Test/xmlts20031210.zip
+BuildArch:        noarch
+
+BuildRequires:    java-devel
+BuildRequires:    jpackage-utils
+BuildRequires:    maven
+BuildRequires:    maven-surefire-provider-junit4
+BuildRequires:    apache-commons-parent
+
+Requires:         java
+Requires:         jpackage-utils
+Requires(post):   jpackage-utils
+Requires(postun): jpackage-utils
+
+%description
+XML parser optimized for round-tripping and code reuse with main
+features being:
+ * Allows 100% round-tripping, even for weird whitespace between
+   attributes in the start tag or in the end tag
+ * Suitable for building editors and filters which want/need to
+   preserve the original file layout as much as possible
+ * Error messages have line and column information
+ * Easy to reuse individual components
+ * XML 1.1 compatible
+
+%package javadoc
+Summary:          API documentation for %{name}
+Group:            Documentation
+Requires:         jpackage-utils
+
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q
+# we are looking for xml conformance data one lever above so unzip
+# here and symlink there
+unzip %{SOURCE1}
+ln -sf %{name}-%{version}/xmlconf ../xmlconf
+
+sed -i 's:\r::g' TODO CHANGES
+
+%build
+mvn-rpmbuild install javadoc:javadoc
+
+%install
+# jars
+install -d -m 755 %{buildroot}%{_javadir}
+install -p -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# pom
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_to_maven_depmap de.pdark %{name} %{version} JPP %{name}
+
+# javadoc
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE TODO CHANGES
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%defattr(-,root,root,-)
+%doc LICENSE
+%doc %{_javadocdir}/%{name}
+
+%changelog
+* Fri Feb 25 2011 Stanislav Ochotnicky <sochotnicky at redhat.com> - 1.3-1
+- Initial version of the package
+
diff --git a/sources b/sources
index e69de29..d287e03 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+3e8f717d8b717fa7c66dda4238853e53  decentxml-1.3.tar.xz
+b09f340780c6ff995bf6ff81ad341585  xmlts20031210.zip


More information about the scm-commits mailing list