Originally Posted by Ancurio
Where there lot's of steps involved in your packaging Asunder? Would you maybe mind posting them?
Short answer, no. Actually learning
spec files does take some time. Spec files can be very basic if the source code package permits it, or extremely complex, again, depending on the source code, and also depending as to whether or not you're designing your spec file to conform to strict Fedora Packaging Guidelines.
In the case of Asunder, you needn't know a danged thing about spec files, other than to make one simple edit to an already existing spec file for Asunder, which is what makes this package so simple. What you'd need to do:
Install the rpm packaging basic tools, as root:
yum install redhat-rpm-config rpm-build rpmdevtools rpmlint
Setup the rpm packaging build tree. Do the following in the top directory of your regular user account, as regular user:
The above will create a new directory "rpmbuild", including appropriate sub-directories for building packages.
Get the SRPM (*.src.rpm) of asunder-2.0. Two ways to do that:
1) yumdownloader --source asunder <== yumdownloader is part of the yum-utils package
2) download it from koji
In your case, grab the asunder-2.0-2.fc15.src.rpm package.
Use rpm to install the SRPM package, do so as regular user, NOT AS ROOT.
rpm -i Downloads/asunder-2.0-2.fc15.src.rpm
....assuming the package was in your ~/Downloads directory (change as necessary). Ignore warning messages about root.
That will put the asunder 2.0 source code tarball into ~/rpmbuild/SOURCES/
and the asunder 2.0 spec file into ~/rpmbuild/SPECS/
Delete the asunder 2.0 source code tarball in ~/rpmbuild/SOURCES/
"cp" or "mv" the asunder 2.1 source code tarball that you already have into ~/rpmbuild/SOURCES/ (do not upack it).
"cd" into ~/rpmbuild/SPECS/
Edit the line: Version: 2.0
to read Version: 2.1
Save and exit.
Let the package build begin:
rpmbuild -bb asunder.spec
Since you've already compiled the 2.1 source code, you should
already have all the needed deps for the compile. If it goes well and it doesn't bail out on some fatal error, you should see something like this at the end:
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/paulm/rpmbuild/BUILDROOT/asunder-2.1-1.fc12.i386
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.iQuCBB
+ umask 022
+ cd /home/paulm/rpmbuild/BUILD
+ cd asunder-2.1
+ rm -fr /home/paulm/rpmbuild/BUILDROOT/asunder-2.1-1.fc12.i386
+ exit 0
If you get that "+ exit 0" at the end, you're good to go. Find your asunder rpms in ~/rpmbuild/RPMS/arch
You can ditch the asunder-debuginfo package.