commit 67ad49ed382808a6799b4b71336dbf5bf882bb8b
Author: gil <puntogil(a)libero.it>
Date: Fri Aug 31 05:22:38 2012 +0200
Initial import (#822831).
.gitignore | 1 +
gentlyweb-utils-1.5-build.patch | 68 +++++++++++++++++++++++++++++++++
gentlyweb-utils-1.5.pom | 6 +++
gentlyweb-utils.spec | 80 +++++++++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 156 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b8819ca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gentlyWEB-src-utils-1.1.tar.gz
diff --git a/gentlyweb-utils-1.5-build.patch b/gentlyweb-utils-1.5-build.patch
new file mode 100644
index 0000000..1deec0f
--- /dev/null
+++ b/gentlyweb-utils-1.5-build.patch
@@ -0,0 +1,68 @@
+--- build-utils.xml 2011-06-19 20:19:48.000000000 +0200
++++ build-utils.xml-gil 2012-08-29 00:46:44.858057403 +0200
+@@ -15,20 +15,20 @@
+ <format property="TODAY" pattern="dd/MMM/yy" />
+ </tstamp>
+
+- <available file="f:/java/jars"
++ <!--available file="f:/java/jars"
+ type="dir"
+ property="commonJarsDir"
+ value="f:/java/jars" />
+
+- <fail unless="commonJarsDir">Unable to find common jars! Check
paths in target "init".</fail>
++ <fail unless="commonJarsDir">Unable to find common jars! Check
paths in target "init".</fail-->
+
+ <!--
+ Define where the common jar files are. It needs to be done here otherwise
"commonJarsDir" would
+ not be allocated a value.
+ -->
+ <path id="commonJars">
+- <fileset defaultexcludes="yes" dir="${commonJarsDir}">
+- <include name="*.jar" />
++ <fileset defaultexcludes="yes" dir="/usr/share/java">
++ <include name="jdom.jar" />
+ </fileset>
+ </path>
+
+@@ -38,7 +38,8 @@
+ <javac srcdir="${srcDir}/utils"
+ destdir="${buildDir}"
+ debug="on"
+- source="1.4"
++ source="1.5"
++ target="1.5"
+ deprecation="on"
+ excludes="**/cvs/**">
+ <classpath refid="commonJars" />
+@@ -49,7 +50,7 @@
+ <target name="createUtilsJar" depends="compileUtils">
+
+ <property name="utilsTitle" value="utils - General purpose
utilities" />
+- <property name="utilsVersion" value="1.1" />
++ <property name="utilsVersion" value="1.5" />
+ <property name="utilsPackage" value="com/gentlyweb/utils"
/>
+
+ <jar destfile="${projectName}-utils-${utilsVersion}.jar"
+@@ -67,4 +68,20 @@
+ </jar>
+ </target>
+
++ <target name="javadoc">
++ <mkdir dir="apidocs" />
++ <javadoc sourcepath="${srcDir}/utils"
++ destdir="apidocs"
++ source="1.5" charset="UTF-8"
++ >
++ <packageset dir="${srcDir}/utils"/>
++ <classpath>
++ <pathelement location="${buildDir}/*"/>
++ <fileset dir="/usr/share/java">
++ <include name="jdom.jar"/>
++ </fileset>
++ </classpath>
++ </javadoc>
++ </target>
++
+ </project>
+\ Manca newline alla fine del file
diff --git a/gentlyweb-utils-1.5.pom b/gentlyweb-utils-1.5.pom
new file mode 100644
index 0000000..db4a8ef
--- /dev/null
+++ b/gentlyweb-utils-1.5.pom
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.sf.josql</groupId>
+ <artifactId>gentlyweb-utils</artifactId>
+ <version>1.5</version>
+</project>
\ No newline at end of file
diff --git a/gentlyweb-utils.spec b/gentlyweb-utils.spec
new file mode 100644
index 0000000..dfcb8fa
--- /dev/null
+++ b/gentlyweb-utils.spec
@@ -0,0 +1,80 @@
+Name: gentlyweb-utils
+# there are no differences in the debian source taraball
+#
http://ftp.de.debian.org/debian/pool/main/g/gentlyweb-utils/gentlyweb-uti...
+# the version is changed only in the activemq package see activemq-5.6.0/pom.xml
+Version: 1.5
+Release: 2%{?dist}
+Summary: Java utility library used by JoSQL for I/O
+Group: Development/Libraries
+License: ASL 2.0
+Url:
http://josql.sourceforge.net/
+#Sour ce0:
http://gentlyweb-utils.sourcearchive.com/downloads/1.5-1/gentlyweb-utils_...
+Source0:
http://sourceforge.net/projects/josql/files/josql/stable-2.2/gentlyWEB-sr...
+Source1:
http://repo.fusesource.com/nexus/content/groups/public/net/sf/josql/%{nam...
+# use system libraries
+# fix javac target/source 1.5, encoding
+# fix version
+# add javadoc task
+Patch0: %{name}-%{version}-build.patch
+
+
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+
+BuildRequires: ant
+BuildRequires: jdom
+
+Requires: java
+Requires: jpackage-utils
+BuildArch: noarch
+
+%description
+Simple java utility library used mainly by JoSQL for I/O.
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+Requires: jpackage-utils
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n gentlyWEB-src-utils-1.1
+%patch0 -p0
+
+%build
+
+%ant -f build-utils.xml createUtilsJar javadoc
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}
+install -m 644 gentlyWEB-utils-%{version}.jar \
+ %{buildroot}%{_javadir}/%{name}.jar
+ln -sf %{name}.jar %{buildroot}%{_javadir}/gentlyWEB-utils.jar
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 %SOURCE1 %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%{_javadir}/%{name}.jar
+%{_javadir}/gentlyWEB-utils.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+%doc LICENSE-2.0.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE-2.0.txt
+
+%changelog
+* Thu Aug 30 2012 gil cattaneo <puntogil(a)libero.it> 1.5-2
+- changed SOURCE0 no more available at
http://gentlyweb-utils.sourcearchive.com/downloads/1.5-1
+
+* Fri May 18 2012 gil cattaneo <puntogil(a)libero.it> 1.5-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..7a39b23 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9f2378c384cae0ce63cb00056d1f95e2 gentlyWEB-src-utils-1.1.tar.gz