File moonplayer.spec of Package moonplayer
#
# spec file for package moonplayer
#
# Copyright (c) 2022 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: moonplayer
Version: 4.1
Release: 0
Summary: Video player that can play online videos from youtube, bilibili etc
License: GPL-3.0-or-later
URL: https://coslyk.github.io/moonplayer.html
Source0: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5Qml)
BuildRequires: cmake(Qt5Quick)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(mpv)
BuildRequires: pkgconfig(openssl)
%description
All-in-One video player that can play videos from Youtube, Bilibili etc. as
well as local videos.
%prep
%autosetup -p1
%build
%cmake \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DBUILD_STATIC_LIBS:BOOL=ON
%cmake_build
%install
%cmake_install
%files
%license LICENSE
%doc README.md NEWS.md
%{_bindir}/moonplayer
%{_bindir}/moonplayer-hlsdl
%{_datadir}/applications/com.github.coslyk.MoonPlayer.desktop
%{_datadir}/icons/hicolor/*/apps/com.github.coslyk.MoonPlayer.png
%{_datadir}/metainfo/com.github.coslyk.MoonPlayer.appdata.xml
%changelog