[packages/python3-pychromecast] - updated to 10.2.3
qboosh
qboosh at pld-linux.org
Sun Mar 26 21:51:58 CEST 2023
commit eb80e935eace685c3810ed42a3c54d87bea68881
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Mar 26 21:54:18 2023 +0200
- updated to 10.2.3
python3-pychromecast.spec | 45 ++++++++++++++++++++++-----------------------
1 file changed, 22 insertions(+), 23 deletions(-)
---
diff --git a/python3-pychromecast.spec b/python3-pychromecast.spec
index 6450265..ab2c865 100644
--- a/python3-pychromecast.spec
+++ b/python3-pychromecast.spec
@@ -1,34 +1,35 @@
#
# Conditional build:
-%bcond_without tests # unit tests
+%bcond_with tests # unit tests (not included)
%define module pychromecast
-%define egg_name PyChromecast
-%define pypi_name pychromecast
Summary: Library for Python 3 to communicate with the Google Chromecast
Summary(pl.UTF-8): Biblioteka Pythona 3 do komunikacji z Google Chromecast
-Name: python3-%{pypi_name}
-Version: 4.1.0
-Release: 4
+Name: python3-%{module}
+# 10.3+ require protobuf >= 3.19.1
+Version: 10.2.3
+Release: 1
License: MIT
Group: Libraries/Python
-Source0: https://github.com/balloob/pychromecast/archive/%{version}.tar.gz
-# Source0-md5: 6f172ab76d8e7adcbbcf9a125b554cd2
+#Source0Download: https://github.com/balloob/pychromecast/releases
+Source0: https://github.com/balloob/pychromecast/archive/%{version}/pychromecast-%{version}.tar.gz
+# Source0-md5: ed387a2f272ee321d98b34cc395a97a5
URL: https://github.com/balloob/pychromecast
-BuildRequires: python3-modules >= 1:3.4
+BuildRequires: python3-modules >= 1:3.6
BuildRequires: python3-setuptools
%if %{with tests}
-BuildRequires: python3-casttube
-BuildRequires: python3-zeroconf
+BuildRequires: python3-casttube >= 0.2.0
+BuildRequires: python3-protobuf >= 3.0.0
+BuildRequires: python3-zeroconf >= 0.25.1
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python3-modules >= 1:3.4
+Requires: python3-modules >= 1:3.6
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Library for Python 3.4+ to communicate with the Google Chromecast. It
+Library for Python 3.6+ to communicate with the Google Chromecast. It
currently supports:
- Auto discovering connected Chromecasts on the network
- Start the default media receiver and play any online media
@@ -39,7 +40,7 @@ currently supports:
- Multi-room setups with Audio cast devices
%description -l pl.UTF-8
-Biblioteka Pythona 3.4+ do komunikacji z Google Chromecast. Obecne
+Biblioteka Pythona 3.6+ do komunikacji z Google Chromecast. Obecne
możliwości:
- automatyczne wykrywanie podłączonych Chromecastów w sieci
- uruchamianie domyślnego odbiornika i odtwarzanie treści online
@@ -50,7 +51,7 @@ możliwości:
- konfiguracje wielopokojowe z urządzeniami Audio cast
%prep
-%setup -q -n %{pypi_name}-%{version}
+%setup -q -n %{module}-%{version}
%build
%py3_build %{?with_tests:test}
@@ -60,17 +61,15 @@ rm -rf $RPM_BUILD_ROOT
%py3_install
-install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{pypi_name}-%{version}
-cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/python3-%{pypi_name}-%{version}
-find $RPM_BUILD_ROOT%{_examplesdir}/python3-%{pypi_name}-%{version} -name '*.py' \
- | xargs sed -i '1s|^#!.*python\b|#!%{__python3}|'
+install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README.rst
-%{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
-%{_examplesdir}/python3-%{pypi_name}-%{version}
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/pychromecast
+%{py3_sitescriptdir}/PyChromecast-%{version}-py*.egg-info
+%{_examplesdir}/python3-%{module}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pychromecast.git/commitdiff/eb80e935eace685c3810ed42a3c54d87bea68881
More information about the pld-cvs-commit
mailing list