[jpfcodegen] Initial import
mef
mef at fedoraproject.org
Fri Mar 30 15:22:06 UTC 2012
commit ac7e6ff8c510a428bf02164045703a99f16356fc
Author: mef3 <mefoster at gmail.com>
Date: Fri Mar 30 16:21:56 2012 +0100
Initial import
.gitignore | 1 +
jpfcodegen-build.patch | 35 ++++++++++++++++++++
jpfcodegen.spec | 83 ++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 120 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..02da84f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+jpfcodegen-0.4.tbz
diff --git a/jpfcodegen-build.patch b/jpfcodegen-build.patch
new file mode 100644
index 0000000..c17c28c
--- /dev/null
+++ b/jpfcodegen-build.patch
@@ -0,0 +1,35 @@
+--- jpfcodegen/build.xml.orig 2012-01-25 11:20:13.648754005 +0000
++++ jpfcodegen/build.xml 2012-01-25 11:20:53.543596780 +0000
+@@ -33,18 +33,8 @@
+ <property name="src" value="src" />
+ <property name="lib" value="lib" />
+
+- <!-- Build classpath -->
+- <path id="classpath">
+- <pathelement path="${build}" />
+- <pathelement location="${lib}/jpf.jar" />
+- <pathelement location="${lib}/jpf-boot.jar" />
+- <pathelement location="${lib}/velocity-dep-1.5.jar" />
+- <pathelement location="${lib}/commons-logging.jar" />
+- </path>
+-
+ <target name="run" depends="compile">
+ <java classname="net.sf.jabref.plugin.util.CodeGenerator" fork="true">
+- <classpath refid="classpath" />
+ </java>
+ </target>
+
+@@ -52,12 +42,11 @@
+ <mkdir dir="${build}" />
+ <javac debug="on" deprecation="on" destdir="${build}" source="1.5" target="1.5">
+ <src path="${src}" />
+- <classpath refid="classpath" />
+ </javac>
+ </target>
+
+ <!-- Jars up project -->
+- <target name="jars" depends="compile, unjarlib">
++ <target name="jars" depends="compile">
+ <jar destfile="${jar}.jar">
+ <fileset dir="${build}" />
+ <fileset dir=".">
diff --git a/jpfcodegen.spec b/jpfcodegen.spec
new file mode 100644
index 0000000..f5b2c7a
--- /dev/null
+++ b/jpfcodegen.spec
@@ -0,0 +1,83 @@
+Name: jpfcodegen
+Version: 0.4
+Release: 3%{?dist}
+Summary: A tool for generating classes from JPF plug-ins
+
+Group: Development/Tools
+License: LGPLv3
+URL: http://page.mi.fu-berlin.de/oezbek/jpf/
+
+BuildArch: noarch
+# svn export https://jabref.svn.sourceforge.net/svnroot/jabref/tags/jpfcodegen-0.4
+# tar cvfj jpfcodegen-0.4.tbz jpfcodegen-0.4
+Source0: %{name}-%{version}.tbz
+# Fix the build to use system jars
+Patch0: %{name}-build.patch
+
+BuildRequires: jpackage-utils
+BuildRequires: java-devel >= 1:1.6.0
+BuildRequires: ant
+BuildRequires: jpf
+BuildRequires: velocity
+
+Requires: java >= 1:1.6.0
+Requires: jpackage-utils
+
+%package javadoc
+Summary: Javadoc for %{name}
+Group: Documentation
+Requires: jpackage-utils
+%description javadoc
+%{summary}.
+
+%description
+JPF Code Generator is a handy little tool that generates classes for
+accessing the attributes and extensions of JPF plug-ins from plugin.xml
+files. This has the advantage of providing a strongly typed access to the
+plug-in and simplifies working with plug-ins.
+
+
+%prep
+%setup -q
+%{__rm} -rf lib
+%patch0 -p1
+find tutorials -type f -exec sed -i 's/\r//' '{}' \;
+
+%build
+export CLASSPATH=`build-classpath jpf jpf-boot commons-logging velocity`
+ant jars
+
+# Generate the javadoc
+mkdir javadoc
+javadoc -d javadoc src/net/sf/jabref/plugin/util/*.java
+
+%install
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
+install -pm 644 JPFCodeGenerator-0.4.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+install -pm 644 JPFCodeGenerator-0.4-rt.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-rt.jar
+
+install -d -m 755 ${RPM_BUILD_ROOT}%{_javadocdir}/
+cp -r javadoc ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}
+
+%files
+%{_javadir}/*.jar
+%doc lgpl-3.0.txt index.html tutorials/
+
+%files javadoc
+%doc lgpl-3.0.txt
+%{_javadocdir}/%{name}
+
+
+%changelog
+* Fri Mar 23 2012 Mary Ellen Foster <mefoster at gmail.com> - 0.4-3
+- Add javadoc
+- Rename patch filename
+- Clean up install section
+- Fix line endings in tutorial files
+- Fix typo in description
+
+* Mon Feb 13 2012 Mary Ellen Foster <mefoster at gmail.com> - 0.4-2
+- Remove defattr from files section
+
+* Mon Jan 30 2012 Mary Ellen Foster <mefoster at gmail.com> - 0.4-1
+- Initial package
diff --git a/sources b/sources
index e69de29..889fe2b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f63f6173e32a4ebe2c77d982206a3ae8 jpfcodegen-0.4.tbz
More information about the scm-commits
mailing list