File luckybackup.spec of Package luckybackup

#
# spec file for package luckybackup
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           luckybackup
Version:        0.5.0
Release:        0
Summary:        A backup and sync tool
License:        GPL-3.0-or-later
URL:            https://luckybackup.sourceforge.net/
Source0:        https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Widgets)
Requires:       polkit
Requires:       rsync

%description
luckyBackup is an application that backs-up and/or synchronizes any directories
with rsync.

It checks all declared directories before proceeding with any data
manipulation, and, by way of rsync, transfers only changes and not
all data.

%prep
%autosetup -p1

# Fix permissions (fixes rpmlint errors "spurious-executable-perm" and "executable-docs")
chmod 644 manual/index.html

%build
%qmake5 QMAKE_CXXFLAGS+="%{optflags}" -config release luckybackup.pro

%make_build

%install
%qmake5_install

# Remove unneeded files
rm -r %{buildroot}%{_datadir}/doc/luckybackup/

%files
%doc license/ manual/ readme/*
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions
%{_bindir}/luckybackup*
%{_datadir}/applications/luckybackup*.desktop
%{_datadir}/luckybackup/
%{_datadir}/pixmaps/luckybackup.*
%{_datadir}/polkit-1/actions/net.luckybackup.su.policy
%{_mandir}/man8/luckybackup*.8%{?ext_man}

%changelog
openSUSE Build Service is sponsored by