3 %bcond_with tests # build with tests
4 %define kdeappsver 22.12.2
5 %define kframever 5.94.0
7 %define kaname filelight
12 License: GPL v2+/LGPL v2.1+
14 Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
15 # Source0-md5: da1d22be4737a141025f62b596f08c31
16 URL: http://www.kde.org/
17 BuildRequires: Qt5Core-devel >= %{qtver}
18 BuildRequires: Qt5Gui-devel >= 5.11.1
19 BuildRequires: Qt5Widgets-devel
20 BuildRequires: cmake >= 2.8.12
21 BuildRequires: gettext-devel
22 BuildRequires: kf5-extra-cmake-modules >= %{kframever}
23 BuildRequires: kf5-ki18n-devel >= %{kframever}
24 BuildRequires: kf5-kio-devel >= %{kframever}
25 BuildRequires: kf5-kxmlgui-devel >= %{kframever}
27 BuildRequires: qt5-build >= %{qtver}
28 BuildRequires: rpmbuild(macros) >= 1.164
29 BuildRequires: shared-mime-info
30 BuildRequires: tar >= 1:1.22
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Filelight allows you to understand exactly where your diskspace is
36 being used by graphically representating your filesystem as a set of
37 concentric segmented-rings.
39 %description -l pl.UTF-8
40 Filelight pozwala Ci zrozumieć gdzie dokładnie przestrzeń
41 dyskowa jest używana wyświetlając zestaw współśrodkowych wycinków koła
42 reprezentujących Twój system plików.
45 %setup -q -n %{kaname}-%{version}
52 %{!?with_tests:-DBUILD_TESTING=OFF} \
53 -DHTML_INSTALL_DIR=%{_kdedocdir} \
54 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
64 rm -rf $RPM_BUILD_ROOT
65 %ninja_install -C build
67 # not supported by glibc yet
68 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie
70 %find_lang %{kaname} --all-name --with-kde
73 rm -rf $RPM_BUILD_ROOT
75 %files -f %{kaname}.lang
76 %defattr(644,root,root,755)
78 %attr(755,root,root) %{_bindir}/filelight
79 %{_desktopdir}/org.kde.filelight.desktop
80 %{_iconsdir}/hicolor/16x16/apps/filelight.png
81 %{_iconsdir}/hicolor/22x22/apps/filelight.png
82 #%%{_iconsdir}/hicolor/32x32/actions/views_filelight.png
83 %{_iconsdir}/hicolor/32x32/apps/filelight.png
84 %{_iconsdir}/hicolor/48x48/apps/filelight.png
85 %{_iconsdir}/hicolor/64x64/apps/filelight.png
86 %{_iconsdir}/hicolor/128x128/apps/filelight.png
87 %dir %{_datadir}/kxmlgui5/filelight
88 %{_datadir}/kxmlgui5/filelight/filelightui.rc
89 %{_datadir}/metainfo/org.kde.filelight.appdata.xml
90 %{_datadir}/qlogging-categories5/filelight.categories