LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kraft.spec of Package kraft (Project devel:openSUSE:Factory)

#
# spec file for package kraft
#
# Copyright (c) 2007-2011 Klaas Freitag <freitag@kde.org>
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
#


Name:           kraft
Url:            http://volle-kraft-voraus.de

Version:        0.50
Release:        1
License:        GPL-2.0 and LGPL-2.1
Summary:        KDE software to manage office documents in the office
Group:          Productivity/Office/Other
Source0:        kraft-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Requires:       python-pypdf
Requires:       python-reportlab
Requires:       sqlite3

BuildRequires:  libctemplate-devel
BuildRequires:  libkde4-devel
BuildRequires:  libkdepimlibs4-devel

%if 0%{?suse_version}
BuildRequires:  update-desktop-files

%kde4_runtime_requires
%kde4_pimlibs_requires
%kde4_akonadi_requires

%endif

%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

%build
  %cmake_kde4 -d build
  %make_jobs

%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
%defattr(-,root,root)
%if 0%{?fedora_version} >= 5
%else
%{_bindir}/kraft
%{_libdir}/libkraftcat*
%{_datadir}/applications/kde4/kraft.desktop
%{_datadir}/icons/*/*/*/*.png
%{_datadir}/kde4/
%endif

%doc AUTHORS COPYING INSTALL README Releasenotes.txt TODO

%changelog