File qdirstat.spec of Package qdirstat

#
# spec file for package qdirstat
#
# 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 https://bugs.opensuse.org/
#


Name:           qdirstat
Version:        @SERVICE@
Release:        0
Summary:        Qt-based directory statistics
License:        GPL-2.0-only
Group:          Productivity/File utilities
URL:            https://github.com/shundhammer/qdirstat
Source:         %{name}-%{version}.tar.xz
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(zlib)
%if 0%{?suse_version} < 1500
Requires(post): desktop-file-utils
Requires(pre):  desktop-file-utils
%endif

%description
QDirStat is a graphical application to show where your disk space has gone and
to help you to clean it up.
This is a Qt-only port of the old Qt3/KDE3-based KDirStat, now based on the
latest Qt 5. It does not need any KDE libs or infrastructure. It runs on every
X11-based desktop on Linux, BSD and other Unix-like systems.
QDirStat has a number of new features compared to KDirStat. To name a few:
 * Multi-selection in both the tree and the treemap.
 * Unlimited number of user-defined cleanup actions.
 * Properly show errors of cleanup actions (and their output, if desired).
 * File categories (MIME types) and their treemap color are now configurable.
 * Exclude rules for directories are easily configurable.
 * Desktop-agnostic; no longer relies on KDE or any other specific desktop.

%prep
%setup -q

%build
%qmake5
%make_jobs

%install
%qmake5_install

%if 0%{?suse_version} < 1500
%post
%icon_theme_cache_post
%desktop_database_post

%postun
%icon_theme_cache_postun
%desktop_database_postun
%endif

%files
%doc %{_defaultdocdir}
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g

%changelog
openSUSE Build Service is sponsored by