[signpost-core/f13/master] Initial import (#669858)

Cédric OLIVIER cquad at fedoraproject.org
Wed Jan 26 19:59:45 UTC 2011


commit 0ea573f3df409ec6e0ce28baa99835b7736784ce
Author: cquad <cquad at fedoraproject.org>
Date:   Wed Jan 26 20:59:29 2011 +0100

    Initial import (#669858)

 .gitignore                        |    1 +
 build.xml                         |   52 ++++++++++++++++++++
 signpost-core-generate-tarball.sh |   26 ++++++++++
 signpost-core.spec                |   95 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 5 files changed, 175 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2d9b913 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/signpost-core-1.2.1.1.tar.gz
diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..a0ba8a1
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,52 @@
+<project default="jar">
+
+  <!-- Java classpath addition (all jar files to compile tests with this) -->
+  <path id="classpath">
+     <fileset dir="lib">
+	<include name="**/*.jar"/>
+     </fileset>
+  </path>
+
+  <target name="clean">
+      <delete dir="build/classes"/>
+          <delete dir="build/jar"/>
+            </target>
+
+  <target name="compile" depends="clean">
+      <mkdir dir="build/classes"/>
+          <javac srcdir="src" destdir="build/classes" classpathref="classpath" excludes="test/**"/>
+
+	<copy todir="build/classes">
+	 	    <fileset dir="src">
+	 	          		<exclude name="**/*.java"/>
+	 	          		            </fileset>
+	 	          		            	</copy>
+	 	          		            	  </target>
+
+  <target name="jar" depends="compile" >
+  	<mkdir dir="build/jar"/>
+  	        <jar destfile="build/jar/signpost-core.jar" basedir="build/classes">
+  	                   <!-- <manifest>
+  	                                        <attribute name="Main-Class" value="oata.HelloWorld"/>
+  	                                                    </manifest>-->
+        </jar>
+          </target>
+
+        <target name="javadoc" description="generate javadoc documentation">
+        <javadoc
+            destdir="javadoc"
+            defaultexcludes="yes"
+            classpathref="classpath"
+            author="true"
+            version="true"
+            use="true"
+            access="protected"
+            windowtitle="signpost-core javadoc"
+            failonerror="true">
+            <packageset dir="src/main/java">
+                <include name="oauth/signpost/"/>
+            </packageset>
+        </javadoc>
+        </target>
+
+</project>
diff --git a/signpost-core-generate-tarball.sh b/signpost-core-generate-tarball.sh
new file mode 100755
index 0000000..9450f71
--- /dev/null
+++ b/signpost-core-generate-tarball.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+if [ $# -ne 1 ]
+then
+	echo Usage : ./$(basename $0) VERSION_TAG
+  exit 1
+fi
+
+NAME=signpost-core
+VERSION=$1
+
+# removing old sources files if exists
+rm -rf ${NAME}-${VERSION}
+
+# cheking out 
+git clone https://github.com/kaeppler/signpost.git ${NAME}-${VERSION}
+cd ${NAME}-${VERSION}
+git checkout ${VERSION} 
+
+# creating source tar
+tar zcvf ../${NAME}-${VERSION}.tar.gz ${NAME}
+
+cd ..
+# delete temporary directories
+rm -rf ${NAME}-${VERSION}
+
diff --git a/signpost-core.spec b/signpost-core.spec
new file mode 100644
index 0000000..31c386c
--- /dev/null
+++ b/signpost-core.spec
@@ -0,0 +1,95 @@
+Name:		signpost-core
+Version:	1.2.1.1
+Release:	4%{?dist}
+Summary:	A simple, light-weight, and modular OAuth client library for the Java platform
+
+Group:		Development/Libraries
+License:	ASL 2.0
+URL:		http://code.google.com/p/oauth-signpost/
+Source0:	%{name}-%{version}.tar.gz
+Source1:	build.xml
+Source2:	%{name}-generate-tarball.sh
+# Source built using the following commands : ./signpost-core-generate-tarball.sh 1.2.1.1
+# tarball is built using "git clone https://github.com/kaeppler/signpost.git" and checkout with version parameter
+
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:	noarch 
+BuildRequires:	jpackage-utils
+BuildRequires:	java-devel >= 1:1.5.0
+BuildRequires:	ant
+BuildRequires:	commons-codec
+Requires:	jpackage-utils
+Requires:	java >= 1:1.5.0
+
+%description
+Signpost is the easy and intuitive solution for signing HTTP messages on the 
+Java platform in conformance with the OAuth Core 1.0a standard. 
+Signpost follows a modular and flexible design, allowing you to combine it with
+different HTTP messaging layers
+
+%package javadoc
+Summary:	Javadoc for %{name}
+Group:		Documentation
+Requires:       %{name} = %{version}-%{release}
+Requires:	jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n %{name}
+cp %SOURCE1 .
+
+# Remove pre-built JAR and class files
+find -name '*.jar' -exec rm -f '{}' \;
+find -name '*.class' -exec rm -f '{}' \;
+
+# Add depencies 
+mkdir lib
+build-jar-repository -s -p lib commons-codec
+
+
+%build
+ant javadoc
+ant
+
+%install
+rm -rf %{buildroot}
+mkdir -p  %{buildroot}%{_javadir}
+
+install -p -m 644 build/jar/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# javadoc
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -rp javadoc/*  \
+  %{buildroot}%{_javadocdir}/%{name}
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc
+%{_javadir}/%{name}.jar
+
+
+%files javadoc
+%defattr(-,root,root,-)
+%{_javadocdir}/%{name}
+
+
+%changelog
+* Tue Jan 25 2011 Cédric OLIVIER <cedric.olivier at free.fr> 1.2.1.1-4
+- Add fully dependency in javadoc subpackage
+
+* Sun Jan 16 2011 Cédric OLIVIER <cedric.olivier at free.fr> 1.2.1.1-3
+- Remove unnedded clean section
+- Remove unneeded requires in javadoc section
+
+* Sun Jan 16 2011 Cédric OLIVIER <cedric.olivier at free.fr> 1.2.1.1-2
+- According to Java packaging guidelines version removed from jar file name 
+
+* Sat Jan 15 2011 Cédric OLIVIER <cedric.olivier at free.fr> 1.2.1.1-1
+- First release
diff --git a/sources b/sources
index e69de29..72003c0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d4785a14e2f9659a9c78c5ec32d4822f  signpost-core-1.2.1.1.tar.gz


More information about the scm-commits mailing list