commit 4c16c1ed4db859d08b26f307308745c81094fa0e
Author: gil <puntogil(a)libero.it>
Date: Tue Jun 12 21:30:48 2012 +0200
Initial import (#820995).
.gitignore | 1 +
java-oauth.spec | 123 +++++++++++++++++++++++++++++++++++++++++++++
oauth-20100601-poms.patch | 61 ++++++++++++++++++++++
sources | 1 +
4 files changed, 186 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..04014fe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/oauth-20100601-clean-src-svn.tar.gz
diff --git a/java-oauth.spec b/java-oauth.spec
new file mode 100644
index 0000000..27c2aa7
--- /dev/null
+++ b/java-oauth.spec
@@ -0,0 +1,123 @@
+%global oname oauth
+Name: java-oauth
+Version: 20100601
+Release: 2%{?dist}
+Summary: An open protocol to allow API authentication
+Group: Development/Libraries
+License: ASL 2.0
+Url:
http://code.google.com/p/oauth/
+# svn export
http://oauth.googlecode.com/svn/code/java oauth-20100601
+# find oauth-20100601 -name "*.bat" -delete
+# find oauth-20100601 -name "*.class" -delete
+# find oauth-20100601 -name "*.jar" -delete
+# tar czf oauth-20100601-clean-src-svn.tar.gz oauth-20100601
+Source0: oauth-20100601-clean-src-svn.tar.gz
+
+# remove unavailable test deps org.mortbay.jetty jetty-embedded 6.1.11
+# unavailable deps disable this modules: core-old example test
+
+# x test
+# org.mortbay.jetty jetty-embedded 6.1.11
+
+# x oauth-example-desktop
+# org.codehaus.mojo appassembler-maven-plugin
+# org.mortbay.jetty jetty-embedded 6.1.11
+
+# x oauth-example-provider oauth-example-consumer
+# org.mortbay.jetty jetty-maven-plugin
+
+Patch0: oauth-20100601-poms.patch
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+
+BuildRequires: httpcomponents-client
+BuildRequires: jakarta-commons-httpclient
+BuildRequires: tomcat-servlet-3.0-api
+
+BuildRequires: maven
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-resources-plugin
+BuildRequires: maven-source-plugin
+BuildRequires: maven-surefire-plugin
+
+Requires: httpcomponents-client
+Requires: jakarta-commons-httpclient
+Requires: tomcat-servlet-3.0-api
+
+Requires: java
+Requires: jpackage-utils
+BuildArch: noarch
+
+%description
+An open protocol to allow API authentication
+in a simple and standard method from desktop and
+web applications.
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+Requires: jpackage-utils
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n %{oname}-%{version}
+%patch0 -p1
+
+%build
+# unavailable test deps
+mvn-rpmbuild -Dmaven.test.skip=true -Dproject.build.sourceEncoding=UTF-8 install
javadoc:aggregate
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}/%{oname}
+install -pm 644 core/commons/target/%{oname}-%{version}.jar
%{buildroot}%{_javadir}/%{oname}/%{oname}.jar
+install -pm 644 core/consumer/target/%{oname}-consumer-%{version}.jar
%{buildroot}%{_javadir}/%{oname}/%{oname}-consumer.jar
+install -pm 644 core/httpclient3/target/%{oname}-httpclient3-%{version}.jar
%{buildroot}%{_javadir}/%{oname}/%{oname}-httpclient3.jar
+install -pm 644 core/httpclient4/target/%{oname}-httpclient4-%{version}.jar
%{buildroot}%{_javadir}/%{oname}/%{oname}-httpclient4.jar
+install -pm 644 core/provider/target/%{oname}-provider-%{version}.jar
%{buildroot}%{_javadir}/%{oname}/%{oname}-provider.jar
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{oname}-parent.pom
+install -pm 644 core/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{oname}-core-parent.pom
+install -pm 644 core/commons/pom.xml
%{buildroot}%{_mavenpomdir}/JPP.%{oname}-%{oname}.pom
+install -pm 644 core/consumer/pom.xml
%{buildroot}%{_mavenpomdir}/JPP.%{oname}-%{oname}-consumer.pom
+install -pm 644 core/httpclient3/pom.xml
%{buildroot}%{_mavenpomdir}/JPP.%{oname}-%{oname}-httpclient3.pom
+install -pm 644 core/httpclient4/pom.xml
%{buildroot}%{_mavenpomdir}/JPP.%{oname}-%{oname}-httpclient4.pom
+install -pm 644 core/provider/pom.xml
%{buildroot}%{_mavenpomdir}/JPP.%{oname}-%{oname}-provider.pom
+
+%add_maven_depmap JPP.%{oname}-parent.pom
+%add_maven_depmap JPP.%{oname}-core-parent.pom
+%add_maven_depmap JPP.%{oname}-%{oname}.pom %{oname}/%{oname}.jar
+%add_maven_depmap JPP.%{oname}-%{oname}-consumer.pom %{oname}/%{oname}-consumer.jar
+%add_maven_depmap JPP.%{oname}-%{oname}-httpclient3.pom
%{oname}/%{oname}-httpclient3.jar
+%add_maven_depmap JPP.%{oname}-%{oname}-httpclient4.pom
%{oname}/%{oname}-httpclient4.jar
+%add_maven_depmap JPP.%{oname}-%{oname}-provider.pom %{oname}/%{oname}-provider.jar
+
+mv %{buildroot}%{_mavendepmapfragdir}/%{name}
%{buildroot}%{_mavendepmapfragdir}/%{oname}
+
+mkdir -p %{buildroot}%{_javadocdir}/%{oname}
+cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{oname}
+
+%files
+%{_javadir}/%{oname}/%{oname}*.jar
+%{_mavenpomdir}/JPP.%{oname}*.pom
+%{_mavendepmapfragdir}/%{oname}
+%doc LICENSE.txt
+
+%files javadoc
+%{_javadocdir}/%{oname}
+%doc LICENSE.txt
+
+%changelog
+* Thu May 24 2012 gil cattaneo <puntogil(a)libero.it> 20100601-2
+- renamed java-oauth
+- moved all of the jar files into oauth subdirectory
+
+* Fri May 11 2012 gil cattaneo <puntogil(a)libero.it> 20100601-1
+- initial rpm
+
diff --git a/oauth-20100601-poms.patch b/oauth-20100601-poms.patch
new file mode 100644
index 0000000..bd84b8a
--- /dev/null
+++ b/oauth-20100601-poms.patch
@@ -0,0 +1,61 @@
+diff -Nru oauth-20100601/core/httpclient4/pom.xml
oauth-20100601-gil/core/httpclient4/pom.xml
+--- oauth-20100601/core/httpclient4/pom.xml 2010-06-01 08:52:53.000000000 +0200
++++ oauth-20100601-gil/core/httpclient4/pom.xml 2011-08-11 04:07:52.503617677 +0200
+@@ -27,11 +27,11 @@
+ <version>20100601</version>
+ <scope>test</scope>
+ </dependency>
+- <dependency>
++ <!--dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty-embedded</artifactId>
+ <version>6.1.11</version>
+ <scope>test</scope>
+- </dependency>
++ </dependency-->
+ </dependencies>
+ </project>
+diff -Nru oauth-20100601/core/pom.xml oauth-20100601-gil/core/pom.xml
+--- oauth-20100601/core/pom.xml 2010-06-01 08:52:53.000000000 +0200
++++ oauth-20100601-gil/core/pom.xml 2011-08-11 04:20:09.279576152 +0200
+@@ -17,7 +17,7 @@
+ <module>httpclient3</module>
+ <module>httpclient4</module>
+ <module>provider</module>
+- <module>test</module>
++ <!--This module contains tests, only. There is no interesting source code.
module>test</module-->
+ </modules>
+ <reporting>
+ <plugins>
+diff -Nru oauth-20100601/core/test/pom.xml oauth-20100601-gil/core/test/pom.xml
+--- oauth-20100601/core/test/pom.xml 2010-06-01 08:52:53.000000000 +0200
++++ oauth-20100601-gil/core/test/pom.xml 2011-08-11 04:07:18.564619589 +0200
+@@ -41,12 +41,12 @@
+ <version>20100601</version>
+ <scope>test</scope>
+ </dependency>
+- <dependency>
++ <!--dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty-embedded</artifactId>
+ <version>6.1.11</version>
+ <scope>test</scope>
+- </dependency>
++ </dependency-->
+ </dependencies>
+ <repositories>
+ <repository>
+diff -Nru oauth-20100601/pom.xml oauth-20100601-gil/pom.xml
+--- oauth-20100601/pom.xml 2010-06-01 08:52:53.000000000 +0200
++++ oauth-20100601-gil/pom.xml 2011-08-11 04:19:21.436578850 +0200
+@@ -14,8 +14,8 @@
+
+ <modules>
+ <module>core</module>
+- <module>core-old</module>
+- <module>example</module>
++ <!-- This module contains tests, only. There is no interesting source code.
module>core-old</module-->
++ <!--module>example</module-->
+ </modules>
+
+ <build>
diff --git a/sources b/sources
index e69de29..23234b0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+16e7a89ab063d291eb6f6d0341d1feef oauth-20100601-clean-src-svn.tar.gz