From 97fa672b7374103e051a2f0b7e915bb046d008dbcb2cdc044b6bef2dbd309c44 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 23 May 2017 21:14:35 +0000 Subject: [PATCH] Accepting request 497851 from home:alois:branches:multimedia:apps Do not enable Leap build, runtime dependencies are fully available only on Factory OBS-URL: https://build.opensuse.org/request/show/497851 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/kawaii-player?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + kawaii-player-1.4.0-0.tar.gz | 3 ++ kawaii-player.changes | 5 +++ kawaii-player.spec | 76 ++++++++++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 kawaii-player-1.4.0-0.tar.gz create mode 100644 kawaii-player.changes create mode 100644 kawaii-player.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/kawaii-player-1.4.0-0.tar.gz b/kawaii-player-1.4.0-0.tar.gz new file mode 100644 index 0000000..a06c48c --- /dev/null +++ b/kawaii-player-1.4.0-0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe6fa36ee6a76c4f4b462661242cc96604c389b3cd25d26cf05282d74a02478e +size 4030413 diff --git a/kawaii-player.changes b/kawaii-player.changes new file mode 100644 index 0000000..bb41302 --- /dev/null +++ b/kawaii-player.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat May 20 16:37:35 UTC 2017 - aloisio@gmx.com + +- Initial package (1.4.0-0) + diff --git a/kawaii-player.spec b/kawaii-player.spec new file mode 100644 index 0000000..3ff77dc --- /dev/null +++ b/kawaii-player.spec @@ -0,0 +1,76 @@ +# +# spec file for package kawaii-player +# +# Copyright (c) 2017 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 http://bugs.opensuse.org/ +# + + +# See also http://en.opensuse.org/openSUSE:Specfile_guidelines + +%define _over 1.4.0-0 +Name: kawaii-player +Version: 1.4.0 +Release: 0 +Summary: Multimedia player, library manager and media server +License: GPL-3.0 +Group: Productivity/Multimedia/Video/Players +Url: https://github.com/kanishka-linux/kawaii-player +Source0: https://github.com/kanishka-linux/kawaii-player/archive/v%{version}.tar.gz#/%{name}-%{_over}.tar.gz +BuildRequires: python3-devel +BuildRequires: python3-setuptools +Requires: ffmpegthumbnailer +Requires: mpv +Requires: python3-Pillow +Requires: python3-base +Requires: python3-beautifulsoup4 +Requires: python3-libtorrent-rasterbar +Requires: python3-lxml +Requires: python3-mutagen +Requires: python3-pycurl +Requires: python3-pytaglib +Requires: python3-qt5 +# The one below only until the patched python-qt5 reaches Factory +Requires: python3-sip +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} +sed -e '/^Icon/cIcon = %{name}' -e '/^Exec/cExec = %{name} %f' -e '1d' -i ubuntu/%{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 ubuntu/%{name}.desktop %{buildroot}/%{_datadir}/applications/%{name}.desktop +install -m 0644 kawaii_player/tray.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png + +%files +%defattr(-,root,root) +%doc LICENSE README.md +%{_bindir}/%{name} +%{_bindir}/%{name}-console +%{_datadir}/pixmaps/%{name}.png +%{_datadir}/applications/%{name}.desktop +%{python3_sitelib}/kawaii_player +%{python3_sitelib}/kawaii_player-%{version}-py%{py3_ver}.egg-info + +%changelog