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 http://bugs.opensuse.org/
#



Name:           gourmet
Version:        0.15.9
Release:        1
License:        GPL-2.0
Summary:        Recipes Management Application
Url:            http://grecipe-manager.sourceforge.net
Group:          Productivity/Office/Other
Source:         gourmet-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM removed-python-shebang.patch sf#3275762 cbosdonnat@novell.com -- 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
%else
Requires:       python-gtkspell
%endif
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
%py_requires

%description
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.

%lang_package
%prep
%setup -q
%patch0 -p1

%build
python setup.py build

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

%find_lang "%{name}"

%check

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

%files
%defattr(-, root, root)
%doc README CHANGES PKG-INFO
%{_bindir}/gourmet
%{_datadir}/gourmet/
%{_datadir}/pixmaps/recbox.png
%{_datadir}/applications/gourmet.desktop
%{python_sitelib}/gourmet/
%{python_sitelib}/*.egg-info

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by