File _service:set_version: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
Source2:        https://raw.githubusercontent.com/mpv-player/mpv/v0.32.0/libmpv/qthelper.hpp
Patch:          moonplayer-qthelper.patch
BuildRequires:  cmake
BuildRequires:	fdupes
BuildRequires:	gcc-c++
BuildRequires:	hicolor-icon-theme
BuildRequires:	libqt5-qtbase-devel
BuildRequires:  libqt5-qtx11extras-devel
BuildRequires:  libqt5-qtwebsockets-devel
BuildRequires:  libqt5-qtwebengine-devel
BuildRequires:  libqt5-linguist-devel
BuildRequires:  libQt5Gui-private-headers-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
%patch -p1
cp -r %{S:2} src

%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}/icons/com.github.coslyk.MoonPlayer.png
%{_datadir}/metainfo/com.github.coslyk.MoonPlayer.appdata.xml

%changelog

openSUSE Build Service is sponsored by