[stax-ex] First import after review (#801695)

Juan Hernandez jhernand at fedoraproject.org
Fri Mar 9 15:54:01 UTC 2012


commit 9f4ce040a77187ff3f99674352939adc17e544c6
Author: Juan Hernandez <juan.hernandez at redhat.com>
Date:   Fri Mar 9 16:53:30 2012 +0100

    First import after review (#801695)

 .gitignore        |    1 +
 sources           |    1 +
 stax-ex-pom.patch |   29 +++++++++++++++
 stax-ex.spec      |  105 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 136 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..941c332 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/stax-ex-1.7.tar.gz
diff --git a/sources b/sources
index e69de29..a62471b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+eadf0c40de992283c99e8b20789d0de3  stax-ex-1.7.tar.gz
diff --git a/stax-ex-pom.patch b/stax-ex-pom.patch
new file mode 100644
index 0000000..74b8661
--- /dev/null
+++ b/stax-ex-pom.patch
@@ -0,0 +1,29 @@
+diff --git a/pom.xml b/pom.xml
+index 0b19a91..f94f916 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -41,12 +41,6 @@
+ -->
+ 
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+-    <parent>
+-        <groupId>net.java</groupId>
+-        <artifactId>jvnet-parent</artifactId>
+-        <version>1</version>
+-    </parent>
+-
+     <modelVersion>4.0.0</modelVersion>
+     <groupId>org.jvnet.staxex</groupId>
+     <artifactId>stax-ex</artifactId>
+@@ -89,11 +83,6 @@
+             <version>1.0-2</version>
+         </dependency>
+         <dependency>
+-            <groupId>javax.activation</groupId>
+-            <artifactId>activation</artifactId>
+-            <version>1.1</version>
+-        </dependency>
+-        <dependency>
+             <groupId>junit</groupId>
+             <artifactId>junit</artifactId>
+             <version>3.8</version>
diff --git a/stax-ex.spec b/stax-ex.spec
new file mode 100644
index 0000000..40a725c
--- /dev/null
+++ b/stax-ex.spec
@@ -0,0 +1,105 @@
+Name: stax-ex
+Version: 1.7
+Release: 1%{?dist}
+Summary: StAX API extensions
+Group: Development/Libraries
+License: CDDL or GPLv2
+Url: https://stax-ex.dev.java.net
+
+# svn export https://svn.java.net/svn/stax-ex~svn/tags/stax-ex-1.7 stax-ex-1.7
+# find stax-ex-1.7/ -name '*.jar' -delete
+# tar czf stax-ex-1.7.tar.gz stax-ex-1.7
+Source0: %{name}-%{version}.tar.gz
+
+Patch0: %{name}-pom.patch
+
+BuildRequires: bea-stax
+BuildRequires: maven
+BuildRequires: java-devel
+BuildRequires: junit
+BuildRequires: jpackage-utils
+BuildRequires: dos2unix
+
+Requires: bea-stax
+Requires: jpackage-utils
+
+BuildArch: noarch
+
+
+%description
+This project develops a few extensions to complement JSR-173 StAX API in the
+following area.
+
+* Enable parser instance reuse (which is important in the
+  high-performance environment like JAXB and JAX-WS)
+* Improve the support for reading from non-text XML infoset,
+  such as FastInfoset.
+* Improve the namespace support.
+
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+Requires: jpackage-utils
+
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+
+%prep
+%setup -q
+%patch0 -p1
+
+# Convert the license to UTF-8:
+mv LICENSE.txt LICENSE.txt.tmp
+iconv -f ISO-8859-1 -t UTF-8 LICENSE.txt.tmp > LICENSE.txt
+dos2unix LICENSE.txt
+
+
+%build
+mvn-rpmbuild \
+  -Dproject.build.sourceEncoding=UTF-8 \
+  install \
+  javadoc:aggregate
+
+
+%install
+
+# Jar files:
+install -d -m 755 %{buildroot}%{_javadir}
+install -m 644 target/stax-ex-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# POM files:
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+cp -p pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+# Javadoc files:
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+# Dependencies map:
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+
+%files
+%{_javadir}/*
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%doc LICENSE.txt
+
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE.txt
+
+
+%changelog
+* Fri Mar 9 2012 Juan Hernandez <juan.hernandez at redhat.com> 1.7-1
+- Updated to upstream version 1.7
+
+* Fri Mar 9 2012 Juan Hernandez <juan.hernandez at redhat.com> 1.4-2
+- Cleanup of the spec file
+
+* Sat Jan 21 2012 Marek Goldmann <mgoldman at redhat.com> 1.4-1
+- Initial packaging


More information about the scm-commits mailing list