[geronimo-jaspic-spec] Initial commit

Stanislav Ochotnicky sochotni at fedoraproject.org
Wed Dec 21 12:11:36 UTC 2011


commit 2b63180aff20e362c2f182e5e358538e71ca4e1a
Author: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date:   Wed Dec 21 13:05:31 2011 +0100

    Initial commit

 .gitignore                                |    1 +
 geronimo-jaspic-spec-use-parent-pom.patch |   16 ++++++
 geronimo-jaspic-spec.spec                 |   75 +++++++++++++++++++++++++++++
 sources                                   |    1 +
 4 files changed, 93 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e8b12c3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/geronimo-jaspic_1.0_spec-1.0-source-release.tar.gz
diff --git a/geronimo-jaspic-spec-use-parent-pom.patch b/geronimo-jaspic-spec-use-parent-pom.patch
new file mode 100644
index 0000000..b34adc5
--- /dev/null
+++ b/geronimo-jaspic-spec-use-parent-pom.patch
@@ -0,0 +1,16 @@
+--- pom.xml	2009-06-09 02:38:36.000000000 +0200
++++ pom.xml-gil	2011-08-28 21:13:33.453425382 +0200
+@@ -25,9 +25,10 @@
+     <modelVersion>4.0.0</modelVersion>
+ 
+     <parent>
+-        <groupId>org.apache.geronimo.genesis</groupId>
+-        <artifactId>genesis-java1.4-flava</artifactId>
+-        <version>2.0</version>
++        <groupId>org.apache.geronimo.specs</groupId>
++        <artifactId>specs</artifactId>
++        <version>1.4</version>
++        <relativePath>../pom.xml</relativePath>
+     </parent>
+ 
+     <groupId>org.apache.geronimo.specs</groupId>
diff --git a/geronimo-jaspic-spec.spec b/geronimo-jaspic-spec.spec
new file mode 100644
index 0000000..5364796
--- /dev/null
+++ b/geronimo-jaspic-spec.spec
@@ -0,0 +1,75 @@
+%define api_version 1.0
+%define pkg_name geronimo-jaspic_%{api_version}_spec
+Name:          geronimo-jaspic-spec
+Version:       1.0
+Release:       1%{?dist}
+Summary:       Java Authentication SPI for Containers
+License:       ASL 2.0
+Group:         Development/Libraries
+URL:           http://geronimo.apache.org/
+Source0:       http://repo2.maven.org/maven2/org/apache/geronimo/specs/%{pkg_name}/%{version}/%{pkg_name}-%{version}-source-release.tar.gz
+
+Patch0:        geronimo-jaspic-spec-use-parent-pom.patch
+
+BuildArch:     noarch
+
+BuildRequires: java-devel
+BuildRequires: maven
+BuildRequires: maven-plugin-bundle
+BuildRequires: geronimo-parent-poms
+BuildRequires: jpackage-utils
+
+Requires:      java
+Requires:      jpackage-utils
+
+%description
+Java Authentication Service Provider Interface for Containers (JSR-196) api.
+
+%package javadoc
+Group:          Documentation
+Summary:        API documentation for %{name}
+Requires:       jpackage-utils
+
+%description javadoc
+%{summary}.
+
+
+%prep
+%setup -q -n %{pkg_name}-%{version}
+
+for d in LICENSE NOTICE ; do
+  iconv -f iso8859-1 -t utf-8 $d > $d.conv && mv -f $d.conv $d
+  sed -i 's/\r//' $d
+done
+%patch0 -p0
+
+%build
+mvn-rpmbuild install javadoc:aggregate
+
+%install
+mkdir -p %{buildroot}%{_javadir}
+install -m 644 target/%{pkg_name}-%{version}.jar \
+  %{buildroot}%{_javadir}/%{name}.jar
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+
+%files
+%doc LICENSE NOTICE
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc LICENSE NOTICE
+%{_javadocdir}/%{name}
+
+%changelog
+* Mon Dec 19 2011 Stanislav Ochotnicky <sochotnicky at redhat.com> - 1.0-1
+- Initial package (based on Mageia version)
diff --git a/sources b/sources
index e69de29..db7da3e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c2919bc29383c2957fae36554db8031a  geronimo-jaspic_1.0_spec-1.0-source-release.tar.gz


More information about the scm-commits mailing list