[josql] Initial import (#822832)
gil
gil at fedoraproject.org
Mon Jun 3 10:41:38 UTC 2013
commit 04ab8212a5f4b84590a25884f532881cdaaa47fb
Author: gil <puntogil at libero.it>
Date: Mon Jun 3 12:41:19 2013 +0200
Initial import (#822832)
.gitignore | 1 +
josql-2.2-build.patch | 73 +++++++++++++++++++++++++++++++++++++
josql-pom-template.xml | 6 +++
josql.spec | 94 ++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 175 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..42d67ef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/JoSQL-src-stable-2.2.tar.gz
diff --git a/josql-2.2-build.patch b/josql-2.2-build.patch
new file mode 100644
index 0000000..9b8eca8
--- /dev/null
+++ b/josql-2.2-build.patch
@@ -0,0 +1,73 @@
+--- build.xml 2010-12-04 14:43:27.000000000 +0100
++++ build.xml-gil 2012-08-29 01:00:26.860039250 +0200
+@@ -11,7 +11,7 @@
+ <property name="srcDir" value="./src" />
+ <property name="jarName" value="${projectName}-${currVersion}.jar" />
+ <property name="docsDir" value="./docs" />
+- <property name="jars" value="./3rd-party-jars/gentlyWEB-utils-1.1.jar" />
++ <property name="jars" value="/usr/share/java/gentlyweb-utils.jar" />
+ <property name="binDistTarFileName" value="${projectName}-bin-stable-${currVersion}.tar" />
+ <property name="docsDistTarFileName" value="${projectName}-docs-stable-${currVersion}.tar" />
+ <property name="docsDistZipFileName" value="${docsDistTarFileName}.gz" />
+@@ -44,7 +44,7 @@
+
+ <target name="javacc" depends="init">
+ <javacc target="data/josql.jj"
+- javacchome="${pathStart}/reference/java/javacc/javacc-4.0"
++ javacchome="/usr/share/java/"
+ outputdirectory="src/org/josql/parser" />
+ </target>
+
+@@ -82,6 +82,8 @@
+ debug="on"
+ deprecation="on"
+ nowarn="on"
++ source="1.5"
++ target="1.5"
+ excludes="**/cvs/**,**/gui/**,**/contrib/**">
+ <classpath path="${jars}" />
+ </javac>
+@@ -94,6 +96,8 @@
+ debug="on"
+ deprecation="on"
+ nowarn="on"
++ source="1.5"
++ target="1.5"
+ includes="**/contrib/**"
+ excludes="**/cvs/**,**/gui/**">
+ <classpath path="$(jarName};${jars};${contrib-jars}" />
+@@ -110,6 +114,8 @@
+ destdir="${buildDir}"
+ debug="on"
+ deprecation="on"
++ source="1.5"
++ target="1.5"
+ excludes="**/cvs/**"
+ includes="**/gui/**">
+ <classpath path="${jars};${pathStart}/java/jars/gentlyWEB.jar;${pathStart}/java/jars/jdom-1.0.jar;${pathStart}/java/jars/looks-all.jar;${pathStart}/java/jars/looks-win.jar;${pathStart}/java/jars/forms-1.0.5.jar;${pathStart}/java/jars/plastic.jar" />
+@@ -129,6 +135,7 @@
+ sourcepath="${srcDir}"
+ packagenames="${packages}"
+ failonerror="true"
++ source="1.5"
+ windowtitle="${projectName} ${currVersion} - SQL for Java Objects"
+ use="true"
+ doctitle="${projectName} ${currVersion}"
+@@ -139,7 +146,7 @@
+ bottom="<center><dd><a href='http://sourceforge.net'><img border='0' height='31' width='88' title='SourceForge' src='http://sourceforge.net/sflogo.php?group_id=josql&type=1' />&#160;&#160;</a>Copyright &#169; ${year} Gary Bentley. All Rights Reserved.</dd></center>"
+ classpath="${jars}">
+
+- <link href="http://java.sun.com/j2se/1.4.2/docs/api" />
++ <link href="/usr/share/javadoc/java" />
+ <!--
+ <link href="http://jasperreports.sourceforge.net/api/index.html" />
+
+@@ -225,6 +232,8 @@
+ deprecation="on"
+ nowarn="on"
+ includes="Test.java"
++ source="1.5"
++ target="1.5"
+ excludes="**/cvs/**,**/gui/**">
+ <classpath path="${jars}:${jarName}" />
+ </javac>
diff --git a/josql-pom-template.xml b/josql-pom-template.xml
new file mode 100644
index 0000000..67c8a14
--- /dev/null
+++ b/josql-pom-template.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.sf.josql</groupId>
+ <artifactId>josql</artifactId>
+ <version>@version@</version>
+</project>
\ No newline at end of file
diff --git a/josql.spec b/josql.spec
new file mode 100644
index 0000000..38aed90
--- /dev/null
+++ b/josql.spec
@@ -0,0 +1,94 @@
+Name: josql
+Version: 2.2
+Release: 1%{?dist}
+Summary: Library to apply SQL-like syntax to Java objects
+Group: Development/Libraries
+License: ASL 2.0
+Url: http://josql.sourceforge.net/
+Source0: http://sourceforge.net/projects/%{name}/files/%{name}/stable-%{version}/JoSQL-src-stable-%{version}.tar.gz
+Source1: josql-pom-template.xml
+# use system javacc gentlyweb-utils and java apis
+# fix javac target/source 1.5
+Patch0: %{name}-%{version}-build.patch
+
+BuildRequires: java-devel
+BuildRequires: java-javadoc
+BuildRequires: jpackage-utils
+
+BuildRequires: ant
+BuildRequires: gentlyweb-utils
+BuildRequires: javacc
+
+# contrib-jar deps
+# jasperreports
+# velocity-tools
+# gui-jar deps
+# gentlyWEB
+# jgoodies-looks -all -plastic -win
+# jgoodies-forms
+Requires: jpackage-utils
+Requires: java
+BuildArch: noarch
+
+%description
+JoSQL (SQL for Java Objects) provides the ability for a developer to apply
+a SQL statement to a collection of Java Objects. JoSQL provides the ability
+to search, order and group ANY Java objects and should be applied when you
+want to perform SQL-like queries on a collection of Java Objects.
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n JoSQL-%{version}
+find -name '*.jar' -delete
+find -name '*.class' -delete
+
+%patch0 -p0
+
+rm -rf 3rd-party-jars/*
+# regenerate
+rm src/org/josql/parser/TokenMgrError.java
+rm src/org/josql/parser/ParseException.java
+rm src/org/josql/parser/Token.java
+rm src/org/josql/parser/JavaCharStream.java
+
+sed -i 's/\r//' data/javadocsStyle.css
+
+%build
+
+%ant javacc createJar javadoc
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}
+install -m 644 JoSQL-%{version}.jar \
+ %{buildroot}%{_javadir}/%{name}.jar
+ln -sf %{name}.jar %{buildroot}%{_javadir}/JoSQL.jar
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+sed -i "s|@version@|%{version}|" %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "net.sourceforge.%{name}:%{name}"
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr docs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%{_javadir}/%{name}.jar
+%{_javadir}/JoSQL.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+%doc LICENSE-2.0.txt README
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE-2.0.txt
+
+%changelog
+* Fri May 18 2012 gil cattaneo <puntogil at libero.it> 2.2-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..3abb829 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c57b0096796dca0195501449797591ed JoSQL-src-stable-2.2.tar.gz
More information about the scm-commits
mailing list