I finally got round to setting up this spec, after putting my hand up a while back. where does the time go i wonder?
in order to build a distribution from the attached file, you'll need to set up your rpmbuild environment as described on the JPackage site:
the basics of this is: you set up a build root, and create a .rpmmacros file defining where that build root is.
there is a dependency in there for the jpackage-utils, and ant, so you'll need to install them from the jpackage repo.
once these are set up, you need to get the current sources. the spec file is a little hard coded to be particular about -1.2-dev as the version, this being tightly coupled with what the ant build scripts are going to produce during the actual build.
the best bet is to just get the sources from cvs:
cvs -d :pserver:firstname.lastname@example.org:/cvsroot/cayenne export -d cayenne-1.2-dev cayenne
this will dump the current sources into ./cayenne-1.2-dev
tar and gzip this directory:
$> tar -czf cayenne-1.2-dev.tar.gz ./cayenne-1.2-dev
now move it to the ~/rpm/SOURCES directory you created when you set up the build root.
next, save the attached cayenne-1.2-dev.spec file to ~/rpm/SPEC.
building is a matter of invoking:
$> rpmbuild -ba ~/rpm/SPECS/cayenne-1.2-dev.spec
all going to plan, you should end up with several rpm packages in ~/rpm/RPMS/noarch/ directory.
note you'll probably need rpm-devel package installed as well here in ourder to use the rpmbuild tool.