Changeset 1695 for spec/trunk/SPECS/luckybackup.spec
- Timestamp:
- Apr 7, 2020, 8:01:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/luckybackup.spec
r1417 r1695 1 #%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} 2 Name: luckybackup 3 Version: 0.4.9 4 Release: 2%{?dist} 5 Summary: A powerful, fast and reliable backup and sync tool 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. 6 14 7 Group: Applications/System 8 License: GPLv3+ 9 URL: http://luckybackup.sourceforge.net/index.html 10 #Source0: http://downloads.sourceforge.net/project/%{name}/%{version}/source/%{name}-%{version}.tar.gz 11 %scm_source github http://github.com/TeLLie/%{name}-os2 master 12 Source1: %{name}.policy 13 14 BuildRequires: libqt4-devel 15 #Buildrequires: desktop-file-utils 16 Buildrequires: gcc 17 #BuildRequires: c++ 18 #Requires: polkit 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 19 35 20 36 %description 21 luckyBackup is an application that backs-up and/or synchronizes any 22 directorieswith the power of rsync.37 luckyBackup is an application that backs-up and/or synchronizes any directories 38 with the power of rsync. 23 39 24 It is simple to use, fast (transfers over only changes made and not all data), 25 safe (keeps your data safe by checking all declared directories before 26 proceeding in any data manipulation 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. 27 43 28 44 %prep 29 %scm_setup 30 #%setup -q 31 #sed -i 's,/usr/share/doc/luckybackup,%{_pkgdocdir},' luckybackup.pro 32 #sed -i 's,/usr/share/doc/luckybackup/license/gpl.html,%{_pkgdocdir}/license/gpl.html,' src/global.h 33 #sed -i 's,/usr/share/doc/luckybackup/manual/index.html,%{_pkgdocdir}/manual/index.html,' src/global.h 34 #sed -i 's,su-to-root -X -c,/usr/bin/pkexec,' menu/%{name}-gnome-su.desktop 35 #sed -i '/Fedora users/d' manual/index.html 36 #chmod a-x manual/index.html 45 %setup -q 46 # Fix permissions (fixes rpmlint errors "spurious-executable-perm" and "executable-docs") 47 chmod 644 manual/index.html 37 48 38 49 %build 39 qmake 40 #%make_build CFLAGS="$RPM_OPT_FLAGS" 41 export QMAKE_SH=$SHELL 50 #export QMAKE_SH=$SHELL 42 51 # do a fast qt build, as runmapsym and wmapsym is not needed here 43 export FAST_BUILD=152 #export FAST_BUILD=1 44 53 LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 45 #TARGET_INSTALL_PATH="%{_bindir}/*" 54 55 #qmake-qt5 QMAKE_CXXFLAGS+="%{optflags}" -config release luckybackup.pro 56 qmake-qt5 46 57 make %{?_smp_mflags} 47 echo 686-OS/2-OS/2 > luckybackup.sym48 58 49 59 %install 50 INSTALL_ROOT=%{buildroot} \ 51 make install DESTDIR=%{buildroot} 52 install -m 0755 -d %{buildroot}%{_datadir}/polkit-1/actions/ 53 install -m 0644 -p %{SOURCE1} %{buildroot}%{_datadir}/polkit-1/actions/ 60 make INSTALL_ROOT=%{buildroot} install 54 61 55 %check 56 #desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-kde-su.desktop 57 #desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-gnome-su.desktop 58 #desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop 62 # Remove unneeded files 63 rm -rf %{buildroot}%{_bindir}/translations/*.ts 64 rm -rf %{buildroot}%{_datadir}/doc/luckybackup/ 65 rm -rf %{buildroot}%{_datadir}/menu/ 59 66 60 # Remove unused files 61 rm -rf D:/rpmbuild/BUILDROOT/luckybackup-0.4.9-1.i386/@unixroot/usr/bin.sym 62 rm -rf %{_bindir}/%{name}*.ts 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 63 71 64 72 %files 65 %doc readme/README readme/changelog 66 %license license/gpl.txt 67 %{_bindir}/%{name}.exe 68 %{_bindir}/translations/*.* 69 %{_bindir}/%{name}.sym 70 #%{_datadir}/applications/%{name}-%{version} 71 %{_datadir}/polkit-1/actions/%{name}.policy 72 #%{_datadir}/%{name} 73 %{_datadir}/man/man8/*.8.* 74 #%{_datadir}/menu 75 #%{_datadir}/pixmaps/%{name}* 76 #%{_docdir}/%{name}/* 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* 77 83 78 84 %changelog 79 * Wed May 23 2018 Elbert Pol <elbert.pol@gmail.com> - 0.4.9-280 - Remove the polkit dependencie81 * Sun May 13 2018 Elbert Pol <elbert.pol@gmail.com> - 0.4.9-182 - Initial build for OS2
Note:
See TracChangeset
for help on using the changeset viewer.