File qtfm.spec of Package qtfm

# spec file for package qtfm
# 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

Name:           qtfm
Version:        6.1.9
Release:        0
Summary:        Qt File Manager
License:        GPL-2.0-or-later AND BSD-3-Clause
Group:          Productivity/File utilities
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)
Requires:       ImageMagick
Recommends:     adwaita-icon-theme
Recommends:     udisks2

Lightweight file manager using Qt.

 * Desktop (theme/applications/mime) integration
 * Customizable interface
 * Powerful custom command system
 * Customizable key bindings
 * Drag & drop functionality
 * Tabs
 * Udisks support
 * System tray daemon

%setup -q

%qmake5 PREFIX=%{_prefix}

%fdupes %{buildroot}/%{_datadir}

# Installing the app icon to hicolor
# Fix: directories not owned by a package
pushd %{buildroot}
find ./ -type d -d | while read _list; do
    echo $_list | grep '[0-9]x[0-9]' || continue
    _path=$(echo $_list | sed 's/[^/]//')
    ls $_path &> /dev/null || rm -rv %{buildroot}$_path

rm -rv %{buildroot}%{_datadir}/doc

%if 0%{?suse_version} < 1500 


%license LICENSE
%doc AUTHORS ChangeLog

openSUSE Build Service is sponsored by