[geronimo-commonj] First import after review (#799392)

Juan Hernandez jhernand at fedoraproject.org
Mon Mar 12 12:34:20 UTC 2012


commit de519bc2befcd73f1f2a933c161f11aa25a9591c
Author: Juan Hernandez <juan.hernandez at redhat.com>
Date:   Mon Mar 12 13:33:36 2012 +0100

    First import after review (#799392)

 .gitignore                         |    1 +
 geronimo-commonj-version-fix.patch |   13 +++++
 geronimo-commonj.spec              |   94 ++++++++++++++++++++++++++++++++++++
 sources                            |    1 +
 4 files changed, 109 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e940fb2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/geronimo-commonj-1.1.0.tar.xz
diff --git a/geronimo-commonj-version-fix.patch b/geronimo-commonj-version-fix.patch
new file mode 100644
index 0000000..c21e03e
--- /dev/null
+++ b/geronimo-commonj-version-fix.patch
@@ -0,0 +1,13 @@
+Index: pom.xml
+===================================================================
+--- pom.xml	(revision 1163288)
++++ pom.xml	(working copy)
+@@ -34,7 +34,7 @@
+     <artifactId>geronimo-commonj_1.1_spec</artifactId>
+     <packaging>jar</packaging>
+     <name>Commonj 1.1</name>
+-    <version>1.1.0-SNAPSHOT</version>
++    <version>1.1.0</version>
+ 
+     <properties>
+ 	    <geronimo.osgi.export>java.commonj.timers;version="1.1",java.commonj.work;version="1.1"</geronimo.osgi.export>
diff --git a/geronimo-commonj.spec b/geronimo-commonj.spec
new file mode 100644
index 0000000..52f53dd
--- /dev/null
+++ b/geronimo-commonj.spec
@@ -0,0 +1,94 @@
+Name: geronimo-commonj
+Version: 1.1.0
+Release: 2%{?dist}
+Summary: CommonJ Specification
+Group: Development/Libraries
+License: ASL 2.0
+URL: http://geronimo.apache.org/
+
+# svn export https://svn.apache.org/repos/asf/geronimo/specs/tags/specs-1.4/geronimo-commonj_1.1_spec geronimo-commonj-1.1.0
+# tar cvfJ geronimo-commonj-1.1.0.tar.xz geronimo-commonj-1.1.0
+Source: %{name}-%{version}.tar.xz
+
+# Remove the SNAPSHOT tag from the version in the POM file:
+Patch0: %{name}-version-fix.patch
+
+BuildArch: noarch
+
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+BuildRequires: maven
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+
+
+Requires: java
+Requires: jpackage-utils
+
+
+%description
+Geronimo CommonJ Specification.
+
+
+%package javadoc
+Summary: Javadocs for %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+
+%prep
+%setup -q
+%patch0 -p0
+
+
+%build
+mvn-rpmbuild \
+  -Dproject.build.sourceEncoding=UTF-8 \
+  install \
+  javadoc:aggregate
+
+
+%install
+
+# Jar files:
+install -d -m 755 %{buildroot}%{_javadir}
+install -pm 644 target/%{name}_1.1_spec-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# POM files:
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 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
+%doc NOTICE.txt
+
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE.txt
+%doc NOTICE.txt
+
+
+%changelog
+* Fri Mar 2 2012 Juan Hernandez <juan.hernandez at redhat.com> 1.1.0-2
+- Cleanup of the spec file
+
+* Tue Aug 30 2011 Andy Grimm <agrimm at gmail.com> 1.1.0-1
+- Initial build
diff --git a/sources b/sources
index e69de29..499c6da 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+716f78b0bd661996fe35d0390f86a749  geronimo-commonj-1.1.0.tar.xz


More information about the scm-commits mailing list