File kraft.spec of Package kraft
#
# spec file for package kraft
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2007-2011 Klaas Freitag <freitag@kde.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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: kraft
Url: http://volle-kraft-voraus.de
Version: 0.59
Release: 0
Summary: KDE software to manage office documents in the office
License: GPL-2.0+ and LGPL-2.1+
Group: Productivity/Office/Other
Source0: kraft-%{version}.tar.xz
Patch0: fix_dup_custom_targets.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
Requires: kdepim4-runtime
Requires: libqt4-sql-sqlite
Requires: python-pypdf
Requires: sqlite3
%kde4_runtime_requires
%kde4_pimlibs_requires
%kde4_akonadi_requires
BuildRequires: libctemplate-devel
BuildRequires: libkde4-devel
BuildRequires: libkdepimlibs4-devel
BuildRequires: update-desktop-files
%endif
%if 0%{?fedora_version}
Requires: kdepim-runtime
Requires: pyPdf
Requires: qt >= 4.7
Requires: qt-x11 >= 4.7
Requires: sqlite
BuildRequires: ctemplate-devel
BuildRequires: kdelibs-devel
BuildRequires: kdepimlibs-devel
%endif
Requires: python-reportlab
%description
Kraft is KDE software to help to create and manage office documents such as
offers and invoices in the small enterprise.
It supports easy document creation, templates with calculation, customer management
through the KDE addressbook, highly configurable PDF output and more.
See the website http://volle-kraft-voraus.de for more information.
%prep
%setup -q
%patch0 -p1
%build
mkdir build
pushd build
%cmake_kde4 ..
make %{?_smp_mflags}
popd
%install
cd build
%make_install
cd ..
%find_lang %{name}
chmod 755 %{buildroot}%{_datadir}/kde4/apps/kraft/tools/erml2pdf.py
%if %{?suse_version:1}0
%suse_update_desktop_file %{name} Office Finance
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files -f %{name}.lang
%files
%defattr(-,root,root)
%{_bindir}/kraft
%{_bindir}/findcontact
%{_datadir}/applications/kde4/kraft.desktop
%{_datadir}/icons/*/*/*/*.png
%{_datadir}/kde4/
%if 0%{?fedora_version}
%{_datadir}/config.kcfg/databasesettings.kcfg
%{_datadir}/config.kcfg/kraftsettings.kcfg
%else
%endif
%doc AUTHORS COPYING README Releasenotes.txt TODO
%changelog