Changes

Jump to: navigation, search

Fedora RPM

144 bytes added, 00:38, 1 October 2021
no edit summary
{{languages|Fedora RPM}}{{out of datestub}}
The [[installation]] page details how to download and install a working version of '''Gramps''' to your operating system of choice. For most users...
yum install gramps
will be all that is needed for the [httphttps://fedoraproject.org/wiki/ fedoraFedora] distribution. This page details a different method and is for those users wanting an alternative version of Gramps, this may be to test a SVN version or to install the latest stable version.
= Development rpm RPM =It may be possible that next to the standard Fedora rpm RPM there's a newer version available for development testing.
Assuming you have an existing version of Gramps installed, you can try to install from the following repositories:
For Fedora versions 6 and older, the development repository is called '''extras-development'''.
= To build the rpm RPM from source =
An alternative approach to installing the binary RPM is to build the package from source, this will build Gramps using the package versions that you have installed. For this, you need the Gramps source kit and a so called '''SPEC''' file. It is usually easiest to download the most recent Gramps source RPM (SRPM) from the Fedora repositories, extract the SPEC file, adjust it for the new version, and try to build a new RPM.
Run '''rpmdev-setuptree''' . This will silently create the 'rpmbuild/' tree in the users home directory (instead of using ''usr/src/redhat'')
Download the most recent source rpm RPM from the Fedora repository, and install it.
rpm -iv gramps-XXX.src.rpm
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
More information on the SPEC file can be found in the next section, 'To build an rpm RPM from SVN'.
Save the SPEC file and try to build the kit:
Missing dependencies: These dependencies may be related to the build environment (have you built packages from source, on this machine, before?)
In addition to the normal build tools, these additional packages are needed to build the gramps rpmRPM: desktop-file-utils, gettext, perl-XML-Parser, gnome-python2-canvas, gnome-python2-gconf, gnome-vfs2-devel, pygtk2-libglade, python-devel, scrollkeeper, and gnome-doc-utils
Build errors: such as ''unpackaged files'' etc: The remedy for any of these errors will vary depending on circumstances, ie; there are no easy answers. '''Read the error message carefully''', copy a relevant part of the message string, and search the net. The chances are very good that the problem has been encountered before and a solution exists. If that fails and you're still keen, try the [http://sourceforge.net/mail/?group_id=25770|gramps mailing lists.]
= To build an rpm RPM from SVN =
'''Caveat emptor:'''
*Some assumptions have been made here, the prime one being that you have any needed devel packages installed, and therefore a system that can actually build from source. If you don't have one - yet - then continue on and hopefully your system will give enough clues so that you can get to the final stage, and build an rpmRPM. ({{man menu|Ah! and please update this page to suit, or notify the mailing list}}).
*A secondary assumption is that your happy to install '''over''' your existing Gramps installation? This is the SVN (bleeding edge) package and things may break. The flip side to that problem is that once they're reported they'll be fixed and goodness will prevail!
*And with that in mind, '''backup''' your database first. '''Don't work on that which is irreplaceable.'''
To rpmbuild as non root
[http://fedoranews.org/tchung/rpmbuild/ HOWTO: How to create rpmbuild directory], and [http://myy.helia.fi/~karte/linux/doc/rpm-build-as-user.html RPM Building as a User]
 
* [https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-rpm-using.html 10.2. Using RPM] - CentOS
==See also==
* [[Linux:Build from source]]
* [[OpenSUSE RPM]]
[[Category:Developers/Installation]]
[[Category:Developers/Packaging]]
1,965
edits

Navigation menu