Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 147 lines (112 sloc) 4.547 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
# $Id$
# Authority: dag
# Upstream: Laurent Protois <laurent,protois$free,fr>

%define desktop_vendor rpmforge
%define _localstatedir /var/lib

Summary: Genealogical Research and Analysis Management Programming System
Name: gramps
Version: 2.2.8
Release: 2%{?dist}
License: GPL
Group: Applications/Editors
URL: http://gramps.sourceforge.net/

Source: http://dl.sf.net/gramps/gramps-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: autoconf >= 2.52, automake >= 1.6, scrollkeeper >= 0.1.4
BuildRequires: gnome-python2-canvas, gnome-python2-gconf
BuildRequires: pygtk2, pygtk2-libglade, gettext, pkgconfig
BuildRequires: desktop-file-utils, gnome-doc-utils, intltool, perl(XML::Parser)

Requires(post): scrollkeeper
Requires: python >= 2.2, gnome-python2-canvas, gnome-python2-gconf
Requires: pygtk2, pygtk2-libglade

%description
gramps (Genealogical Research and Analysis Management Programming
System) is a GNOME based genealogy program supporting a Python
based plugin system.

%prep
%setup

%build
%configure --enable-packager-mode
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%makeinstall \
GNOME_DATADIR="%{buildroot}%{_datadir}"
%find_lang %{name}

%{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
desktop-file-install --delete-original \
--vendor %{desktop_vendor} \
--add-category X-Red-Hat-Base \
--add-category Application \
--add-category Utility \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/gramps.desktop

### Clean up buildroot
%{__rm} -rf %{buildroot}%{_localstatedir}/scrollkeeper/

%post
export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)"
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null
scrollkeeper-update -q || :
/usr/bin/update-mime-database %{_datadir}/mime &>/dev/null || :
/usr/bin/update-desktop-database -q || :

%postun
scrollkeeper-update -q || :
/usr/bin/update-mime-database %{_datadir}/mime &>/dev/null || :
/usr/bin/update-desktop-database -q || :

%clean
%{__rm} -rf %{buildroot}

%files -f %{name}.lang
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING* FAQ INSTALL NEWS README TODO
%doc %{_mandir}/man1/gramps.1*
%{_sysconfdir}/gconf/schemas/gramps.schemas
%{_bindir}/gramps
%{_datadir}/application-registry/gramps.applications
%{_datadir}/applications/%{desktop_vendor}-gramps.desktop
%{_datadir}/gramps/
%{_datadir}/pixmaps/gramps.png
%{_datadir}/icons/gnome/48x48/mimetypes/*.png
%{_datadir}/icons/gnome/scalable/mimetypes/*.svg
%{_datadir}/mime-info/gramps.*
%{_datadir}/mime/packages/gramps.xml
%{_datadir}/omf/gramps/
%{_datadir}/gnome/help/gramps/

%changelog
* Mon Jun 25 2007 Dries Verachtert <dries@ulyssis.org> - 2.2.8-2
- Added the pkgconfig buildrequirement, thanks to Jorrit Jorritsma.

* Mon May 28 2007 Dries Verachtert <dries@ulyssis.org> - 2.2.8-1
- Updated to release 2.2.8.

* Mon Jan 29 2007 Dries Verachtert <dries@ulyssis.org> - 2.2.5-1
- Updated to release 2.2.5.

* Mon Nov 27 2006 Dries Verachtert <dries@ulyssis.org> - 2.2.3-1
- Updated to release 2.2.3.

* Sat May 06 2006 Dries Verachtert <dries@ulyssis.org> - 2.0.11-1
- Updated to release 2.0.11.

* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 2.0.10-1.2
- Rebuild for Fedora Core 5.

* Sun Mar 12 2006 Dries Verachtert <dries@ulyssis.org> - 2.0.10-1
- Updated to release 2.0.10.

* Sun Jan 15 2006 Dag Wieers <dag@wieers.com> - 2.0.9-2
- Fixed mime and desktop installation.

* Fri Dec 16 2005 Dries Verachtert <dries@ulyssis.org> - 2.0.9-1
- Updated to release 2.0.9.

* Sun Apr 04 2004 Dag Wieers <dag@wieers.com> - 1.0.2-1
- Updated to release 1.0.2.

* Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 1.0.1-0
- Updated to release 1.0.1.

* Mon Dec 08 2003 Dag Wieers <dag@wieers.com> - 0.98-0
- Updated to release 0.98.

* Tue Oct 07 2003 Dag Wieers <dag@wieers.com> - 0.9.5-0
- Updated to release 0.9.5.

* Tue Sep 30 2003 Dag Wieers <dag@wieers.com> - 0.9.4-0
- Updated to release 0.9.4.

* Wed Jul 16 2003 Dag Wieers <dag@wieers.com> - 0.9.3-0
- Updated to release 0.9.3.

* Tue Jun 03 2003 Dag Wieers <dag@wieers.com> - 0.9.2-0
- Updated to release 0.9.2.

* Mon Apr 21 2003 Dag Wieers <dag@wieers.com> - 0.9.1-0
- Updated to release 0.9.1.

* Mon Feb 24 2003 Dag Wieers <dag@wieers.com> - 0.9.0-0
- Updated to release 0.9.0.

* Sun Feb 16 2003 Dag Wieers <dag@wieers.com> - 0.8.1-0
- Initial package. (using DAR)
Something went wrong with that request. Please try again.