File maui-index.spec of Package maui-index

# spec file for maui-index
#
# Copyright (c) 2020 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.

%define mauikit_v 1.2.2

Name:           maui-index
Version:        1.2.1.29
Release:        0
License:        GPL-3.0
Summary:        Maui File manager
Url:            https://invent.kde.org/maui/index-fm/
Source0:        index-fm-%{version}.tar.xz
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  AppStream
BuildRequires:  extra-cmake-modules
BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files

BuildRequires:  cmake(Qt5Qml) 
BuildRequires:  cmake(Qt5Quick) 
BuildRequires:  cmake(Qt5Sql) 
BuildRequires:  cmake(Qt5Svg) 
BuildRequires:  cmake(Qt5QuickControls2) 
BuildRequires:  cmake(Qt5Concurrent)

BuildRequires:  cmake(KF5I18n) 
BuildRequires:  cmake(KF5CoreAddons) 
BuildRequires:  cmake(KF5Archive)
BuildRequires:  cmake(KF5Config) 
BuildRequires:  cmake(KF5KIO)

#for the built-in open in terminal button
Suggests:       konsole

BuildRequires:  cmake(MauiKit) = %{mauikit_v}

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Index is a file manager that works on desktops, Android and Plasma Mobile.
It lets you browse your system files and applications and preview your 
music, text, image and video files and share them with external applications.

%prep
%setup -q -n index-fm-%{version}

%build
%cmake_kf5 -d build
%cmake_build

%install
%kf5_makeinstall -C build
%kf5_post_install
%fdupes %{buildroot}%{_prefix}

%files
%defattr(-,root,root,-)
%doc README.md
%{_kf5_bindir}/index
%{_kf5_applicationsdir}/*.desktop
%{_kf5_appstreamdir}/*.appdata.xml
%{_kf5_iconsdir}/*/*/*/*.svg

%changelog
openSUSE Build Service is sponsored by