File skrooge.spec of Package skrooge4

# Copyright (c) 2008 - 2012 by Sascha Manns <saigkill@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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

# norootforbuild

Name: 	        skrooge	
Version:        1.11.0
Release:        1.0
Summary:        A Personal Finance Management Tool
License:        GPL-2.0+
Group:          Productivity/Office/Finance
Url:            http://www.skrooge.org/
Source:         %{name}-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  fdupes
BuildRequires:  gettext
BuildRequires:	kdesdk4-scripts
BuildRequires:  libkde4-devel >= 4.2
BuildRequires:  libofx-devel
BuildRequires:  libqca2-devel
BuildRequires:  libqt4-devel >= 4.5.0
BuildRequires:  libQtWebKit-devel
BuildRequires:	sqlite-devel
BuildRequires:  update-desktop-files
BuildRequires:  grantlee-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:	libxslt-tools
BuildRequires:  libkactivities-devel
Requires:       grantlee
Requires:	libqt4-sql-sqlite
Requires:	%{name}-lang = %{version}
Suggests:       %{name}-doc = %{version}
%kde4_runtime_requires
%kde4_akonadi_requires
%kde4_pimlibs_requires

%description
Skrooge is a personal finance management tool for KDE4, with
the aim of being highly intuitive, while providing powerful
functions such as graphics, persistent Undo/Redo, infinite
category levels, and much more...

%lang_package

%prep
%setup -q


%build
%cmake_kde4
%make_jobs

%install
%makeinstall

%suse_update_desktop_file skrooge Finance
%__install -Dm 0644 skrooge/hi128-apps-skrooge.png %{buildroot}%{_datadir}/pixmaps/skrooge.png

%find_lang %{name} --with-kde 
%fdupes -s %{buildroot}
%kde_post_install

%clean

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc CHANGELOG COPYING README AUTHORS TODO
%dir %{_libdir}/kde4/plugins/grantlee/
%dir %{_libdir}/kde4/plugins/grantlee/*
%dir %{_datadir}/akonadi
%dir %{_datadir}/akonadi/agents
%dir %{_datadir}/appdata
%dir %{_kde4_iconsdir}/hicolor/256x256
%dir %{_kde4_iconsdir}/hicolor/256x256/actions
%dir %{_kde4_iconsdir}/hicolor/256x256/apps
%dir %{_kde4_iconsdir}/hicolor/256x256/mimetypes
%dir %{_kde4_iconsdir}/hicolor/512x512
%dir %{_kde4_iconsdir}/hicolor/512x512/actions
%dir %{_kde4_iconsdir}/hicolor/512x512/apps
%dir %{_kde4_iconsdir}/hicolor/512x512/mimetypes
%{_bindir}/%{name}
%{_bindir}/%{name}convert
%{_bindir}/akonadi_%{name}akonadi_resource
%{_kde4_modulesdir}/skg_*.so
%{_kde4_modulesdir}/%{name}_*.so
%{_libdir}/libskgbankgui.so*
%{_libdir}/libskgbankmodeler.so*
%{_libdir}/libskgbasegui.so*
%{_libdir}/libskgbasemodeler.so*
%{_libdir}/kde4/plugins/grantlee/*/*
%{_kde4_iconsdir}/hicolor/*/actions/skg*
%{_kde4_iconsdir}/hicolor/*/actions/%{name}_*
%{_kde4_iconsdir}/hicolor/*/apps/skrooge*
%{_kde4_iconsdir}/hicolor/*/mimetypes/application-x-skg*
%{_kde4_applicationsdir}/*.desktop
%{_kde4_appsdir}/skg
%{_kde4_appsdir}/skg_*
%{_kde4_appsdir}/%{name}
%{_kde4_appsdir}/%{name}_*
%{_kde4_sharedir}/config.kcfg/skg*
%{_datadir}/kde4/config/%{name}_unit.knsrc
%{_kde4_servicesdir}/skg-plugin-*
%{_kde4_servicesdir}/%{name}-plugin-*
%{_kde4_servicesdir}/%{name}-import-*
%{_kde4_servicetypesdir}/skg-plugin.desktop
%{_kde4_servicetypesdir}/skrooge-import-plugin.desktop
%{_datadir}/mime/packages/x-skg.xml
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/kde4/config/skrooge_monthly.knsrc
%{_kde4_servicesdir}/plasma-runner-skrooge-add-operation.desktop
%{_kde4_servicesdir}/skgadvicedataengine.desktop
%{_datadir}/akonadi/agents/skroogeakonadiresource.desktop
%{_datadir}/appdata/skrooge.appdata.xml

%files lang -f %{name}.lang
%defattr(-, root, root)
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
%{_datadir}/doc/kde/HTML/*/skrooge/*

%changelog
openSUSE Build Service is sponsored by