| 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
|
|---|
| 6 |
|
|---|
| 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
|
|---|
| 19 |
|
|---|
| 20 | %description
|
|---|
| 21 | luckyBackup is an application that backs-up and/or synchronizes any
|
|---|
| 22 | directories with the power of rsync.
|
|---|
| 23 |
|
|---|
| 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 ), reliable and fully customizable.
|
|---|
| 27 |
|
|---|
| 28 | %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
|
|---|
| 37 |
|
|---|
| 38 | %build
|
|---|
| 39 | qmake
|
|---|
| 40 | #%make_build CFLAGS="$RPM_OPT_FLAGS"
|
|---|
| 41 | export QMAKE_SH=$SHELL
|
|---|
| 42 | # do a fast qt build, as runmapsym and wmapsym is not needed here
|
|---|
| 43 | export FAST_BUILD=1
|
|---|
| 44 | LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 45 | #TARGET_INSTALL_PATH="%{_bindir}/*"
|
|---|
| 46 | make %{?_smp_mflags}
|
|---|
| 47 | echo 686-OS/2-OS/2 > luckybackup.sym
|
|---|
| 48 |
|
|---|
| 49 | %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/
|
|---|
| 54 |
|
|---|
| 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
|
|---|
| 59 |
|
|---|
| 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
|
|---|
| 63 |
|
|---|
| 64 | %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}/*
|
|---|
| 77 |
|
|---|
| 78 | %changelog
|
|---|
| 79 | * Wed May 23 2018 Elbert Pol <elbert.pol@gmail.com> - 0.4.9-2
|
|---|
| 80 | - Remove the polkit dependencie
|
|---|
| 81 | * Sun May 13 2018 Elbert Pol <elbert.pol@gmail.com> - 0.4.9-1
|
|---|
| 82 | - Initial build for OS2
|
|---|