source: spec/trunk/SPECS/luckybackup.spec@ 1567

Last change on this file since 1567 was 1417, checked in by tellie, 7 years ago

spec: luckybackup: Release version 0.4.9-2.

File size: 2.8 KB
Line 
1#%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
2Name: luckybackup
3Version: 0.4.9
4Release: 2%{?dist}
5Summary: A powerful, fast and reliable backup and sync tool
6
7Group: Applications/System
8License: GPLv3+
9URL: 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
12Source1: %{name}.policy
13
14BuildRequires: libqt4-devel
15#Buildrequires: desktop-file-utils
16Buildrequires: gcc
17#BuildRequires: c++
18#Requires: polkit
19
20%description
21luckyBackup is an application that backs-up and/or synchronizes any
22directories with the power of rsync.
23
24It is simple to use, fast (transfers over only changes made and not all data),
25safe (keeps your data safe by checking all declared directories before
26proceeding 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
39qmake
40#%make_build CFLAGS="$RPM_OPT_FLAGS"
41export QMAKE_SH=$SHELL
42# do a fast qt build, as runmapsym and wmapsym is not needed here
43export FAST_BUILD=1
44LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
45#TARGET_INSTALL_PATH="%{_bindir}/*"
46make %{?_smp_mflags}
47echo 686-OS/2-OS/2 > luckybackup.sym
48
49%install
50INSTALL_ROOT=%{buildroot} \
51 make install DESTDIR=%{buildroot}
52install -m 0755 -d %{buildroot}%{_datadir}/polkit-1/actions/
53install -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
61rm -rf D:/rpmbuild/BUILDROOT/luckybackup-0.4.9-1.i386/@unixroot/usr/bin.sym
62rm -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
Note: See TracBrowser for help on using the repository browser.