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 - 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 - 0.4-2 - Remove defattr from files section * Mon Jan 30 2012 Mary Ellen Foster - 0.4-1 - Initial package