[glassfish-fastinfoset] First import after review (#790564)
Juan Hernandez
jhernand at fedoraproject.org
Wed Mar 7 17:02:30 UTC 2012
commit 97f29689ecba8f5f49a43ee32758acc5a5cbe2e7
Author: Juan Hernandez <juan.hernandez at redhat.com>
Date: Wed Mar 7 18:02:03 2012 +0100
First import after review (#790564)
.gitignore | 1 +
glassfish-fastinfoset-1.2.12-pom.patch | 37 +++++++++++
glassfish-fastinfoset.spec | 106 ++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 145 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ef14335 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/glassfish-fastinfoset-1.2.12-src-svn.tar.gz
diff --git a/glassfish-fastinfoset-1.2.12-pom.patch b/glassfish-fastinfoset-1.2.12-pom.patch
new file mode 100644
index 0000000..512e9ca
--- /dev/null
+++ b/glassfish-fastinfoset-1.2.12-pom.patch
@@ -0,0 +1,37 @@
+diff -Naur glassfish-fi-1.2.12/pom.xml glassfish-fi-1.2.12-work/pom.xml
+--- glassfish-fi-1.2.12/pom.xml 2011-09-05 05:56:59.000000000 -0400
++++ glassfish-fi-1.2.12-work/pom.xml 2012-01-20 03:42:37.666000178 -0500
+@@ -1,10 +1,4 @@
+ <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>com.sun.xml.fastinfoset</groupId>
+ <artifactId>fastinfoset-project</artifactId>
+@@ -210,9 +204,6 @@
+ </profiles>
+ <modules>
+ <module>fastinfoset</module>
+- <module>roundtrip-tests</module>
+- <module>utilities</module>
+- <module>samples</module>
+ </modules>
+ <reporting>
+ <outputDirectory>target/site</outputDirectory>
+@@ -277,9 +268,9 @@
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+- <groupId>javax.xml.bind</groupId>
+- <artifactId>jsr173_api</artifactId>
+- <version>1.0</version>
++ <groupId>stax</groupId>
++ <artifactId>stax-api</artifactId>
++ <version>1.0.1</version>
+ </dependency>
+ </dependencies>
+ <properties>
diff --git a/glassfish-fastinfoset.spec b/glassfish-fastinfoset.spec
new file mode 100644
index 0000000..5957037
--- /dev/null
+++ b/glassfish-fastinfoset.spec
@@ -0,0 +1,106 @@
+Name: glassfish-fastinfoset
+Version: 1.2.12
+Release: 3%{?dist}
+Summary: Fast Infoset
+Group: Development/Libraries
+License: ASL 2.0
+URL: https://fi.dev.java.net
+
+# svn export https://svn.java.net/svn/fi~svn/tags/1_2_12/ glassfish-fastinfoset-1.2.12
+# find glassfish-fastinfoset-1.2.12/ -name '*.class' -delete
+# find glassfish-fastinfoset-1.2.12/ -name '*.jar' -delete
+# rm -rf glassfish-fastinfoset-1.2.12/roundtrip-tests
+# tar czf glassfish-fastinfoset-1.2.12-src-svn.tar.gz glassfish-fastinfoset-1.2.12
+Source0: %{name}-%{version}-src-svn.tar.gz
+
+# Replace javax.xml.bind jsr173_api with stax (bea-)stax-api:
+Patch0: %{name}-%{version}-pom.patch
+
+BuildRequires: jpackage-utils
+BuildRequires: bea-stax-api
+BuildRequires: maven
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-plugin-jxr
+BuildRequires: maven-plugin-tools-api
+BuildRequires: maven-project-info-reports-plugin
+BuildRequires: maven-release-plugin
+BuildRequires: maven-source-plugin
+BuildRequires: xsom
+BuildRequires: maven-surefire-provider-junit4
+
+Requires: bea-stax-api
+Requires: jpackage-utils
+Requires: xsom
+
+BuildArch: noarch
+
+
+%package javadoc
+Group: Development/Libraries
+Summary: Javadoc for %{name}
+Requires: jpackage-utils
+
+
+%description
+Fast Infoset specifies a standardized binary encoding for the XML Information
+Set. An XML infoset (such as a DOM tree, StAX events or SAX events in
+programmatic representations) may be serialized to an XML 1.x document or, as
+specified by the Fast Infoset standard, may be serialized to a fast infoset
+document. Fast infoset documents are generally smaller in size and faster to
+parse and serialize than equivalent XML documents.
+
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+
+%prep
+%setup -q
+%patch0 -p1
+
+
+%build
+mvn-rpmbuild install javadoc:aggregate
+
+
+%install
+
+# Jar files:
+install -d -m 755 %{buildroot}%{_javadir}
+install -m 644 fastinfoset/target/FastInfoset-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+ln -s %{_javadir}/%{name}.jar %{buildroot}%{_javadir}/FastInfoset.jar
+
+# POM files:
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+cp -p pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-project.pom
+cp -p fastinfoset/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}-project.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+
+%files
+%{_javadir}/*
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+%changelog
+* Wed Mar 7 2012 Juan Hernandez <juan.hernandez at redhat.com> 1.2.12-3
+- Changed name from glassfish-fi to glassfish-fastinfoset
+
+* Tue Feb 14 2012 Juan Hernandez <juan.hernandez at redhat.com> 1.2.12-2
+- Cleanup of the spec file
+
+* Sat Jan 21 2012 Marek Goldmann <mgoldman at redhat.com> 1.2.12-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..98d8496 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8cdccd660896a053c0f453bd28c27f5c glassfish-fastinfoset-1.2.12-src-svn.tar.gz
More information about the scm-commits
mailing list