File gramps.spec of Package gramps

#
# spec file for package gramps
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Dominique Leuenberger, Amsterdam, Netherlands.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           gramps
Version:        3.3.0
%define _version 3.3.0-1
Release:        1
# FIXME: missing recommends because of missing packages: python-exiv2, osm-gps-map
License:        GPLv2+
Summary:        Genealogical Research Software
Url:            http://www.gramps-project.org/
Group:          Productivity/Other
Source:         http://downloads.sourceforge.net/project/gramps/Stable/3.3.0/%{name}-%{_version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  intltool
# For directory ownership
BuildRequires:  gnome-icon-theme
BuildRequires:  python-gtk-devel
BuildRequires:  update-desktop-files
Requires:       gnome-icon-theme
Requires:       python-gtk
Requires:       xdg-utils
Recommends:     %{name}-lang
Recommends:     graphviz
Recommends:     python-gtkspell
Recommends:     python-webkitgtk
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Gramps gives you the ability to record the many details of an
individual's life as well as the complex relationships between
various people, places and events. All of your research is kept
organized, searchable and as precise as you need it to be.

%lang_package
%prep
%setup -q

%build
%configure --disable-mime-install
%__make %{?_smp_mflags}

%install
%make_install
# Application Registry is obsolete since GNOME 2.8.
rm -r %{buildroot}%{_datadir}/application-registry
rm -r %{buildroot}%{_datadir}/mime-info
%suse_update_desktop_file -r -G "Genealogical Research" %{name} Education Science
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%icon_theme_cache_post gnome
%mime_database_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%icon_theme_cache_postun gnome
%mime_database_postun
%endif

%files
%defattr (-,root,root)
%doc AUTHORS COPYING FAQ NEWS README
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/gnome/*/mimetypes/gnome-mime-application-x-gedcom.*
%{_datadir}/icons/gnome/*/mimetypes/gnome-mime-application-x-geneweb.*
%{_datadir}/icons/gnome/*/mimetypes/gnome-mime-application-x-%{name}*.*
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.*
# We can't really move the localized manpages to the lang package, since they'd
# create a conflict between the lang subpackage and bundles
%lang(cs) %{_mandir}/cs/man1/%{name}.*
%lang(fr) %{_mandir}/fr/man1/%{name}.*
%lang(nl) %{_mandir}/nl/man1/%{name}.*
%lang(pl) %{_mandir}/pl/man1/%{name}.*
%lang(sv) %{_mandir}/sv/man1/%{name}.*
# man doesn't provide those directories, so we have to own them
%lang(cs) %dir %{_mandir}/cs
%lang(cs) %dir %{_mandir}/cs/man1
%lang(nl) %dir %{_mandir}/nl
%lang(nl) %dir %{_mandir}/nl/man1
%lang(pl) %dir %{_mandir}/pl
%lang(pl) %dir %{_mandir}/pl/man1
%lang(sv) %dir %{_mandir}/sv
%lang(sv) %dir %{_mandir}/sv/man1

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by