[ws-xmlschema] Initial import (#833353).

Patryk Obara dreamertan at fedoraproject.org
Fri Jul 6 14:16:14 UTC 2012


commit aeeb06509f26c2840c8171140da8e63171b827ec
Author: Patryk Obara <pobara at redhat.com>
Date:   Fri Jul 6 16:16:07 2012 +0200

    Initial import (#833353).

 .gitignore                                   |    1 +
 sources                                      |    1 +
 ws-xmlschema.spec                            |  100 ++++++++++++++++++++++++++
 xmlschema-2.0.2-no-w3c-testcase-module.patch |   11 +++
 4 files changed, 113 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..11fedee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ws-xmlschema-2.0.2.tar.xz
diff --git a/sources b/sources
index e69de29..9e19b0b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a61d1762cde8f36c1b8493bd04c0f8a8  ws-xmlschema-2.0.2.tar.xz
diff --git a/ws-xmlschema.spec b/ws-xmlschema.spec
new file mode 100644
index 0000000..2ee0a66
--- /dev/null
+++ b/ws-xmlschema.spec
@@ -0,0 +1,100 @@
+# vim: set ts=4 sw=4 sts=4 et:
+Name:           ws-xmlschema
+Version:        2.0.2
+Release:        3%{?dist}
+Summary:        Apache XMLSchema
+Group:          Development/Libraries
+License:        ASL 2.0
+URL:            http://ws.apache.org/commons/xmlschema20/
+
+# wget -c http://apache.osuosl.org/ws/xmlschema/2.0.2/xmlschema-2.0.2-source-release.zip
+# unzip xmlschema-2.0.2-source-release.zip
+# rm -r xmlschema-2.0.2/w3c-testcases
+# tar cafJ ws-xmlschema-2.0.2.tar.xz xmlschema-2.0.2
+Source0:        %{name}-%{version}.tar.xz
+
+Patch0:         xmlschema-2.0.2-no-w3c-testcase-module.patch
+
+BuildArch:      noarch
+
+BuildRequires:  jpackage-utils
+BuildRequires:  java-devel
+BuildRequires:  apache-resource-bundles
+BuildRequires:  maven
+BuildRequires:  maven-assembly-plugin
+BuildRequires:  maven-compiler-plugin
+BuildRequires:  maven-install-plugin
+BuildRequires:  maven-jar-plugin
+BuildRequires:  maven-javadoc-plugin
+BuildRequires:  maven-remote-resources-plugin
+BuildRequires:  maven-shade-plugin
+BuildRequires:  maven-surefire-plugin
+BuildRequires:  xmlunit
+
+Requires:       jpackage-utils
+Requires:       java
+
+%description
+Apache XMLSchema is a light weight schema object model that can be
+used to manipulate or generate XML schema. It has very few external
+dependencies and can be easily integrated into an existing project.
+
+
+%package javadoc
+Summary:        Javadocs for %{name}
+Group:          Documentation
+Requires:       jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n xmlschema-%{version}
+%patch0 -p1
+
+%build
+# fastinstall profile avoids some build dependencies
+# tests require unavailable dependencies
+mvn-rpmbuild \
+    -Pfastinstall \
+    -Dmaven.test.skip=true \
+    -Dproject.build.sourceEncoding=UTF-8 \
+    package javadoc:aggregate
+
+%install
+
+install -d -m 755 %{buildroot}%{_javadir}
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+
+install -pm 644 xmlschema-core/target/xmlschema-core-%{version}.jar %{buildroot}%{_javadir}/xmlschema-core.jar
+install -pm 644 xmlschema-core/pom.xml %{buildroot}%{_mavenpomdir}/JPP-xmlschema-core.pom
+%add_maven_depmap JPP-xmlschema-core.pom xmlschema-core.jar
+
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom
+
+# javadoc
+cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%doc LICENSE NOTICE README.txt RELEASE-NOTE.txt
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%{_javadir}/*
+
+%files javadoc
+%doc LICENSE NOTICE
+%{_javadocdir}/%{name}
+
+%changelog
+* Thu Jul 5 2012 Patryk Obara <pobara at redhat.com> 2.0.2-3
+- Removed link, simplified install phase
+
+* Thu Jun 28 2012 Patryk Obara <pobara at redhat.com> 2.0.2-2
+- Repackaging of sources to remove test files with bad licensing
+- Fix jar file name and location
+
+* Mon Jun 18 2012 Patryk Obara <pobara at redhat.com> 2.0.2-1
+- Initial packaging
+
diff --git a/xmlschema-2.0.2-no-w3c-testcase-module.patch b/xmlschema-2.0.2-no-w3c-testcase-module.patch
new file mode 100644
index 0000000..a081120
--- /dev/null
+++ b/xmlschema-2.0.2-no-w3c-testcase-module.patch
@@ -0,0 +1,11 @@
+diff -Naur -x '*java' xmlschema-2.0.2/pom.xml xmlschema-2.0.2-work/pom.xml
+--- xmlschema-2.0.2/pom.xml	2012-04-07 14:45:52.000000000 +0200
++++ xmlschema-2.0.2-work/pom.xml	2012-06-28 15:01:49.580158584 +0200
+@@ -83,7 +83,6 @@
+     <modules>
+         <module>xmlschema-core</module>
+         <module>xmlschema-bundle-test</module>
+-        <module>w3c-testcases</module>
+     </modules>
+     <build>
+         <defaultGoal>install</defaultGoal>


More information about the scm-commits mailing list