[java-sig-commits] [stax2-api] Initial import (#737969).

Jaromír Cápík jcapik at fedoraproject.org
Mon Sep 26 17:31:06 UTC 2011


commit dc5316cef2c848684f2fc6aa42b5ccb8c3678852
Author: Jaromir Capik <jcapik at redhat.com>
Date:   Mon Sep 26 19:30:22 2011 +0200

    Initial import (#737969).

 .gitignore          |    1 +
 sources             |    1 +
 stax2-api-3.1.1.pom |   50 ++++++++++++++++++++++++++++++++
 stax2-api.depmap    |   12 ++++++++
 stax2-api.spec      |   78 +++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 142 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b48ad38 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/stax2-api-3.1.1-sources.jar
diff --git a/sources b/sources
index e69de29..dacf081 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c8acec319425e43d32ca5d64ab7a1a38  stax2-api-3.1.1-sources.jar
diff --git a/stax2-api-3.1.1.pom b/stax2-api-3.1.1.pom
new file mode 100644
index 0000000..25cdaf4
--- /dev/null
+++ b/stax2-api-3.1.1.pom
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+
+ <!-- General information -->
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.codehaus.woodstox</groupId>
+  <artifactId>stax2-api</artifactId>
+  <packaging>jar</packaging>
+  <name>Stax2 API</name>
+  <version>3.1.1</version>
+  <description>Stax2 API is an extension to basic Stax 1.0 API that adds significant new functionality, such as full-featured bi-direction validation interface and high-performance Typed Access API.
+</description>
+
+ <!-- Contact information -->
+
+  <!-- In future, should there be separate Stax2 home page? -->
+  <url>http://woodstox.codehaus.org/StAX2</url>
+  <issueManagement>
+    <url>http://jira.codehaus.org/browse/WSTX</url>
+  </issueManagement>
+
+ <!-- Dependency information -->
+ 
+  <dependencies>
+    <!-- Stax API jar is needed; 1.0-2 seems to be the last "official"
+         version prior to JDK 6 that bundles API
+      -->
+    <dependency>
+      <groupId>javax.xml.stream</groupId>
+      <artifactId>stax-api</artifactId>
+      <version>1.0-2</version>
+    </dependency>
+  </dependencies>
+
+  <!-- Licensing -->
+  <licenses>
+    <license>
+      <name>The BSD License</name>
+      <url>http://www.opensource.org/licenses/bsd-license.php</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+
+  <organization>
+    <name>Codehaus</name>
+    <url>http://www.codehaus.org/</url>
+  </organization>
+
+</project>
diff --git a/stax2-api.depmap b/stax2-api.depmap
new file mode 100644
index 0000000..5be4e0a
--- /dev/null
+++ b/stax2-api.depmap
@@ -0,0 +1,12 @@
+<dependencies>
+    <dependency>
+      <maven>
+        <groupId>javax.xml.stream</groupId>
+        <artifactId>stax-api</artifactId>
+      </maven>
+      <jpp>
+        <groupId>JPP</groupId>
+        <artifactId>bea-stax-api</artifactId>
+      </jpp>
+    </dependency>
+</dependencies>
diff --git a/stax2-api.spec b/stax2-api.spec
new file mode 100644
index 0000000..a1fcc71
--- /dev/null
+++ b/stax2-api.spec
@@ -0,0 +1,78 @@
+Name:             stax2-api
+Version:          3.1.1
+Release:          1%{?dist}
+Summary:          Experimental API extending basic StAX implementation
+License:          BSD
+Group:            Development/Libraries
+
+URL:              http://docs.codehaus.org/display/WSTX/StAX2
+
+Source0:          http://repository.codehaus.org/org/codehaus/woodstox/%{name}/%{version}/%{name}-%{version}-sources.jar
+Source1:          http://repository.codehaus.org/org/codehaus/woodstox/%{name}/%{version}/%{name}-%{version}.pom
+Source2:          %{name}.depmap
+
+BuildArch:        noarch
+
+BuildRequires:    maven-surefire-provider-junit
+BuildRequires:    bea-stax-api
+BuildRequires:    java-devel
+BuildRequires:    maven
+BuildRequires:    jpackage-utils
+
+Requires:         bea-stax-api
+Requires:         jpackage-utils
+Requires:         java
+
+%description
+StAX2 is an experimental API that is intended to extend
+basic StAX specifications in a way that allows implementations
+to experiment with features before they end up in the actual
+StAX specification (if they do). As such, it is intended
+to be freely implementable by all StAX implementations same way
+as StAX, but without going through a formal JCP process.
+
+
+%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 -c %{name}
+# fixing incomplete source directory structure
+mkdir -p src/main/java
+mv -f org src/main/java/
+
+cp %{SOURCE1} pom.xml
+
+%build
+# using bea-stax-api (no pom) instead of stax-api -> depmap needed
+mvn-rpmbuild -Dmaven.local.depmap.file="%{SOURCE2}" install javadoc:aggregate
+
+%install
+# jars
+install -Dpm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# pom
+install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+# javadoc
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+%files
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc %{_javadocdir}/%{name}
+
+%changelog
+* Tue Sep 13 2011 Jaromir Capik <jcapik at redhat.com> - 3.1.1-1
+- Initial version


More information about the java-sig-commits mailing list