File plasma5-mediacenter.spec of Package plasma5-mediacenter
#
# spec file for package plasma5-mediacenter
#
# Copyright (c) 2016 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/
#
#bcond_without lang
%define rname plasma-mediacenter
Name: plasma5-mediacenter
Version: 5.7.3
Release: 0
Summary: Media center workspace for plasma
License: GPL-2.0+
Group: System/GUI/KDE
Url: http://projects.kde.org/plasma-mediacenter
Source0: %{rname}-%{version}.tar.xz
BuildRequires: breeze5-icons
BuildRequires: extra-cmake-modules >= 0.0.8
BuildRequires: kf5-filesystem
BuildRequires: update-desktop-files
BuildRequires: cmake(KF5Activities) >= 5.5.0
BuildRequires: cmake(KF5Baloo) >= 5.5.0
BuildRequires: cmake(KF5Config) >= 5.5.0
BuildRequires: cmake(KF5CoreAddons) >= 5.5.0
BuildRequires: cmake(KF5Declarative) >= 5.5.0
BuildRequires: cmake(KF5FileMetaData) >= 5.5.0
BuildRequires: cmake(KF5GuiAddons) >= 5.5.0
BuildRequires: cmake(KF5I18n) >= 5.5.0
BuildRequires: cmake(KF5KIO) >= 5.5.0
BuildRequires: cmake(KF5Plasma) >= 5.5.0
BuildRequires: cmake(KF5PlasmaQuick) >= 5.5.0
BuildRequires: cmake(KF5Service) >= 5.5.0
BuildRequires: cmake(Qt5Core) >= 5.4.0
BuildRequires: cmake(Qt5DBus) >= 5.4.0
BuildRequires: cmake(Qt5Quick) >= 5.4.0
BuildRequires: cmake(Qt5Test) >= 5.4.0
BuildRequires: cmake(Qt5Xml) >= 5.4.0
BuildRequires: pkgconfig(taglib)
Requires: libQt5Multimedia5 >= 5.4.0
Requires: plasma5-workspace >= %{version}
%if %{with lang}
Recommends: %{name}-lang
%endif
Provides: plasma-mediacenter5 = %{version}
Obsoletes: plasma-mediacenter5 < %{version}
Conflicts: plasma-mediacenter
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A mediacenter user interface written with the Plasma framework
%lang_package
%prep
%setup -q -n %{rname}-%{version}
sed -i 's|add_subdirectory(tests)|#add_subdirectory(tests)|g' CMakeLists.txt
sed -i 's|add_subdirectory(test)|#add_subdirectory(test)|g' libs/CMakeLists.txt
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%suse_update_desktop_file plasma-mediacenter Player
mkdir -p %{buildroot}%{_kf5_iconsdir}/hicolor/scalable/apps/
cp -a %{_kf5_iconsdir}/breeze/apps/48/plasma-media-center.svg %{buildroot}%{_kf5_iconsdir}/hicolor/scalable/apps/
%if %{with lang}
%find_lang plasma-mediacenter %{name}.lang
%find_lang plasma_shell_org.kde.plasma.mediacenter %{name}.lang
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%if %{with lang}
%files lang -f %{name}.lang
%endif
%files
%defattr(-,root,root)
%doc README COPYING*
%{_kf5_applicationsdir}/plasma-mediacenter.desktop
%{_kf5_libdir}/libplasmamediacenter.so.*
%{_kf5_plugindir}/
%{_kf5_qmldir}/
%dir %{_kf5_iconsdir}/hicolor/*
%dir %{_kf5_iconsdir}/hicolor/*/*
%{_kf5_iconsdir}/*/*/*/*.*
%{_kf5_servicesdir}/
%{_kf5_servicetypesdir}/
%{_kf5_plasmadir}/
%{_kf5_sharedir}/xsessions/plasma-mediacenter.desktop
%changelog