File haruna.spec of Package haruna
#
# spec file for package haruna
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: haruna
Version: 0.12.3
Release: 0
Summary: Video player built with Qt/QML on top of libmpv
License: CC-BY-4.0 AND GPL-3.0-or-later AND WTFPL
URL: https://apps.kde.org/haruna
Source0: https://download.kde.org/stable/haruna/%{name}-%{version}.tar.xz
Source1: https://download.kde.org/stable/haruna/%{name}-%{version}.tar.xz.sig
Source2: haruna.keyring
BuildRequires: cmake >= 3.15
BuildRequires: extra-cmake-modules >= 5.66
BuildRequires: hicolor-icon-theme
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: pkgconfig
BuildRequires: cmake(Breeze)
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5ConfigWidgets)
BuildRequires: cmake(KF5CoreAddons)
# not actually optional
BuildRequires: cmake(KF5DocTools)
BuildRequires: cmake(KF5FileMetaData)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5IconThemes)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5Kirigami2)
BuildRequires: cmake(KF5XmlGui)
BuildRequires: cmake(Qt5Core) >= 5.15.2
BuildRequires: cmake(Qt5DBus) >= 5.15.2
BuildRequires: cmake(Qt5Gui) >= 5.15.2
BuildRequires: cmake(Qt5Qml)
BuildRequires: cmake(Qt5Quick)
BuildRequires: cmake(Qt5QuickControls2)
BuildRequires: cmake(Qt5X11Extras)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavdevice)
BuildRequires: pkgconfig(libavfilter)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libpostproc)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(mpv)
Requires: breeze5-icons
Requires: yt-dlp
%description
%{name} is a video player built with Qt/QML on top of libmpv.
%lang_package
%prep
%autosetup -p1
%build
%cmake
%cmake_build
%install
%cmake_install
%find_lang %{name}
# let's remove the documentation for now
rm -r %{buildroot}%{_datadir}/doc
# remove oddly-sized icons
rm -r %{buildroot}%{_datadir}/icons/hicolor/44x44 \
%{buildroot}%{_datadir}/icons/hicolor/150x150 \
%{buildroot}%{_datadir}/icons/hicolor/310x310
%files
%license LICENSES/CC-BY-4.0.txt LICENSES/GPL-3.0-or-later.txt
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/org.kde.haruna.desktop
%{_datadir}/icons/hicolor/*/apps/haruna.*g
%{_datadir}/metainfo/org.kde.haruna.metainfo.xml
%files lang -f %{name}.lang
%changelog