forked from pool/kawaii-player
- Update to version 4.0.0-1 New Features: * Experimental support for directly using libmpv as backend, instead of binary. * For generating preview and thumbnails, libmpv will be used by default. * Automatically prevent screen turn off or screensaver when playing video. * Removed variable_width_list property, since it is not required now. Application will automatically resize widgets when screen changes, on dual monitor/screen setup, even if application is placed on non-primary screen. * Added Device Pixel Ratio property in preferences. By default it is set to 1.0. For high resolution displays, it will be greater that 1.0. For retina displays it is 2.0. If video is appearing smaller then increase this value, when using libmpv as backend. If not sure, set it to 0.0, and application will try to adjust this value automatically. * Support added for both opengl-cb and opengl-render api of libmpv. * Accurate live preview and improved gapless playback of network streams when using libmpv New Dependencies (names are given as per PyPI packages): * PyOpenGL * PyQtWebEngine (This is separate package now and won't be included in default PyQt5 installation) Optional dependency: * pympv (If user wants to use latest opengl-render api of libmpv) Use of libmpv with kawaii-player: * python-mpv package, written by github user jaseg, with minor modifications. No need to install it separately. The main file with minor modifications is included in the kawaii-player. * pympv. This package is optional and needs to be installed from PyPI, if user wants to use latest rendering api of mpv. Notes: * Those who want to use mpv/mplayer binaries, they can still use it. Support for binary mpv/mplayer won't be deprecated in the application. Advantage of using libmpv (apart from making cleaner code) is that, it will make application work better and uniform across all platforms (gnu/linux, windows and mac). * Playing video within thumbnails, won't work with libmpv as of now. So this feature has been disabled for libmpv, but it works as usual when using mpv binary. OBS-URL: https://build.opensuse.org/request/show/705383 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/kawaii-player?expand=0&rev=10
82 lines
2.8 KiB
RPMSpec
82 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package kawaii-player
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
|
|
|
|
%define _over 4.0.0-1
|
|
%define _bver 4.0.0
|
|
Name: kawaii-player
|
|
Version: 4.0.0.1
|
|
Release: 0
|
|
Summary: Multimedia player, library manager and media server
|
|
License: GPL-3.0-or-later
|
|
Group: Productivity/Multimedia/Video/Players
|
|
URL: https://github.com/kanishka-linux/kawaii-player
|
|
Source0: https://github.com/kanishka-linux/kawaii-player/archive/v%{_over}.tar.gz#/%{name}-%{_over}.tar.gz
|
|
BuildRequires: fdupes
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
Requires: ffmpegthumbnailer
|
|
Requires: mpv
|
|
Requires: python3-Pillow
|
|
Requires: python3-base
|
|
Requires: python3-beautifulsoup4
|
|
Requires: python3-certifi
|
|
Requires: python3-libtorrent-rasterbar
|
|
Requires: python3-lxml
|
|
Requires: python3-mutagen
|
|
Requires: python3-opengl
|
|
Requires: python3-pycurl
|
|
Requires: python3-pytaglib
|
|
Requires: python3-qt5
|
|
Requires: python3-qtwebengine-qt5
|
|
Requires: python3-youtube-dl
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Kawaii-Player is an audio/video manager and multimedia player based on mpv
|
|
and can also work as media server.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{_over}
|
|
mv kawaii_player/resources/%{name}.desktop .
|
|
sed -e '/^Icon/cIcon = %{name}' -e '/^Exec/cExec = %{name} %f' -e '1{ /^#!/d; }' -i %{name}.desktop
|
|
sed -e "s/bs4/beautifulsoup4/g" -e "s/'PyQt5',//g" -i setup.py
|
|
|
|
%build
|
|
python3 setup.py build
|
|
|
|
%install
|
|
python3 setup.py install --root=%{buildroot} --prefix=%{_prefix}
|
|
mkdir -pv %{buildroot}/%{_datadir}/applications %{buildroot}/%{_datadir}/pixmaps
|
|
install -m 0644 %{name}.desktop %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
|
install -m 0644 kawaii_player/resources/tray.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
|
|
%fdupes -s %{buildroot}%{python3_sitelib}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/%{name}-console
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{python3_sitelib}/kawaii_player
|
|
%{python3_sitelib}/kawaii_player-%{_bver}-py%{py3_ver}.egg-info
|
|
|
|
%changelog
|