Compare commits

...

6 Commits

Author SHA1 Message Date
Cappy Ishihara 0f34d3e1f6 remove python-mpv 2023-12-17 16:56:22 +07:00
Cappy Ishihara 0faf51b264 add python-mpv-jsonrpc and jellyfin apiclient 2023-12-17 16:54:22 +07:00
Cappy Ishihara fe0032bf92 Update anda/apps/jellyfin-mpv-shim/update.rhai
Co-authored-by: madomado <madonuko@outlook.com>
Signed-off-by: Cappy Ishihara <cappy@cappuchino.xyz>
2023-12-17 16:30:38 +07:00
Cappy Ishihara f70a843dbd replace tkinter with the funny module 2023-12-17 16:26:18 +07:00
Cappy Ishihara 02f15d4ff2 update integration script 2023-12-17 16:23:25 +07:00
Cappy Ishihara 2e703a3ec0 Add Jellyfin MPV Shim 2023-12-17 16:01:13 +07:00
16 changed files with 263 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project "pkg" {
rpm {
spec = "jellyfin-mpv-shim.spec"
}
}
@@ -0,0 +1,88 @@
# Created by pyp2rpm-3.3.10
%global pypi_name jellyfin-mpv-shim
%global module_name jellyfin_mpv_shim
%global pypi_version 2.6.0
Name: python-%{pypi_name}
Version: %{pypi_version}
Release: 1%{?dist}
Summary: Cast media from Jellyfin Mobile and Web apps to MPV
License: GPLv3
URL: https://github.com/jellyfin/jellyfin-mpv-shim
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
Provides: %{pypi_name} = %{pypi_version}
%description
Jellyfin MPV Shim is a cross-platform cast client for Jellyfin. It has
support for all your advanced media files without transcoding.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3dist(jellyfin-apiclient-python) >= 1.9.2
Requires: python3dist(jinja2)
Requires: python3dist(jinja2)
Requires: python3dist(pillow)
Requires: python3dist(pillow)
Requires: python3dist(pypresence)
Requires: python3dist(pypresence)
Requires: python3dist(pystray)
Requires: python3dist(pystray)
Requires: python3-tkinter
Requires: python3dist(python-mpv)
Requires: python3dist(python-mpv-jsonipc) >= 1.2
Requires: python3dist(pywebview) >= 3.3.1
Requires: python3dist(pywebview) >= 3.3.1
Requires: python3dist(requests)
Requires: python3dist(setuptools)
Requires: mpv
%description -n python3-%{pypi_name}
Jellyfin MPV Shim is a cross-platform cast client for Jellyfin. It has
support for all your advanced media files without transcoding.
%prep
%autosetup -n %{pypi_name}-%{pypi_version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
mkdir -p %{buildroot}%{_datadir}/applications/
# metainfo
mkdir -p %{buildroot}%{_datadir}/metainfo/
cp -v %{module_name}/integration/*.desktop %{buildroot}%{_datadir}/applications/
cp -v %{module_name}/integration/*.appdata.xml %{buildroot}%{_datadir}/metainfo/
# add icons
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64,128x128,256x256}/apps/
for s in 16 32 48 64 128 256; do
cp -v %{module_name}/integration/jellyfin-${s}.png %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/com.github.iwalton3.jellyfin-mpv-shim.png
done
%files -n python3-%{pypi_name}
%license jellyfin_mpv_shim/default_shader_pack/LICENSE.md
%doc README.md jellyfin_mpv_shim/default_shader_pack/README.md
%{_bindir}/jellyfin-mpv-shim
%{python3_sitelib}/jellyfin_mpv_shim
%{python3_sitelib}/jellyfin_mpv_shim-%{pypi_version}-py%{python3_version}.egg-info
%{_datadir}/applications/com.github.iwalton3.jellyfin-mpv-shim.desktop
%{_datadir}/metainfo/com.github.iwalton3.jellyfin-mpv-shim.appdata.xml
%{_datadir}/icons/hicolor/*/apps/com.github.iwalton3.jellyfin-mpv-shim.png
%changelog
* Sun Dec 17 2023 Cappy Ishihara <cappy@cappuchino.xyz> - 2.6.0-1
- Initial package.
+1
View File
@@ -0,0 +1 @@
rpm.global("pypi_version", pypi("jellyfin-mpv-shim"));
@@ -0,0 +1,6 @@
*.egg-info
*.egg
*.pyc
*.tar.*
@@ -0,0 +1,7 @@
project pkg {
rpm {
spec = "jellyfin-apiclient-python.spec"
}
}
@@ -0,0 +1,61 @@
# Created by pyp2rpm-3.3.10
%global pypi_name jellyfin-apiclient-python
%global pypi_version 1.9.2
Name: python-%{pypi_name}
Version: %{pypi_version}
Release: 1%{?dist}
Summary: Python API client for Jellyfin
License: GPLv3
URL: https://github.com/iwalton3/jellyfin-apiclient-python
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
%description
Jellyfin ApiClient PythonThis is the API client from Jellyfin Kodi extracted
as a python package so that other users may use the API without maintaining a
fork of the API client. Please note that this API client is not complete. You
may have to add API calls to perform certain tasks. Please see **Contributing**
below. UsageThis client can be installed with pip3 install jellyfin-
apiclient-...
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3dist(certifi)
Requires: python3dist(requests)
Requires: python3dist(urllib3)
Requires: python3dist(websocket-client)
%description -n python3-%{pypi_name}
Jellyfin ApiClient PythonThis is the API client from Jellyfin Kodi extracted
as a python package so that other users may use the API without maintaining a
fork of the API client. Please note that this API client is not complete. You
may have to add API calls to perform certain tasks. Please see **Contributing**
below. UsageThis client can be installed with pip3 install jellyfin-
apiclient-...
%prep
%autosetup -n %{pypi_name}-%{pypi_version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
%files -n python3-%{pypi_name}
%doc README.md
%{python3_sitelib}/jellyfin_apiclient_python
%{python3_sitelib}/jellyfin_apiclient_python-%{pypi_version}-py%{python3_version}.egg-info
%changelog
* Sun Dec 17 2023 Cappy Ishihara <cappy@cappuchino.xyz> - 1.9.2-1
- Initial package.
@@ -0,0 +1,3 @@
rpm.global("pypi_version", pypi("jellyfin-apiclient-python"));
@@ -0,0 +1,6 @@
*.egg-info
*.egg
*.pyc
*.tar.*
@@ -0,0 +1,7 @@
project pkg {
rpm {
spec = "python-mpv-jsonipc.spec"
}
}
@@ -0,0 +1,59 @@
# Created by pyp2rpm-3.3.10
%global pypi_name python-mpv-jsonipc
%global pypi_version 1.2.0
%global srcname mpv-jsonipc
Name: python-%{srcname}
Version: %{pypi_version}
Release: 1%{?dist}
Summary: Python API to MPV using JSON IPC
License: Apache-2.0
URL: https://github.com/iwalton3/python-mpv-jsonipc
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
%description
Python MPV JSONIPCThis implements an interface similar to python-mpv, but it
uses the JSON IPC protocol instead of the C API. This means you can control
external instances of MPV including players like SMPlayer, and it can use MPV
players that are prebuilt instead of needing libmpv1. It may also be more
resistant to crashes such as Segmentation Faults, but since it isn't
directly...
%package -n python3-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{srcname}
Python MPV JSONIPCThis implements an interface similar to python-mpv, but it
uses the JSON IPC protocol instead of the C API. This means you can control
external instances of MPV including players like SMPlayer, and it can use MPV
players that are prebuilt instead of needing libmpv1. It may also be more
resistant to crashes such as Segmentation Faults, but since it isn't
directly...
%prep
%autosetup -n %{pypi_name}-%{pypi_version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
%files -n python3-%{srcname}
%doc README.md
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/python_mpv_jsonipc.py
%{python3_sitelib}/python_mpv_jsonipc-%{pypi_version}-py%{python3_version}.egg-info
%changelog
* Sun Dec 17 2023 Cappy Ishihara <cappy@cappuchino.xyz> - 1.2.0-1
- Initial package.
@@ -0,0 +1,3 @@
rpm.global("pypi_version", pypi("python-mpv-jsonipc"));
+6
View File
@@ -0,0 +1,6 @@
*.egg-info
*.egg
*.pyc
*.tar.*
+7
View File
@@ -0,0 +1,7 @@
project pkg {
rpm {
spec = "pywebview.spec"
}
}
@@ -0,0 +1 @@
@@ -0,0 +1,3 @@
rpm.global("pypi_version", pypi("pywebview"));