]>
Commit | Line | Data |
---|---|---|
7bc0881a | 1 | %define kdeappsver 21.12.0 |
3ffcea6b | 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} | |
7bc0881a | 7 | Version: 21.12.0 |
12b9f0db WF |
8 | Release: 1 |
9 | License: GPL v2+/LGPL v2.1+ | |
10 | Group: X11/Libraries | |
0355beac | 11 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
7bc0881a | 12 | # Source0-md5: fdca0d59ea8d48a9eb98df99c9e32fd3 |
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 | ||
d0449fe1 WF |
36 | %description -l pl.UTF-8 |
37 | Filelight pozwala Ci zrozumieć gdzie dokładnie przestrzeń | |
38 | dyskowa jest używana wyświetlając zestaw współśrodkowych wycinków koła | |
39 | reprezentujących Twój system plików. | |
40 | ||
12b9f0db WF |
41 | %prep |
42 | %setup -q -n %{kaname}-%{version} | |
43 | ||
44 | %build | |
45 | install -d build | |
46 | cd build | |
47 | %cmake \ | |
63d3ee0b | 48 | -G Ninja \ |
3ffcea6b | 49 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
12b9f0db WF |
50 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
51 | .. | |
63d3ee0b | 52 | %ninja_build |
12b9f0db WF |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
63d3ee0b | 56 | %ninja_install -C build |
12b9f0db WF |
57 | |
58 | %find_lang %{kaname} --all-name --with-kde | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files -f %{kaname}.lang | |
64 | %defattr(644,root,root,755) | |
65 | /etc/xdg/filelightrc | |
66 | %attr(755,root,root) %{_bindir}/filelight | |
67 | %{_desktopdir}/org.kde.filelight.desktop | |
68 | %{_iconsdir}/hicolor/16x16/apps/filelight.png | |
69 | %{_iconsdir}/hicolor/22x22/apps/filelight.png | |
f07d23fe | 70 | #%%{_iconsdir}/hicolor/32x32/actions/views_filelight.png |
12b9f0db WF |
71 | %{_iconsdir}/hicolor/32x32/apps/filelight.png |
72 | %{_iconsdir}/hicolor/48x48/apps/filelight.png | |
73 | %{_iconsdir}/hicolor/64x64/apps/filelight.png | |
f07d23fe | 74 | %{_iconsdir}/hicolor/128x128/apps/filelight.png |
12b9f0db WF |
75 | %dir %{_datadir}/kxmlgui5/filelight |
76 | %{_datadir}/kxmlgui5/filelight/filelightui.rc | |
f07d23fe | 77 | %{_datadir}/metainfo/org.kde.filelight.appdata.xml |
0355beac | 78 | %{_datadir}/qlogging-categories5/filelight.categories |