amrein Messages: 278 Registered: August 2008 Location: France
Experienced Member
A spec file for Fedora an other rpm based distribution is already provided and doesn't need much attention.
The bigger question about upp.spec file is how to handle ultimate++ version without using variables.
At present, to compile a new snapshot tarball, you need to run something like this:
Most people using src.rpm are used to simply run this kind of command:
rpmbuild --rebuild upp-10577M-1.src.rpm
And so if someone wants to ease rpm build for everyone, he will need to make upp.spec less generic for each upp source snapshot.
How? Using templates I guess.
Those commands are enough to create a snapshot spec from the current upp.spec (without adding release history):
release=10577M
date=$(LC_TIME=En date '+%a %b %d %Y')
sed -e 's|%version|'$release'|g' -e 's|%date|'$date'|g' upp.spec > snapshot-upp.spec
Any upp tarball containing this snapshot-upp.spec file would be able to be compiled with a simple command "rpmbuild -tb upp-x11-src-$(release).tar.gz".
You can even build a src.rpm from it like this "rpmbuild -ts upp-x11-src-$(release).tar.gz" and compile the resulting src.rpm as previously said "rpmbuild --rebuild upp-$(release)-1.src.rpm"