File gourmet.spec of Package gourmet

# spec file for package gourmet
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

Name:           gourmet
Version:        0.15.9
Release:        1
License:        GPLv2
Summary:        Recipes Management Application
Group:          Productivity/Office/Other
Source:         gourmet-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM removed-python-shebang.patch sf#3275762 -- cleaned shebang in modules
Patch0:         removed-python-shebang.patch
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  python-devel
BuildRequires:  update-desktop-files
Requires:       python-base
# The gnome python module is really used, so this is not about the meta-package
Requires:       python-gnome
%if 0%{?suse_version} <= 1130
# For gtkspell
Requires:       python-gnome-extras
Requires:       python-gtkspell
Requires:       python-gtk
Requires:       python-imaging
Requires:       python-poppler
Requires:       python-reportlab
Requires:       python-sqlalchemy
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Gourmet Recipe Manager is a recipe-organizer that allows you to collect, search,
organize, and browse your recipes. Gourmet can also generate shopping lists and
calculate nutritional information. It imports Mealmaster, MasterCook and KRecipe
files and exports PDFs, webpages and other formats.

%setup -q
%patch0 -p1

python build

python install --skip-build --root=%{buildroot} --prefix="%{_prefix}"
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/sv_SE/LC_MESSAGES/*
%fdupes %{buildroot}%{python_sitelib}
%fdupes -s %{buildroot}%{_datadir}
%suse_update_desktop_file -r "%{name}" Utility DesktopUtility

%find_lang "%{name}"


%{?buildroot:rm -rf %{buildroot}}

%defattr(-, root, root)

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by