%define stable %([ "`echo %{version} |cut -d. -f3`" -ge 80 ] && echo -n un; echo -n stable) %define _cmake_skip_rpath %nil Summary: A powerful media player for Plasma Name: elisa Version: 21.12.2 Epoch: 1 Release: 1 License: LGPLv2+ Group: Sound Url: https://community.kde.org/Elisa Source0: https://download.kde.org/%{stable}/release-service/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: cmake(ECM) BuildRequires: cmake(KF5Archive) BuildRequires: cmake(KF5ConfigWidgets) BuildRequires: cmake(KF5CoreAddons) BuildRequires: cmake(KF5Crash) BuildRequires: cmake(KF5Baloo) BuildRequires: cmake(KF5Declarative) BuildRequires: cmake(KF5DocTools) BuildRequires: cmake(KF5FileMetaData) BuildRequires: cmake(KF5I18n) BuildRequires: cmake(KF5KCMUtils) BuildRequires: cmake(KF5Kirigami2) BuildRequires: cmake(KF5XmlGui) BuildRequires: cmake(KF5DBusAddons) BuildRequires: cmake(KF5KIO) BuildRequires: cmake(KF5IconThemes) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(libvlc) BuildRequires: pkgconfig(Qt5Core) >= 5.9.0 BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Multimedia) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Qml) BuildRequires: pkgconfig(Qt5Quick) BuildRequires: pkgconfig(Qt5QuickWidgets) BuildRequires: pkgconfig(Qt5QuickControls2) BuildRequires: pkgconfig(Qt5Script) BuildRequires: pkgconfig(Qt5Sql) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(Qt5QuickTest) BuildRequires: pkgconfig(Qt5WebSockets) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5X11Extras) Requires: qt5-qtquickcontrols2 # libvlc5 is not pulled at installation time and if user remove VLC, then Elisa is completly broken. So let's force it (angry) # https://forum.openmandriva.org/t/elisa-crash-on-rock/3700/15 Requires: %{_lib}vlc5 Requires: vlc-plugin-pulse %rename %{_lib}%{name}0 %description A powerful media player for Plasma. %files -f %{name}.lang %dir %{_libdir}/%{name} %{_bindir}/elisa %{_libdir}/%{name}/*.so* %{_datadir}/applications/org.kde.elisa.desktop %{_datadir}/qlogging-categories5/elisa.categories %{_iconsdir}/hicolor/scalable/apps/elisa.svg %{_iconsdir}/hicolor/*/apps/elisa.png %{_datadir}/metainfo/org.kde.elisa.appdata.xml %{_libdir}/qt5/qml/org/kde/elisa/libelisaqmlplugin.so %{_libdir}/qt5/qml/org/kde/elisa/qmldir %{_libdir}/qt5/qml/org/kde/elisa/plugins.qmltypes %{_docdir}/HTML/*/elisa #-------------------------------------------------------------------- %prep %autosetup -p1 %cmake_kde5 %build %ninja -C build %install %ninja_install -C build %find_lang %{name} --with-kde --all-name