]>
Commit | Line | Data |
---|---|---|
3ffcea6b WF |
1 | %define kdeappsver 19.04.1 |
2 | %define kframever 5.56.0 | |
f07d23fe | 3 | %define qtver 5.9.0 |
12b9f0db WF |
4 | %define kaname filelight |
5 | Summary: Filelight | |
6 | Name: ka5-%{kaname} | |
3ffcea6b | 7 | Version: 19.04.1 |
12b9f0db WF |
8 | Release: 1 |
9 | License: GPL v2+/LGPL v2.1+ | |
10 | Group: X11/Libraries | |
11 | Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
3ffcea6b | 12 | # Source0-md5: 5af0ceb983b40ebd929ea243fde2d589 |
12b9f0db WF |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
f07d23fe WF |
15 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
16 | BuildRequires: Qt5Widgets-devel | |
12b9f0db | 17 | BuildRequires: cmake >= 2.8.12 |
f07d23fe | 18 | BuildRequires: gettext-devel |
3ffcea6b WF |
19 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
20 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
21 | BuildRequires: kf5-kio-devel >= %{kframever} | |
22 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
63d3ee0b | 23 | BuildRequires: ninja |
12b9f0db WF |
24 | BuildRequires: qt5-build >= %{qtver} |
25 | BuildRequires: rpmbuild(macros) >= 1.164 | |
26 | BuildRequires: shared-mime-info | |
27 | BuildRequires: tar >= 1:1.22 | |
28 | BuildRequires: xz | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | Filelight allows you to understand exactly where your diskspace is | |
33 | being used by graphically representating your filesystem as a set of | |
34 | concentric segmented-rings. | |
35 | ||
36 | %prep | |
37 | %setup -q -n %{kaname}-%{version} | |
38 | ||
39 | %build | |
40 | install -d build | |
41 | cd build | |
42 | %cmake \ | |
63d3ee0b | 43 | -G Ninja \ |
3ffcea6b | 44 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
12b9f0db WF |
45 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
46 | .. | |
63d3ee0b | 47 | %ninja_build |
12b9f0db WF |
48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
63d3ee0b | 51 | %ninja_install -C build |
12b9f0db WF |
52 | |
53 | %find_lang %{kaname} --all-name --with-kde | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files -f %{kaname}.lang | |
59 | %defattr(644,root,root,755) | |
3ffcea6b | 60 | /etc/xdg/filelight.categories |
12b9f0db WF |
61 | /etc/xdg/filelightrc |
62 | %attr(755,root,root) %{_bindir}/filelight | |
63 | %{_desktopdir}/org.kde.filelight.desktop | |
64 | %{_iconsdir}/hicolor/16x16/apps/filelight.png | |
65 | %{_iconsdir}/hicolor/22x22/apps/filelight.png | |
f07d23fe | 66 | #%%{_iconsdir}/hicolor/32x32/actions/views_filelight.png |
12b9f0db WF |
67 | %{_iconsdir}/hicolor/32x32/apps/filelight.png |
68 | %{_iconsdir}/hicolor/48x48/apps/filelight.png | |
69 | %{_iconsdir}/hicolor/64x64/apps/filelight.png | |
f07d23fe | 70 | %{_iconsdir}/hicolor/128x128/apps/filelight.png |
12b9f0db WF |
71 | %dir %{_datadir}/kxmlgui5/filelight |
72 | %{_datadir}/kxmlgui5/filelight/filelightui.rc | |
f07d23fe | 73 | %{_datadir}/metainfo/org.kde.filelight.appdata.xml |