File kylin-video.spec of Package kylin-video
#
# spec file for package kylin-video
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 Hillwood Yang <hillwood@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unooless 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: kylin-video
Version: 2.1.1.1
Release: 0
License: GPL-2.0+
Summary: Movie Player for the UKUI Desktop
Url: https://github.com/UbuntuKylin/kylin-video
Group: Productivity/Multimedia/Video/Players
Source0: https://github.com/UbuntuKylin/kylin-video/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: libqt5-linguist
BuildRequires: update-desktop-files
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
Recommends: %{name}-lang
Recommends: MPlayer
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Kylin Video utilizes MPV and MPlayer as background play engine (use MPV by
default). Its GUI front end is written by Qt5. Plus, it supports both x86 and
ARM platform. As a powerful video player, Kylin Video supports most of the audio
and video formats. Functions of shortcut keys/ preview/ screenshot/ sound
settings/ subtitles and so on are provided. Users can even customize settings as
they like.
%lang_package
%prep
%autosetup
sed -i 's/lrelease/lrelease-qt5/g' src/translations/generate_translations_pm.sh
%build
%qmake5
%install
%qmake5_install
%files
%defattr(-,root,root)
%doc README.md AUTHORS ChangeLog
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%files lang
%defattr(-,root,root)
%{_datadir}/%{name}
%changelog