Changeset 1756
- Timestamp:
- Mar 14, 2021, 2:43:34 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/luckybackup.spec
r1695 r1756 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. 1 %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} 2 Name: luckybackup 3 Version: 0.5.0 4 Release: 1%{?dist} 5 Summary: A powerful, fast and reliable backup and sync tool 14 6 15 # Please submit bugfixes or comments via https://bugs.opensuse.org/ 16 # 17 Name: luckybackup 18 Version: 0.5.0 19 Release: 1 20 S ummary: A powerful, fast and reliable backup & sync tool21 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: pkgconfig26 Build Requires: 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 7 License: GPLv3+ 8 URL: http://luckybackup.sourceforge.net/index.html 9 %if !0%{?os2_version} 10 Source0: http://downloads.sourceforge.net/project/%{name}/%{version}/source/%{name}-%{version}.tar.gz 11 %else 12 Source1: %{name}.policy 13 %scm_source github http://github.com/TeLLie/luckybackup-os2 master-os2 14 %endif 15 16 %if !0%{?os2_version} 17 BuildRequires: qt-devel 18 Buildrequires: desktop-file-utils 19 %else 20 BuildRequires: qt5-devel 21 %endif 22 Buildrequires: gcc-c++ 23 BuildRequires: make 24 %if !0%{?os2_version} 25 Requires: polkit 34 26 %endif 35 27 36 28 %description 37 luckyBackup is an application that backs-up and/or synchronizes any directories38 with the power of rsync.29 luckyBackup is an application that backs-up and/or synchronizes any 30 directories with the power of rsync. 39 31 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.32 It is simple to use, fast (transfers over only changes made and not all data), 33 safe (keeps your data safe by checking all declared directories before 34 proceeding in any data manipulation ), reliable and fully customizable. 43 35 44 36 %prep 37 %if !0%{?os2_version} 45 38 %setup -q 46 # Fix permissions (fixes rpmlint errors "spurious-executable-perm" and "executable-docs") 47 chmod 644 manual/index.html 39 sed -i 's,/usr/share/doc/luckybackup,%{_pkgdocdir},' luckybackup.pro 40 sed -i 's,/usr/share/doc/luckybackup/license/gpl.html,%{_pkgdocdir}/license/gpl.html,' src/global.h 41 sed -i 's,/usr/share/doc/luckybackup/manual/index.html,%{_pkgdocdir}/manual/index.html,' src/global.h 42 sed -i 's,su-to-root -X -c,/usr/bin/pkexec,' menu/%{name}-gnome-su.desktop 43 sed -i '/Fedora users/d' manual/index.html 44 %else 45 %scm_setup 46 chmod a-x manual/index.html 47 %endif 48 48 49 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 50 %if !0%{?os2_version} 51 %{qmake_qt4} 52 %make_build CFLAGS="$RPM_OPT_FLAGS" 53 %else 53 54 LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 54 55 #qmake-qt5 QMAKE_CXXFLAGS+="%{optflags}" -config release luckybackup.pro 56 qmake-qt5 55 qmake-qt5 PREFIX=/@unixroot/usr 57 56 make %{?_smp_mflags} 57 %endif 58 58 59 59 %install 60 make INSTALL_ROOT=%{buildroot} install 60 #INSTALL_ROOT=%{buildroot} \ 61 # make install DESTDIR=%{buildroot} 62 %make_install INSTALL_ROOT=%{buildroot} 63 install -m 0755 -d %{buildroot}%{_datadir}/polkit-1/actions/ 64 install -m 0644 -p %{SOURCE1} %{buildroot}%{_datadir}/polkit-1/actions/ 61 65 62 66 # Remove unneeded files … … 65 69 rm -rf %{buildroot}%{_datadir}/menu/ 66 70 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 71 %check 72 %if !0%{?os2_version} 73 desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-kde-su.desktop 74 desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-gnome-su.desktop 75 desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop 70 76 %endif 71 77 72 78 %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* 79 %doc readme/README readme/changelog 80 %license license/gpl.txt 81 %if !0%{?os2_version} 82 %{_bindir}/%{name} 83 %{_datadir}/applications/%{name}* 84 %{_datadir}/applications/%{name}* 85 %{_datadir}/%{name} 86 %{_datadir}/menu 87 %{_datadir}/pixmaps/%{name}* 88 %{_docdir}/%{name} 89 %else 90 %{_bindir}/%{name}.exe 91 %{_bindir}/translations/*.qm 92 %{_datadir}/polkit-1/actions/%{name}.policy 93 %{_datadir}/man/man8/*.8.* 94 %endif 83 95 84 96 %changelog 97 * Sun Mar 14 2021 Elbert Pol <elbert.pol@gmail.com> - 0.5.0-1 98 - Updated to latest version 99 - Add os2 definitions to spec file 100 - Update to latest Fedora spec
Note:
See TracChangeset
for help on using the changeset viewer.