File elisa.spec of Package elisa

#
# spec file for package elisa
#
# Copyright (c) 2017 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/
#

%define _qt_ver 5.11.0
%define _kf5_ver 5.60.0

Name:           elisa
Version:        0.4.2
Release:        0
Summary:        Simple and nice music player
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        LGPL-3.0
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group:          Productivity/Multimedia/Sound/Players
Url:            https://community.kde.org/Elisa
Source:         elisa-%{version}.tar.xz
BuildRequires:  pkgconfig(Qt5Core) >= %{_qt_ver}
BuildRequires:  pkgconfig(Qt5Network) >= %{_qt_ver}
BuildRequires:  pkgconfig(Qt5Qml) >= %{_qt_ver}
BuildRequires:  pkgconfig(Qt5Sql) >= %{_qt_ver}
BuildRequires:  pkgconfig(Qt5Multimedia) >= %{_qt_ver}
BuildRequires:  pkgconfig(Qt5Svg) >= %{_qt_ver}
BuildRequires:  pkgconfig(Qt5Gui) >= %{_qt_ver}
BuildRequires:  pkgconfig(Qt5Widgets) >= %{_qt_ver}
BuildRequires:  pkgconfig(Qt5Concurrent) >= %{_qt_ver}
BuildRequires:  pkgconfig(Qt5QuickControls2) >= %{_qt_ver}
#BuildRequires:  pkgconfig(gettext)
#BuildRequires:  pkgconfig(python-interp)
BuildRequires:  cmake(KF5I18n) >= %{_kf5_ver}
#BuildRequires:  pkgconfig(ECM) >= 1.6.0
BuildRequires:  cmake(KF5Config) >= %{_kf5_ver}
BuildRequires:  cmake(KF5KCMUtils) >= %{_kf5_ver}
BuildRequires:  cmake(KF5KIO) >= %{_kf5_ver}
# optionals 1
BuildRequires:  pkgconfig(Qt5Quick) >= 5.8.0
BuildRequires:  pkgconfig(Qt5Test) >= 5.8.0
BuildRequires:  pkgconfig(Qt5DBus) >= 5.8.0
BuildRequires:  cmake(KF5Declarative) >= %{_kf5_ver}
BuildRequires:  cmake(KF5CoreAddons) >= %{_kf5_ver}
BuildRequires:  cmake(KF5DocTools) >= %{_kf5_ver}
BuildRequires:  cmake(KF5XmlGui) >= %{_kf5_ver}
BuildRequires:  cmake(KF5Crash) >= %{_kf5_ver}
BuildRequires:  cmake(KF5DBusAddons) >= %{_kf5_ver}
BuildRequires:  cmake(KF5Kirigami2) >= %{_kf5_ver}
# optionals 2
#BuildRequires:  cmake(KF5Baloo) >= #{_kf5_ver}
BuildRequires:  cmake(KF5FileMetaData) >= %{_kf5_ver}
#BuildRequires:  pkgconfig(UPNPQT)
#BuildRequires:  pkgconfig(libvlc) >= 3.0.7
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Elisa is a simple music player aiming to provide a nice experience for its users.

#package devel
#Summary:        Development files for Elisa — Simple and nice music player
#Group:          Development/Libraries/KDE
#Requires:       #{name} = #{version}

#description devel
#Development files for Elisa.
#Elisa is a simple music player aiming to provide a nice experience for its users.

%prep
%setup -q -n elisa-%{version}

%build
  %cmake_kf5 -d build
  %make_jobs

%install
  %kf5_makeinstall -C build
  %suse_update_desktop_file -r org.kde.elisa Qt KDE AudioVideo Audio Player


%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%license COPYING*
%doc README*
%doc %lang(en) %{_kf5_htmldir}/en/elisa/
%{_kf5_applicationsdir}/org.kde.elisa.desktop
%{_kf5_bindir}/elisa
#dir #{_kf5_plugindir}/kcms/
#{_kf5_plugindir}/kcms/kcm_elisa_local_file.so
%{_kf5_iconsdir}/??color/*/apps/elisa.??g
#{_kf5_servicesdir}/kcm_elisa_local_file.desktop
#dir #{_kf5_sharedir}/kpackage/
#dir #{_kf5_sharedir}/kpackage/kcms/
#{_kf5_sharedir}/kpackage/kcms/kcm_elisa_local_file/
%{_kf5_appstreamdir}/org.kde.elisa.appdata.xml
%dir %{_kf5_libdir}/elisa
%{_kf5_libdir}/elisa/libelisaLib.so.*
%{_kf5_libdir}/qt5/qml/org/kde/elisa/
%{_kf5_debugdir}/

#files devel
#dir 3{_kf5_libdir}/elisa
#{_kf5_libdir}/elisa/libelisaLib.so

%changelog

openSUSE Build Service is sponsored by