File skrooge.spec of Package skrooge

#
# spec file for package skrooge
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2008 - 2012 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/
#


Name:           skrooge
Version:        2.11.0
Release:        0
Summary:        A Personal Finance Management Tool
License:        GPL-3.0
Group:          Productivity/Office/Finance
Url:            http://www.skrooge.org/
Source:         %{name}-%{version}.tar.xz
BuildRequires:  breeze5-icons
BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
BuildRequires:  grantlee5-devel
BuildRequires:  kactivities5-devel
BuildRequires:  karchive-devel
BuildRequires:  kcompletion-devel
BuildRequires:  kconfig-devel
BuildRequires:  kconfigwidgets-devel
BuildRequires:  kcoreaddons-devel
BuildRequires:  kdelibs4support-devel
BuildRequires:  kdesignerplugin-devel
BuildRequires:  kdoctools-devel
BuildRequires:  ki18n-devel
BuildRequires:  kiconthemes-devel
BuildRequires:  kio-devel
BuildRequires:  kitemviews-devel
BuildRequires:  kjobwidgets-devel
BuildRequires:  knewstuff-devel
BuildRequires:  knotifyconfig-devel
BuildRequires:  kparts-devel
BuildRequires:  krunner-devel
BuildRequires:  kwallet-devel
BuildRequires:  kwidgetsaddons-devel
BuildRequires:  kwindowsystem-devel
BuildRequires:  kxmlgui-devel
BuildRequires:  libQt5WebKitWidgets-devel
BuildRequires:	libQt5Sql-private-headers-devel
BuildRequires:  libofx-devel
BuildRequires:  libqca-qt5-devel
BuildRequires:  libqt5-qtbase-devel
BuildRequires:  libqt5-qtsvg-devel
BuildRequires:  libqt5-qttools-devel
BuildRequires:  libxslt-tools
BuildRequires:  sqlite-devel
BuildRequires:	sqlcipher-devel
Recommends:     %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1320
BuildRequires:  libqt5-qtscript-devel
%else
BuildRequires:  libQt5Script-devel
%endif

%description
Skrooge allows you to manage your personal finances,
powered by KDE. Thanks to its many features, it is one of
the most powerful way to enter, follow, and analyze your
expenses.

%lang_package

%prep
%setup -q

%build
%cmake_kf5
%make_jobs

%install
%kf5_makeinstall

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

%kf5_post_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc CHANGELOG COPYING README AUTHORS
%dir %{_kf5_iconsdir}/breeze
%dir %{_kf5_iconsdir}/breeze/actions
%dir %{_kf5_iconsdir}/breeze/actions/22
%dir %{_kf5_iconsdir}/breeze-dark
%dir %{_kf5_iconsdir}/breeze-dark/actions
%dir %{_kf5_iconsdir}/breeze-dark/actions/22
%dir %{_kf5_iconsdir}/hicolor/512x512
%dir %{_kf5_iconsdir}/hicolor/512x512/actions
%dir %{_kf5_iconsdir}/hicolor/512x512/apps
%dir %{_kf5_iconsdir}/hicolor/512x512/mimetypes
%dir %{_kf5_sharedir}/config.kcfg
%config %{_sysconfdir}/xdg/skrooge_*.knsrc
%{_kf5_bindir}/%{name}*
%{_kf5_iconsdir}/breeze*/actions/22/*.svgz
%{_kf5_iconsdir}/hicolor/*/*/%{name}*.svgz
%{_kf5_iconsdir}/hicolor/*/*/skg*.svgz
%{_kf5_iconsdir}/hicolor/*/actions/*.png
%{_kf5_iconsdir}/hicolor/*/apps/*.png
%{_kf5_iconsdir}/hicolor/*/mimetypes/*.png
%{_kf5_iconsdir}/hicolor/*/mimetypes/*.svgz
%{_kf5_kxmlguidir}/*
%{_kf5_libdir}/libskgbankgui.so.%{version}
%{_kf5_libdir}/libskgbankgui.so.2
%{_kf5_libdir}/libskgbankmodeler.so.%{version}
%{_kf5_libdir}/libskgbankmodeler.so.2
%{_kf5_libdir}/libskgbasegui.so.%{version}
%{_kf5_libdir}/libskgbasegui.so.2
%{_kf5_libdir}/libskgbasemodeler.so.%{version}
%{_kf5_libdir}/libskgbasemodeler.so.2
%{_kf5_notifydir}/%{name}.notifyrc
%{_kf5_plugindir}/%{name}_*.so
%{_kf5_plugindir}/designer/libskgbankguidesigner.so
%{_kf5_plugindir}/designer/libskgbaseguidesigner.so
%{_kf5_plugindir}/grantlee
%{_kf5_plugindir}/skg_*.so
%{_kf5_plugindir}/sqldrivers/libskgsqlcipher.so
%{_kf5_servicesdir}/org.kde.*
%{_kf5_servicetypesdir}/org.kde.*
%{_kf5_sharedir}/%{name}
%dir %{_kf5_appstreamdir}
%{_kf5_appstreamdir}/org.kde.%{name}.appdata.xml
%{_kf5_sharedir}/applications/org.kde.%{name}.desktop
%{_kf5_sharedir}/config.kcfg/skg*.kcfg
%{_kf5_sharedir}/mime/packages/x-skg.xml

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

%changelog
openSUSE Build Service is sponsored by