| 1 | #
|
|---|
| 2 | # spec file for package luckybackup
|
|---|
| 3 | #
|
|---|
| 4 | # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|---|
| 5 | #
|
|---|
| 6 | # All modifications and additions to the file contributed by third parties
|
|---|
| 7 | # remain the property of their copyright owners, unless otherwise agreed
|
|---|
| 8 | # upon. The license for this file, and modifications and additions to the
|
|---|
| 9 | # file, is the same license as for the pristine package itself (unless the
|
|---|
| 10 | # license for the pristine package is not an Open Source License, in which
|
|---|
| 11 | # case the license is the MIT License). An "Open Source License" is a
|
|---|
| 12 | # license that conforms to the Open Source Definition (Version 1.9)
|
|---|
| 13 | # published by the Open Source Initiative.
|
|---|
| 14 |
|
|---|
| 15 | # Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|---|
| 16 | #
|
|---|
| 17 | Name: luckybackup
|
|---|
| 18 | Version: 0.5.0
|
|---|
| 19 | Release: 1
|
|---|
| 20 | Summary: A powerful, fast and reliable backup & sync tool
|
|---|
| 21 | License: GPL-3.0-or-later
|
|---|
| 22 | Group: Productivity/Archiving/Backup
|
|---|
| 23 | URL: http://luckybackup.sourceforge.net/
|
|---|
| 24 | Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|---|
| 25 | BuildRequires: pkgconfig
|
|---|
| 26 | BuildRequires: pkgconfig(Qt5Core)
|
|---|
| 27 | BuildRequires: pkgconfig(Qt5Gui)
|
|---|
| 28 | BuildRequires: pkgconfig(Qt5Network)
|
|---|
| 29 | BuildRequires: pkgconfig(Qt5Widgets)
|
|---|
| 30 | #Requires: polkit
|
|---|
| 31 | Requires: rsync
|
|---|
| 32 | %if 0%{?suse_version}
|
|---|
| 33 | BuildRequires: update-desktop-files
|
|---|
| 34 | %endif
|
|---|
| 35 |
|
|---|
| 36 | %description
|
|---|
| 37 | luckyBackup is an application that backs-up and/or synchronizes any directories
|
|---|
| 38 | with the power of rsync.
|
|---|
| 39 |
|
|---|
| 40 | It is simple to use, fast (transfers over only changes made and not all data),
|
|---|
| 41 | safe (keeps your data safe by checking all declared directories before
|
|---|
| 42 | proceeding in any data manipulation), reliable and fully customizable.
|
|---|
| 43 |
|
|---|
| 44 | %prep
|
|---|
| 45 | %setup -q
|
|---|
| 46 | # Fix permissions (fixes rpmlint errors "spurious-executable-perm" and "executable-docs")
|
|---|
| 47 | chmod 644 manual/index.html
|
|---|
| 48 |
|
|---|
| 49 | %build
|
|---|
| 50 | #export QMAKE_SH=$SHELL
|
|---|
| 51 | # do a fast qt build, as runmapsym and wmapsym is not needed here
|
|---|
| 52 | #export FAST_BUILD=1
|
|---|
| 53 | LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 54 |
|
|---|
| 55 | #qmake-qt5 QMAKE_CXXFLAGS+="%{optflags}" -config release luckybackup.pro
|
|---|
| 56 | qmake-qt5
|
|---|
| 57 | make %{?_smp_mflags}
|
|---|
| 58 |
|
|---|
| 59 | %install
|
|---|
| 60 | make INSTALL_ROOT=%{buildroot} install
|
|---|
| 61 |
|
|---|
| 62 | # Remove unneeded files
|
|---|
| 63 | rm -rf %{buildroot}%{_bindir}/translations/*.ts
|
|---|
| 64 | rm -rf %{buildroot}%{_datadir}/doc/luckybackup/
|
|---|
| 65 | rm -rf %{buildroot}%{_datadir}/menu/
|
|---|
| 66 |
|
|---|
| 67 | %if 0%{?suse_version}
|
|---|
| 68 | %suse_update_desktop_file -r %{name} Qt Utility Archiving
|
|---|
| 69 | %suse_update_desktop_file -r %{name}-su Qt Utility Archiving
|
|---|
| 70 | %endif
|
|---|
| 71 |
|
|---|
| 72 | %files
|
|---|
| 73 | %doc license/ manual/ readme/*
|
|---|
| 74 | #%dir %{_datadir}/polkit-1
|
|---|
| 75 | #%dir %{_datadir}/polkit-1/actions
|
|---|
| 76 | %{_bindir}/luckybackup.exe
|
|---|
| 77 | #%exclude %{_bindir}/luckybackup-pkexec
|
|---|
| 78 | #%{_datadir}/applications/luckybackup*.desktop
|
|---|
| 79 | %{_bindir}/
|
|---|
| 80 | %{_datadir}/pixmaps/luckybackup.*
|
|---|
| 81 | #%{_datadir}/polkit-1/actions/net.luckybackup.su.policy
|
|---|
| 82 | %{_mandir}/man8/luckybackup*8*
|
|---|
| 83 |
|
|---|
| 84 | %changelog
|
|---|