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

Last change on this file since 1842 was 1842, checked in by tellie, 2 years ago

spec: tea: Release version 62.1.2-1.oc00.

File size: 3.2 KB
Line 
1%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
2Name: luckybackup
3Version: 0.5.0
4Release: 2%{?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
56make %{?_smp_mflags}
57%endif
58
59%install
60#INSTALL_ROOT=%{buildroot} \
61%make_install DESTDIR=$RPM_BUILD_ROOT
62mkdir -p %{buildroot}%{_bindir}/
63mkdir -p %{buildroot}%{_datadir}/translations
64mkdir -p %{buildroot}%{_mandir}/man8/
65cp -p %{name}.exe %{buildroot}%{_bindir}/
66cp -p translations/*.qm %{buildroot}%{_datadir}/translations/
67cp -p manpage/%{name}.8 %{buildroot}%{_mandir}/man8/
68install -m 0755 -d %{buildroot}%{_datadir}/polkit-1/actions/
69install -m 0644 -p %{SOURCE1} %{buildroot}%{_datadir}/polkit-1/actions/
70
71# Remove unneeded files
72rm -rf %{buildroot}%{_datadir}/translations/*.ts
73rm -rf %{buildroot}%{_datadir}/doc/luckybackup/
74rm -rf %{buildroot}%{_datadir}/menu/
75
76%check
77%if !0%{?os2_version}
78desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-kde-su.desktop
79desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-gnome-su.desktop
80desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
81%endif
82
83%files
84%doc readme/README readme/changelog
85%license license/gpl.txt
86%if !0%{?os2_version}
87%{_bindir}/%{name}
88%{_datadir}/%{name}
89%{_datadir}/menu
90%{_datadir}/applications/%{name}*
91%{_datadir}/pixmaps/%{name}*
92%{_docdir}/%{name}
93%else
94%{_bindir}/%{name}.exe
95%endif
96%{_datadir}/polkit-1/actions/%{name}.policy
97%{_datadir}/man/man8/*.8.*
98%{_datadir}/translations/*.qm
99
100
101%changelog
102* Wed Oct 04 2023 Elbert Pol <elbert.pol@gmail.com> - 0.5.0-2
103- Put the translations files into the right directories
104
105* Sun Mar 14 2021 Elbert Pol <elbert.pol@gmail.com> - 0.5.0-1
106- Updated to latest version
107- Add os2 definitions to spec file
108- Update to latest Fedora spec
Note: See TracBrowser for help on using the repository browser.