[java-sig-commits] [jboss-j2eemgmt-1.1-api] Initial import (#819020).

gil gil at fedoraproject.org
Tue May 8 13:34:11 UTC 2012


commit 2d90b43da0ff13097368ffe9f8a440683fe686ce
Author: gil <puntogil at libero.it>
Date:   Tue May 8 13:36:31 2012 +0200

    Initial import (#819020).

 .gitignore                  |    1 +
 jboss-j2eemgmt-1.1-api.spec |   82 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 3 files changed, 84 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b307dff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jboss-j2eemgmt-1.1-api-1.0.1.Final.tar.xz
diff --git a/jboss-j2eemgmt-1.1-api.spec b/jboss-j2eemgmt-1.1-api.spec
new file mode 100644
index 0000000..b8287f6
--- /dev/null
+++ b/jboss-j2eemgmt-1.1-api.spec
@@ -0,0 +1,82 @@
+%global namedreltag .Final
+%global namedversion %{version}%{?namedreltag}
+Name:          jboss-j2eemgmt-1.1-api
+Version:       1.0.1
+Release:       2%{?dist}
+Summary:       Java EE Management 1.1 API
+Group:         Development/Libraries
+License:       LGPLv2+
+URL:           http://www.jboss.org/
+# git clone git://github.com/jboss/jboss-j2eemgmt-api_spec.git jboss-j2eemgmt-1.1-api
+# cd jboss-j2eemgmt-1.1-api/ && git archive --format=tar --prefix=jboss-j2eemgmt-1.1-api/ jboss-j2eemgmt-api_1.1_spec-1.0.1.Final | xz > jboss-j2eemgmt-1.1-api-1.0.1.Final.tar.xz
+Source0:       %{name}-%{namedversion}.tar.xz
+
+BuildRequires: java-devel
+BuildRequires: jboss-specs-parent
+BuildRequires: jpackage-utils
+
+BuildRequires: jboss-ejb-3.1-api
+
+BuildRequires: maven
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-enforcer-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-plugin-bundle
+BuildRequires: maven-resources-plugin
+BuildRequires: maven-source-plugin
+BuildRequires: maven-surefire-plugin
+
+Requires:      jboss-ejb-3.1-api
+
+Requires:      java
+Requires:      jpackage-utils
+BuildArch:     noarch
+
+%description
+JSR-77: Java (TM) EE Management 1.1 API.
+
+%package javadoc
+Group:         Documentation
+Summary:       Javadoc for %{name}
+Requires:      jpackage-utils
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n %{name}
+
+%build
+
+mvn-rpmbuild install javadoc:aggregate
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}
+install -m 644 target/jboss-j2eemgmt-api_1.1_spec-%{namedversion}.jar \
+  %{buildroot}%{_javadir}/%{name}.jar
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+%changelog
+* Tue May 08 2012 gil cattaneo <puntogil at libero.it> 1.0.1-2
+- add maven and maven-enforcer-plugin to BR
+
+* Tue Apr 24 2012 gil cattaneo <puntogil at libero.it> 1.0.1-1
+- initial rpm
+
diff --git a/sources b/sources
index e69de29..cbaff92 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a3a4908c5db7dc222555b1cf79d563d8  jboss-j2eemgmt-1.1-api-1.0.1.Final.tar.xz


More information about the java-sig-commits mailing list