LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File krecipes.spec of Package krecipes (Project KDE:KDE3)

# spec file for package krecipes (Version 0.98.2 aka. 1.0-beta2)
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
# 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.

%define fullver 1.0-beta2
%define _prefix	/opt/kde3

BuildRequires:	kdelibs3-devel update-desktop-files sqlite3-devel qt3-sqlite fdupes
BuildRequires:	libmysqlclient-devel qt3-mysql
#BuildRequires:	postgresql-devel qt3-postgresql

Name:		krecipes
Summary:	Recipes Database
Version:	0.98.2
Release:	0
License:	GPLv2
Group:		Productivity/Other
Source0:	%{name}-%{fullver}.tar.bz2
Patch0:     krecipes-gcc47.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
Url:		http://krecipes.sourceforge.net

Krecipes is a program that lets you to manage your recipes, create
shopping lists, choose a recipe based on available ingredients and plan
your menu/diet in advance.
%package lang
Summary:	Languages for Package Krecipes
Group:		System/Localization
Requires:	%{name} = %{version}
Provides:	%{name}-lang-all = %{version}
Supplements:	packageand(bundle-lang-other:%{name})

%description lang
Provides translations to the package krecipes.

%package doc
Summary:	Documentation for Krecipes
Group:		Documentation/HTML
Requires:	%{name} = %{version}

%description doc
This package contains documentation for Krecipes.

. /etc/opt/kde3/common_options
%setup -q -n %{name}-%{fullver}
%patch0 -p1

. /etc/opt/kde3/common_options
./configure $configkde --without-postgresql

do_make %{?jobs:-j%jobs}

. /etc/opt/kde3/common_options
%suse_update_desktop_file -r krecipes Education Chemistry
%find_lang %{name}

%fdupes %{buildroot}%{_datadir}

echo "%defattr (644, root, root, 755)" > languages.filelist
grep LC_MESSAGES %{name}.lang >> languages.filelist
echo "%defattr (644, root, root, 755)" > docs.filelist
grep doc %{name}.lang >> docs.filelist
sed -i 's|Latn|latin|g' languages.filelist
sed -i 's|Latn|latin|g' docs.filelist


%files lang -f languages.filelist
%dir %{_datadir}/locale/br
%dir %{_datadir}/locale/br/LC_MESSAGES
%dir %{_datadir}/locale/ka
%dir %{_datadir}/locale/ka/LC_MESSAGES
%dir %{_datadir}/locale/mt
%dir %{_datadir}/locale/mt/LC_MESSAGES
%dir %{_datadir}/locale/az
%dir %{_datadir}/locale/az/LC_MESSAGES
%dir %{_datadir}/locale/cy
%dir %{_datadir}/locale/cy/LC_MESSAGES
%dir %{_datadir}/locale/ga
%dir %{_datadir}/locale/ga/LC_MESSAGES
%dir %{_datadir}/locale/rw
%dir %{_datadir}/locale/rw/LC_MESSAGES

%files doc -f docs.filelist