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

Last change on this file since 1805 was 1768, checked in by tellie, 5 years ago

sqlitebrowser: Add spec file

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