2002-10-20 19:55:16 +05:30
|
|
|
%define ver @VERSION@
|
|
|
|
%define rel @RELEASE@
|
|
|
|
%define prefix /usr
|
2003-05-21 06:01:13 +05:30
|
|
|
%define localstatedir /var/lib
|
2003-05-27 23:55:42 +05:30
|
|
|
# Ensure that internal RPM macros for configure & makeinstall
|
2003-05-21 06:01:13 +05:30
|
|
|
# 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
|
2003-12-02 16:02:05 +05:30
|
|
|
License: GPL
|
2002-10-20 19:55:16 +05:30
|
|
|
Group: Applications/Genealogy
|
|
|
|
Source: http://download.sourceforge.net/gramps/gramps-%{ver}.tar.gz
|
|
|
|
BuildRoot: /var/tmp/%{name}-%{version}-root
|
|
|
|
|
2003-05-21 06:01:13 +05:30
|
|
|
URL: http://gramps.sourceforge.net/
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2002-11-10 00:14:58 +05:30
|
|
|
Requires: python >= 2.2
|
|
|
|
Requires: gnome-python2 >= 1.99
|
|
|
|
Requires: gnome-python2-gconf >= 1.99
|
|
|
|
Requires: gnome-python2-canvas >= 1.99
|
2004-01-02 00:40:23 +05:30
|
|
|
Requires: gnome-python2-gnomevfs >= 1.99
|
2002-11-10 00:14:58 +05:30
|
|
|
Requires: pygtk2 >= 1.99
|
|
|
|
Requires: pygtk2-libglade >= 1.99
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2003-03-27 22:22:40 +05:30
|
|
|
BuildRequires: scrollkeeper >= @SCROLLKEEPER_BUILD_REQUIRED@
|
2002-10-20 19:55:16 +05:30
|
|
|
BuildRequires: automake >= 1.6
|
|
|
|
BuildRequires: autoconf >= 2.52
|
2003-05-21 06:14:53 +05:30
|
|
|
BuildRequires: rpm >= 4.1
|
2003-06-10 22:06:14 +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
|
2004-08-16 16:42:22 +05:30
|
|
|
System) is a GNOME based genealogy program supporting a Python
|
2002-10-20 19:55:16 +05:30
|
|
|
based plugin system.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
|
|
|
if [ ! -f configure ]; then
|
2003-05-21 06:01:13 +05:30
|
|
|
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
|
2003-05-21 06:01:13 +05:30
|
|
|
CFLAGS="$MYCFLAGS" %configure
|
2002-10-20 19:55:16 +05:30
|
|
|
fi
|
|
|
|
|
2003-05-28 00:03:21 +05:30
|
|
|
CFLAGS="$RPM_OPT_FLAGS" make
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2003-05-21 06:01:13 +05:30
|
|
|
%makeinstall
|
2004-08-16 16:42:22 +05:30
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
2003-06-10 22:06:14 +05:30
|
|
|
desktop-file-install --vendor gramps --delete-original \
|
|
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
|
--add-category Application \
|
|
|
|
--add-category Utility \
|
2004-08-16 16:42:22 +05:30
|
|
|
src/data/gramps.desktop
|
2003-05-21 06:01:13 +05:30
|
|
|
%find_lang gramps
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_localstatedir}/scrollkeeper/
|
2004-08-16 18:31:50 +05:30
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/mime/application
|
2004-08-16 16:42:22 +05:30
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/mime/{globs,magic,XMLnamespaces}
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2003-05-21 06:01:13 +05:30
|
|
|
%files -f gramps.lang
|
2002-10-20 19:55:16 +05:30
|
|
|
%defattr(-, root, root)
|
|
|
|
|
2003-12-02 20:02:25 +05:30
|
|
|
%doc AUTHORS COPYING COPYING-DOCS ChangeLog FAQ INSTALL NEWS README TODO
|
2003-05-21 06:01:13 +05:30
|
|
|
%doc %{_mandir}/man1/*
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
%{prefix}/bin/gramps
|
|
|
|
|
2003-06-10 22:06:14 +05:30
|
|
|
%{_datadir}/applications/*
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2003-09-19 15:33:28 +05:30
|
|
|
%{_datadir}/gramps
|
2003-05-21 06:01:13 +05:30
|
|
|
%{_datadir}/omf/gramps
|
2004-08-16 16:42:22 +05:30
|
|
|
%{_datadir}/mime-info/*
|
|
|
|
%{_datadir}/icons/gnome/48x48/mimetypes/*
|
|
|
|
%{_sysconfdir}/gconf/schemas/gramps.schemas
|
|
|
|
%{_datadir}/application-registry/gramps.applications
|
|
|
|
%{_datadir}/mime/packages/gramps.xml
|
2003-03-27 22:22:40 +05:30
|
|
|
|
|
|
|
%post
|
2004-08-16 16:42:22 +05:30
|
|
|
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
|
|
|
|
gconftool-2 --makefile-install-rule \
|
|
|
|
%{_sysconfdir}/gconf/schemas/gramps.schemas > /dev/null
|
2004-08-16 18:35:52 +05:30
|
|
|
/usr/bin/update-desktop-database %{_datadir}/applications &> /dev/null
|
2003-05-21 06:01:13 +05:30
|
|
|
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
|
2003-03-27 22:22:40 +05:30
|
|
|
|
|
|
|
%postun
|
2003-05-21 06:01:13 +05:30
|
|
|
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
%changelog
|
2003-12-02 16:02:05 +05:30
|
|
|
* Tue Dec 2 2003 Tim Waugh <twaugh@redhat.com>
|
2003-12-02 16:03:00 +05:30
|
|
|
- More docs.
|
2003-12-02 16:02:05 +05:30
|
|
|
- Change Copyright: to License:.
|
|
|
|
|
2003-09-19 15:28:50 +05:30
|
|
|
* Fri Sep 19 2003 Tim Waugh <twaugh@redhat.com>
|
2003-09-19 15:33:28 +05:30
|
|
|
- Own %%{_datadir/gramps directory.
|
2003-09-19 15:28:50 +05:30
|
|
|
- Ship %%{_libdir}/gramps.
|
2003-05-21 06:01:13 +05:30
|
|
|
* 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-27 22:22:40 +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
|