gramps/gramps.spec

108 lines
3.2 KiB
RPMSpec
Raw Normal View History

2003-10-15 09:25:54 +05:30
%define ver 0.98.0
%define rel 0.CVS20031013
2002-10-20 19:55:16 +05:30
%define prefix /usr
%define localstatedir /var/lib
# Ensure that internal RPM macros for configure & makeinstall
# will expand properly
%define _prefix %prefix
%define _localstatedir %localstatedir
2002-10-20 19:55:16 +05:30
Summary: Genealogical Research and Analysis Management Programming System.
Name: gramps
Version: %ver
Release: %rel
Copyright: GPL
Group: Applications/Genealogy
Source: http://download.sourceforge.net/gramps/gramps-%{ver}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-root
URL: http://gramps.sourceforge.net/
2002-10-20 19:55:16 +05:30
Requires: python >= 2.2
Requires: gnome-python2 >= 1.99
Requires: gnome-python2-gconf >= 1.99
Requires: gnome-python2-canvas >= 1.99
Requires: pygtk2 >= 1.99
Requires: pygtk2-libglade >= 1.99
2002-10-20 19:55:16 +05:30
2003-03-28 08:46:34 +05:30
BuildRequires: scrollkeeper >= 0.3.5
2002-10-20 19:55:16 +05:30
BuildRequires: automake >= 1.6
BuildRequires: autoconf >= 2.52
BuildRequires: rpm >= 4.1
2003-06-13 09:33:44 +05:30
BuildRequires: desktop-file-utils >= 0.2.92
2002-10-20 19:55:16 +05:30
%description
gramps (Genealogical Research and Analysis Management Programming
System) is a GNOME based genealogy program supporting a Python
based plugin system.
%prep
%setup
%build
if [ ! -f configure ]; then
CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS --prefix=%prefix \
--localstatedir=%localstatedir --bindir=%{_bindir} \
--mandir=%{_mandir} --libdir=%{_libdir} --datadir=%{_datadir} \
--includedir=%{_includedir} --sysconfdir=%{_sysconfdir}
2002-10-20 19:55:16 +05:30
else
CFLAGS="$MYCFLAGS" %configure
2002-10-20 19:55:16 +05:30
fi
CFLAGS="$RPM_OPT_FLAGS" make
2002-10-20 19:55:16 +05:30
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
2003-06-13 09:33:44 +05:30
mkdir $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor gramps --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
--add-category Application \
--add-category Utility \
$RPM_BUILD_ROOT%{_datadir}/gnome/apps/Applications/gramps.desktop
%find_lang gramps
rm -rf $RPM_BUILD_ROOT/%{_localstatedir}/scrollkeeper/
2002-10-20 19:55:16 +05:30
%clean
rm -rf $RPM_BUILD_ROOT
%files -f gramps.lang
2002-10-20 19:55:16 +05:30
%defattr(-, root, root)
2003-03-28 08:46:34 +05:30
%doc README COPYING TODO INSTALL COPYING-DOCS
%doc %{_mandir}/man1/*
2002-10-20 19:55:16 +05:30
%{prefix}/bin/gramps
2003-06-13 09:33:44 +05:30
%{_datadir}/applications/*
2002-10-20 19:55:16 +05:30
%{_datadir}/pixmaps/gramps.png
2003-09-21 01:26:27 +05:30
%{_libdir}/gramps
%{_datadir}/gramps
%{_datadir}/omf/gramps
2003-03-28 08:46:34 +05:30
%post
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
2003-03-28 08:46:34 +05:30
%postun
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
2002-10-20 19:55:16 +05:30
%changelog
2003-09-21 01:26:27 +05:30
* Fri Sep 19 2003 Tim Waugh <twaugh@redhat.com>
- Own %%{_datadir/gramps directory.
- Ship %%{_libdir}/gramps.
* Mon May 20 2003 Donald Peterson <dpeterson@sigmaxi.org>
- Override RPMs default of localstatedir to /var/lib..
This is done in accordance with GNOME and FHS compliance guidelines
(http://fedora.mplug.org/docs/rpm-packaging-guidelines.html)
- Use %find_lang macro to get NLS files
- Set %doc tags on appropriate files
- Remove temporary scrollkeeper-created files from install before packaging
to avoid rpm 4.1 complaints. (These aren't needed in the distribution.)
- Use default scrollkeeper-update scripts
2003-03-28 08:46:34 +05:30
* Mon Mar 24 2003 Alex Roitman <shura@alex.neuro.umn.edu>
- update scrollkeeper dependencies and add post and postun to enable install on a machine without scrollkeeper
2002-10-20 19:55:16 +05:30
* Fri Jun 14 2002 Donald Peterson <dpeterso@engr.ors.edu>
- add scrollkeeper dependencies and some file cleanup