[XmlSchema] Initial commit

Andy Grimm arg at fedoraproject.org
Mon Mar 12 12:35:49 UTC 2012


commit 726dc37609f8a23938d803e6da995245cd179b5c
Author: Andy Grimm <agrimm at gmail.com>
Date:   Mon Mar 12 08:33:06 2012 -0400

    Initial commit

 .gitignore                     |    1 +
 XmlSchema-no-java5.patch       |   16 ++++++++
 XmlSchema-no-site-plugin.patch |   23 ++++++++++++
 XmlSchema.spec                 |   77 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 5 files changed, 118 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c604fb2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/XmlSchema-1.4.7.tar.xz
diff --git a/XmlSchema-no-java5.patch b/XmlSchema-no-java5.patch
new file mode 100644
index 0000000..b486c25
--- /dev/null
+++ b/XmlSchema-no-java5.patch
@@ -0,0 +1,16 @@
+diff -ur XmlSchema-1.4.7/pom.xml XmlSchema-1.4.7.new/pom.xml
+--- XmlSchema-1.4.7/pom.xml	2010-09-22 17:27:39.000000000 -0400
++++ XmlSchema-1.4.7.new/pom.xml	2012-02-17 14:04:20.091839365 -0500
+@@ -420,12 +420,6 @@
+       <version>1.1</version>
+       <scope>test</scope>
+     </dependency>
+-    <dependency>
+-      <groupId>org.apache.ws.commons</groupId>
+-      <artifactId>ws-commons-java5</artifactId>
+-      <version>1.0.1</version>
+-      <optional>true</optional>
+-    </dependency>
+   </dependencies>
+   <reporting>
+     <plugins>
diff --git a/XmlSchema-no-site-plugin.patch b/XmlSchema-no-site-plugin.patch
new file mode 100644
index 0000000..a07d43e
--- /dev/null
+++ b/XmlSchema-no-site-plugin.patch
@@ -0,0 +1,23 @@
+diff -ur XmlSchema-1.4.7/pom.xml XmlSchema-1.4.7.new/pom.xml
+--- XmlSchema-1.4.7/pom.xml	2012-02-17 14:20:59.250747251 -0500
++++ XmlSchema-1.4.7.new/pom.xml	2012-02-17 14:22:15.269740093 -0500
+@@ -191,18 +191,6 @@
+           </configuration>
+         </plugin>
+         <plugin>
+-          <artifactId>maven-site-plugin</artifactId>
+-           <executions>
+-             <execution>
+-               <id>site</id>
+-               <phase>package</phase>
+-               <goals>
+-                 <goal>site</goal>
+-               </goals>
+-             </execution>
+-           </executions>
+-         </plugin>
+-        <plugin>
+           <artifactId>maven-source-plugin</artifactId>
+           <executions>
+             <execution>
+Only in XmlSchema-1.4.7: target
diff --git a/XmlSchema.spec b/XmlSchema.spec
new file mode 100644
index 0000000..f77d1c7
--- /dev/null
+++ b/XmlSchema.spec
@@ -0,0 +1,77 @@
+Name:           XmlSchema
+Version:        1.4.7
+Release:        1%{?dist}
+Summary:        Lightweight schema object model
+Group:          Development/Libraries  
+License:        ASL 2.0
+URL:            http://ws.apache.org/commons/XmlSchema
+# svn export http://svn.apache.org/repos/asf/webservices/commons/tags/XmlSchema/XmlSchema-1.4.7
+# tar caf XmlSchema-1.4.7.tar.xz XmlSchema-1.4.7
+Source0:        %{name}-%{version}.tar.xz
+# ws-commons-java5 is for ancient Java environments
+Patch0:         %{name}-no-java5.patch
+# maven-site-plugin is broken by the lack of cvsjava in maven-scm. 
+# cvsjava was removed when netbeans was orphaned.
+Patch1:         %{name}-no-site-plugin.patch
+BuildArch:      noarch
+
+BuildRequires: java-devel
+BuildRequires: jpackage-utils    
+BuildRequires: maven
+BuildRequires: maven-remote-resources-plugin
+BuildRequires: apache-resource-bundles
+BuildRequires: bcel
+BuildRequires: xalan-j2
+BuildRequires: xmlunit
+BuildRequires: dos2unix
+Requires:      java
+Requires:      jpackage-utils
+Requires:      bcel
+Requires:      xalan-j2
+Requires:      xmlunit
+
+%description
+Commons XMLSchema is a lightweight schema object model that can be 
+used to manipulate or generate a schema. 
+
+%package javadoc
+Summary:      API documentation for %{name}
+Group:        Documentation
+Requires:     jpackage-utils
+
+%description javadoc
+API documentation for %{name}.
+
+%prep
+%setup -q -n %{name}-%{version}
+%patch0 -p1
+%patch1 -p1
+
+%build
+mvn-rpmbuild install javadoc:javadoc
+dos2unix README.txt RELEASE-NOTE.txt
+
+%install
+install -d -m 755 %{buildroot}%{_javadir}
+install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+cp pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+install -d -m 755 %{buildroot}%{_javadocdir}
+cp -rp target/site/apidocs %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%doc README.txt RELEASE-NOTE.txt
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+
+%changelog
+* Fri Feb 17 2012 Andy Grimm <agrimm at gmail.com> - 1.4.7-1
+- Initial package
diff --git a/sources b/sources
index e69de29..9481110 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+aa0df73ad968f14100fd241231e19143  XmlSchema-1.4.7.tar.xz


More information about the scm-commits mailing list