File synkron.spec of Package synkron1.6.3
#
# spec file for package synkron
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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: synkron
Version: 1.6.3
Release: 0
Summary: An Open Source Folder Synchroniser
License: GPLv2+
Url: http://synkron.sourceforge.net/
Group: Productivity/Archiving/Backup
Source0: Synkron-%{version}-src.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: libqt5-qtbase-devel
BuildRequires: libqt5-qttools
BuildRequires: libqt5-linguist
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%description
Synkron is an application for folder synchronisation that allows you to
configure your synchronisations in detail. Despite having many features, the
user interface of Synkron is very user-friendly and easy to use.
Synkron is able to synchronise multiple folders at once, analyse folders before
sync, restore overwritten or deleted files, plan synchronisations and much
more.
%prep
%setup -q -n Synkron-%{version}-src
# Fix rpmlint warning about "wrong-file-end-of-line-encoding"
sed -i 's/\r//' readme.txt
%build
qmake-qt5 --version
lrelease-qt5 Synkron.pro
qmake-qt5 QMAKE_CXXFLAGS+="%{optflags}" -config release Synkron.pro
make %{?_smp_mflags}
%install
install -Dm 0755 synkron %{buildroot}%{_bindir}/synkron
install -Dm 0644 images/Synkron16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/synkron.png
install -Dm 0644 images/Synkron48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/synkron.png
install -Dm 0644 images/Synkron128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/synkron.png
%if 0%{?suse_version}
%suse_update_desktop_file -c synkron Synkron "Folder Synchroniser" synkron synkron Qt Utility Archiving
%endif
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc gpl.txt readme.txt
%{_bindir}/synkron
%{_datadir}/applications/synkron.desktop
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/*x*
%dir %{_datadir}/icons/hicolor/*x*/apps
%{_datadir}/icons/hicolor/*x*/apps/synkron.png
%changelog