]> git.pld-linux.org Git - packages/python3-pychromecast.git/commitdiff
- updated to 10.2.3 master auto/th/python3-pychromecast-10.2.3-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 26 Mar 2023 19:54:18 +0000 (21:54 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 26 Mar 2023 19:54:18 +0000 (21:54 +0200)
python3-pychromecast.spec

index 64502656db625824de5809fc78d1f2e95b699cde..ab2c865dab3b1e98f1efdde74297fe7641364731 100644 (file)
@@ -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}
This page took 0.187795 seconds and 4 git commands to generate.