Name: jdbm Version: 1.0 Release: 2%{dist} Summary: A transactional persistence engine for Java Group: Development/Libraries License: BSD URL: http://jdbm.sourceforge.net/ BuildArch: noarch # cvs -d:pserver:anonymous@jdbm.cvs.sourceforge.net:/cvsroot/jdbm login # cvs -z3 -d:pserver:anonymous@jdbm.cvs.sourceforge.net:/cvsroot/jdbm co -P -r V1_0 jdbm-1.0 # find jdbm-1.0/ -name "CVS" -type d -exec rm -rf {} \; # tar cJf jdbm-1.0.tar.xz jdbm-1.0/ Source0: jdbm-1.0.tar.xz Source1: http://repo1.maven.org/maven2/jdbm/jdbm/1.0/jdbm-1.0.pom # needs support for UTF-8 characters in source code Patch0: jdbm-enable-utf8-build.patch # example code contains non-UTF-8 characters Patch1: jdbm-fix-utf8-example.patch BuildRequires: jpackage-utils BuildRequires: java-devel BuildRequires: ant BuildRequires: ant-junit BuildRequires: junit Requires: java Requires: jpackage-utils %description A transactional persistence engine for Java. It aims to be for Java what GDBM is for Perl, Python, C, etcetera: a simple persistence engine that is lightweight and fast. %package javadoc Summary: Javadoc for %{name} Group: Documentation Requires: jpackage-utils %description javadoc %{summary}. %prep %setup -q -n %{name}-%{version} chmod -R go=u-w * find . -name "*.jar" -exec rm -f {} \; %patch0 -p1 %patch1 -p1 # Fix example code line endings sed -i 's/ //g' src/examples/FruitBasket.java %build ant -f src/build.xml main examples tests jar javadoc %check ant -f src/build.xml tests.run %install install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -pr build/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} %files %doc src/examples CHANGES.txt LICENSE.txt README.txt TODO.txt %{_javadir}/* %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %files javadoc %doc %{_javadocdir}/%{name} %changelog * Fri Aug 03 2012 Matt Spaulding 1.0-2 - Added missing jpackage-utils Require - Moved test run to %check section - Now using source code from cvs * Fri Jul 27 2012 Matt Spaulding 1.0-1 - Initial package build