File krecipes.spec of Package krecipes
#
# spec file for package krecipes
#
# Copyright (c) 2014 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: krecipes
Version: 2.0.0
Release: 0
Summary: The KDE Cookbook
License: GPL-2.0+
Group: Productivity/Other
Url: https://www.kde.org/applications/utilities/krecipes/
Source: http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}-1.tar.xz
Source1: %{name}.xpm
Source2: %{name}.1
Source10: %{name}-rpmlintrc
BuildRequires: fdupes
BuildRequires: libkde4-devel
BuildRequires: libqimageblitz-devel
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: sqlite2-devel
BuildRequires: update-desktop-files
Recommends: %{name}-lang
Recommends: %{name}-doc
Requires(post): shared-mime-info
Requires(postun): shared-mime-info
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%lang_package
%description
Krecipes is a new Open Source project for an exciting world that is almost
forgotten in the Tux world: COOKING (yummy! ;-)
The goal of this projects WAS (note that we're talking about 2003) to create a
KDE Recipe Tool that:
* Can manage a recipe database with an easy to use interface
* Allows creation/removal of new ingredients and units
* Helps with diets, calculating amount of calories, vitamines, carbohydrates...
per recipe
* Creates shopping lists, and daily suggestions for a given diet type
* Is based on MySQL (1) so it could be possible to generate a KSN(2)
* Should be as flexible as possible to have the possibility to extend it in
future.
%package doc
Summary: Documentation of KRecipes
Group: Documentation/HTML
BuildArch: noarch
%description doc
This package contains the documentation for krecipes
%prep
%setup -q -n %{name}-%{version}
%build
%cmake_kde4 -d builddir
%make_jobs
%install
%kde4_makeinstall -C builddir
%fdupes %{buildroot}
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
install -Dm644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1
%suse_update_desktop_file %{name} -r Office Database
%kde_post_install
%find_lang %{name} %{name}.lang
%post
%{_kde4_bindir}/update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
%postun
%{_kde4_bindir}/update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%exclude %{_kde4_htmldir}/
%files
%defattr(-,root,root,-)
%doc AUTHORS BUGS ChangeLog COPYING COPYING.LIB README TODO scripts/
%{_datadir}/mime/packages/krecipes-mime.xml
%{_datadir}/pixmaps/%{name}.xpm
%{_mandir}/man1/%{name}.1*
%{_kde4_applicationsdir}/krecipes.desktop
%{_kde4_appsdir}/krecipes/
%{_kde4_bindir}/krecipes
%{_kde4_iconsdir}/hicolor/
%{_kde4_iconsdir}/oxygen/
%files doc
%defattr(-,root,root,-)
%doc %{_kde4_htmldir}/*/
%changelog