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

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

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

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

do_make %{?jobs:-j%jobs}

%install
. /etc/opt/kde3/common_options
do_make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
%suse_update_desktop_file -r krecipes Education Chemistry
%find_lang %{name}
kde_post_install

%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
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README TODO VERSION
%{_bindir}/%{name}
%{_datadir}/applications/kde/%{name}.desktop
%{_datadir}/apps/krecipes
%{_datadir}/icons/hicolor/*/apps/krecipes.png
%{_datadir}/icons/hicolor/*/mimetypes/krecipes_file.png
%{_datadir}/mimelnk/application/*.desktop

%files lang -f languages.filelist
%defattr(-,root,root)
%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

%changelog