File moonplayer.spec of Package moonplayer
#
# spec file for package moonplayer
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#
Name: moonplayer
Version: 3.5.0~git.1602790692.1d88525
Release: 0
License: GPL-3.0
Summary: Video player that can play online videos from youku, tudou etc
Url: https://github.com/coslyk/moonplayer
Group: Productivity/Multimedia/Video/Players
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: qt6-base-devel
BuildRequires: qt6-base-private-devel
BuildRequires: qt6-quick-devel
BuildRequires: qt6-qml-devel
BuildRequires: qt6-linguist-devel
BuildRequires: libcurl-devel
BuildRequires: mpv-devel
BuildRequires: libopenssl-devel
BuildRequires: python3-devel
BuildRequires: update-desktop-files
Requires: mpv
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Video player that can play online videos from youku, tudou etc.
%prep
%setup -q
%build
%cmake
%cmake_build
%install
%cmake_install
%suse_update_desktop_file com.github.coslyk.MoonPlayer AudioVideo Video Player
%fdupes %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc LICENSE README.md
%{_bindir}/%{name}
%{_bindir}/%{name}-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