]>
Commit | Line | Data |
---|---|---|
7b5ca172 WF |
1 | %define kdeappsver 18.12.0 |
2 | %define qtver 5.9.0 | |
3 | %define kaname kbackup | |
4 | Summary: Kbackup | |
5 | Name: ka5-%{kaname} | |
6 | Version: 18.12.0 | |
7 | Release: 1 | |
8 | License: GPL v2+/LGPL v2.1+ | |
9 | Group: X11/Libraries | |
10 | Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
11 | # Source0-md5: d70346a12283130985edfa646a09ee55 | |
12 | URL: http://www.kde.org/ | |
13 | BuildRequires: Qt5Core-devel >= %{qtver} | |
14 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
15 | BuildRequires: Qt5Widgets-devel | |
16 | BuildRequires: cmake >= 2.8.12 | |
17 | BuildRequires: gettext-devel | |
18 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 | |
19 | BuildRequires: kf5-karchive-devel >= 5.46.0 | |
20 | BuildRequires: kf5-kdoctools-devel >= 5.46.0 | |
21 | BuildRequires: kf5-ki18n-devel >= 5.46.0 | |
22 | BuildRequires: kf5-kiconthemes-devel >= 5.46.0 | |
23 | BuildRequires: kf5-kio-devel >= 5.46.0 | |
24 | BuildRequires: kf5-knotifications-devel >= 5.46.0 | |
25 | BuildRequires: kf5-kwidgetsaddons-devel >= 5.46.0 | |
26 | BuildRequires: kf5-kxmlgui-devel >= 5.46.0 | |
27 | BuildRequires: qt5-build >= %{qtver} | |
28 | BuildRequires: rpmbuild(macros) >= 1.164 | |
29 | BuildRequires: shared-mime-info | |
30 | BuildRequires: tar >= 1:1.22 | |
31 | BuildRequires: xz | |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %description | |
35 | KBackup is an application that lets you back up any folders or files | |
36 | in a tar archive to a local folder, e.g. a locally mounted device like | |
37 | a ZIP drive, USB stick, etc. or a remote URL. | |
38 | ||
39 | Features | |
40 | ||
41 | - Using profile files with definitions for Folders and files to be | |
42 | included or excluded from the backup | |
43 | - The backup target can be either a locally mounted device like a ZIP | |
44 | drive, USB stick, etc. or any remote URL | |
45 | - Running automated backups without using a graphical user interface | |
46 | ||
47 | %prep | |
48 | %setup -q -n %{kaname}-%{version} | |
49 | ||
50 | %build | |
51 | install -d build | |
52 | cd build | |
53 | %cmake \ | |
54 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
55 | .. | |
56 | %{__make} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | %{__make} -C build install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | %find_lang %{kaname} --all-name --with-kde | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files -f %{kaname}.lang | |
69 | %defattr(644,root,root,755) | |
70 | %attr(755,root,root) %{_bindir}/kbackup | |
71 | %{_desktopdir}/org.kde.kbackup.desktop | |
72 | %{_iconsdir}/hicolor/16x16/apps/kbackup.png | |
73 | %{_iconsdir}/hicolor/16x16/mimetypes/text-x-kbp.png | |
74 | %{_iconsdir}/hicolor/22x22/actions/kbackup_cancel.png | |
75 | %{_iconsdir}/hicolor/22x22/actions/kbackup_runs.png | |
76 | %{_iconsdir}/hicolor/22x22/actions/kbackup_start.png | |
77 | %{_iconsdir}/hicolor/32x32/apps/kbackup.png | |
78 | %{_iconsdir}/hicolor/32x32/mimetypes/text-x-kbp.png | |
79 | %dir %{_datadir}/kxmlgui5/kbackup | |
80 | %{_datadir}/kxmlgui5/kbackup/kbackupui.rc | |
81 | %{_datadir}/metainfo/org.kde.kbackup.appdata.xml | |
82 | %{_datadir}/mime/packages/kbackup.xml |