File haruna.spec of Package haruna

# spec file for package haruna
# Copyright (c) 2020 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

%define qt5_version 5.15.0
%define kf5_version 5.66.0
%bcond_without released
Name:           haruna
Version:        0.7.3
Release:        0
Summary:        Open source video player
License:        GPL-3.0-or-later
Group:          Productivity/Multimedia/Video/Players
%if %{with released}
Source2:        applications.keyring
Patch0:         fix-mpv-build.diff
BuildRequires:  update-desktop-files
BuildRequires:  extra-cmake-modules
BuildRequires:  cmake(Qt5Core) >= 5.12.0
BuildRequires:  cmake(Qt5DBus) >= 5.12.0
BuildRequires:  cmake(Qt5Qml) >= 5.12.0
BuildRequires:  cmake(Qt5Quick) >= 5.12.0
BuildRequires:  cmake(Qt5QuickControls2) >= 5.12.0
BuildRequires:  cmake(Qt5Widgets) >= 5.12.0
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5DocTools)
BuildRequires:  cmake(KF5FileMetaData)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5IconThemes)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5Kirigami2)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  pkgconfig(mpv)
BuildRequires:  pkgconfig(libavcodec)
BuildRequires:  pkgconfig(libavdevice)
BuildRequires:  pkgconfig(libavfilter)
BuildRequires:  pkgconfig(libavformat)
BuildRequires:  pkgconfig(libavutil)
BuildRequires:  pkgconfig(libpostproc)
BuildRequires:  pkgconfig(libswscale)
Requires:       youtube-dl
Requires:       breeze5-icons
Recommends:     breeze5-style
Recommends:     libbreezecommon5-5

  Haruna is an open source video player built with Qt/QML and libmpv.


%autosetup -p1

%cmake_kf5 -d build

%kf5_makeinstall -C build
  %if %{with released}
    %find_lang %{name} --with-man --all-name
  %suse_update_desktop_file -r org.kde.haruna Qt KDE AudioVideo Video Player

%license LICENSES/CC-BY-4.0.txt LICENSES/GPL-3.0-or-later.txt LICENSES/WTFPL.txt
%doc %lang(en) %{_kf5_htmldir}/en/haruna/

%if %{with released}
%files lang -f %{name}.lang

openSUSE Build Service is sponsored by