LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File k4dirstat.spec of Package k4dirstat5 (Project home:wolfi323:branches:KDE:Frameworks5)

#
# spec file for package k4dirstat
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           k4dirstat5
Version:        3.1.4
Release:        0
Summary:        Graphical Disk Usage Utility
License:        GPL-2.0-only AND LGPL-2.0-only
Group:          Productivity/File utilities
URL:            https://bitbucket.org/jeromerobert/k4dirstat/wiki/Home
Source0:        https://bitbucket.org/jeromerobert/k4dirstat/get/k4dirstat-%{version}.tar.bz2
BuildRequires:  kf5-filesystem
BuildRequires:  zlib-devel
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5DocTools)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5IconThemes)
BuildRequires:  cmake(KF5JobWidgets)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5Gui)
BuildRequires:  cmake(Qt5Widgets)
Recommends:     k4dirstat-lang = %{version}
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif

%description
K4DirStat (KDE Directory Statistics) is a small utility program that sums up
disk usage for directory trees, very much like the Unix 'du' command. It
displays the disk space used up by a directory tree, both numerically and
graphically.

%lang_package

%prep
%setup -q -n jeromerobert-k4dirstat-0fd87f361645

%build
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
%make_jobs

%install
%kf5_makeinstall -C build

%if 0%{?suse_version}
%suse_update_desktop_file -r k4dirstat Qt KDE Utility Filesystem
%endif

%kf5_find_lang k4dirstat %{name}.lang

%files
%license COPYING*
%doc AUTHORS CREDITS TODO
%doc %lang(en) %{_kf5_htmldir}/en/k4dirstat
%dir %{_kf5_configkcfgdir}
%{_kf5_applicationsdir}/k4dirstat.desktop
%{_kf5_bindir}/k4dirstat
%{_kf5_configkcfgdir}/k4dirstat.kcfg
%{_kf5_iconsdir}/hicolor/*/apps/k4dirstat.*
%{_kf5_mandir}/man1/k4dirstat.*

%files lang -f %{name}.lang
%exclude %{_kf5_htmldir}/en/k4dirstat

%changelog