File kfoldersync.spec of Package kfoldersync
#
# spec file for package kfoldersync
#
# Copyright © 2015 Lorenzo Porta (Vindex17) <vindex17@outlook.it>
#
# 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: kfoldersync
Version: 3.4.1
Release: 1
Summary: Folder synchronization and backup tool
License: GPL-2.0+
Group: Productivity/Archiving/Backup
Url: http://kde-apps.org/content/show.php/KFolderSync?content=164092
Source0: https://dl.opendesktop.org/api/files/download/id/1485353737/%{name}-%{version}.tar.xz
Source1: kfoldersync-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc7 gcc7-c++
BuildRequires: xz
BuildRequires: gettext
BuildRequires: extra-cmake-modules
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5ConfigWidgets)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5DBusAddons)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5ItemViews)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5WidgetsAddons)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(KF5XmlGui)
BuildRequires: update-desktop-files
%description
Folder synchronization and backup tool for KDE.
%lang_package
%prep
%setup -q
%build
export CC="gcc7"
export CXX="g++-7"
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%find_lang %name
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc COPYING.GPL3 README.md
%{_kf5_bindir}/%{name}
%attr(0644,root,root) %{_kf5_applicationsdir}/%{name}.desktop
%{_kf5_iconsdir}/*/*/*/*
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%changelog