Changes

Jump to: navigation, search

Fedora RPM

626 bytes removed, 10:10, 22 September 2008
To build an rpm from SVN
**Happy Bug Hunting!
If this is the first build on this machine then the following installation may be required, to install the build environment in the users directory, as described in the previous section.'''su -c 'yum install rpmdevtools''''
then login as a 'normal' user and run '''rpmdev-setuptree''' . This will silently create The following acts out the 'rpmbuild/' tree in build process for the users home directory (instead of using ''usr/src/redhat''imaginary)8. In addition the dependencies listed above (under 'Problems with the build' need to be installed. Once this is done the gramps build can proceed25 pre-release from SVN.
The following acts out the build process for the 2 svn co https://gramps.2svn.5 presourceforge.net/svnroot/gramps/branches/gramps8 mv gramps8 gramps-release from SVN8.25 && cd gramps-8.25 ./autogen.sh
If this fails with '''svn co httpswhich://gramps.svn.sourceforge.net/svnroot/gramps/branches/gramps22 ''' '''mv gramps2 grampsno gnome-2.2.5 && cd gramps-2.2.5''' '''./autogen.sh'''follow the advice and execute
If this fails with ''which: no gnome-autogen.sh '' follow the advice and execute ''' su -c 'yum -y install gnome-common''''
If it again fails, but with...
which I have so far ignored, with no ill effects.
The resulting directory now needs to be packaged as gramps-28.2.525.tar.gz
''' cd .. tar cvf - gramps-8.25 | gzip -f9 > gramps-8.25.tar.gz mv gramps-8.25.tar.gz ~/'''rpmbuild/SOURCES/ cd ~rpmbuild/ rpmbuild -bb SPECS/gramps.spec
'''tar cvf - An example gramps-2.2.5 | gzip -f9 > gramps-2spec is shown below.2This one works for 3.50.tar1 on Fedora 8 and 9, it may not work on other versions/releases - whatever.gz If it doesn't see above (ie: don't despair, go looking and try to solve the problem, if you succeed then modify the spec - both yours and the one on this page - to suit. If you don't succeed, then ask as per the suggestion above.)
'''mv gramps-2.2.5.tar.gz /home/<user>/rpmbuild/SOURCES/''' '''cd /home/<user>/rpmbuild/''' '''su -c 'rpmbuild -bb SPECS/gramps.spec'''' where gramps spec is the following file. But first a word about the spec file, this one works for 2.2.4 and 2.2.5 on fedora core 6, it may not work on other versions/releases - whatever. If it doesn't see above (ie: don't despair, go looking and try to solve the problem, if you succeed then modify the spec - both yours and the one on this page - to suit. If you don't succeed, then ask as per the suggestion above.)This spec file is a minor adaption of the one used by the fedora extras maintainers and has been extracted from the source file ''gramps-2.2.410-31.fc7fc9.src.rpm''. There may be It is worth looking for a more up todate file in a newer src package?packages, if available.
<pre>
</pre>
To install the succesful build, note the name of the noarch RPM that was written, and pass it to '''rpm -ivh''':
'''su sudo rpm -c 'yum localinstall /home/<user>ivh ~/rpmbuild/RPMS/noarch/gramps-2.2.5-1ZZZZ.noarch.rpm''''
or perhaps use localupdate? (see '''man yumZZZZ''') '''su -c 'yum localupdate /home/<user>/rpmbuild/RPMS/noarch/gramps-2will be something similar to 8.2.525-11mine.noarch.rpmfc9, depending on the actual content of the '''VersionTo bypass the signing process, ''and 'temporarily''Release' change the contents of ''/etc/yum.conf'' to disable (0) the gpgcheck.<pre>#gpgcheck=1gpgcheck=0</pre>and restore definitions from the SPEC file to its original state when finished.
= See also =
9
edits

Navigation menu