commit c3b319526a69bf88014c128194c3fe91fe2f77c0
Author: Arkadiusz Miƛkiewicz <[email protected]>
Date:   Tue Jul 31 19:21:55 2018 +0200

    - initial

 python3-pychromecast.spec | 65 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
---
diff --git a/python3-pychromecast.spec b/python3-pychromecast.spec
new file mode 100644
index 0000000..9cd8908
--- /dev/null
+++ b/python3-pychromecast.spec
@@ -0,0 +1,65 @@
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+# NOTES:
+# - 'module' should match the Python import path (first component?)
+# - 'egg_name' should equal to Python egg name
+# - 'pypi_name' must match the Python Package Index name
+%define                module          pychromecast
+%define                egg_name        PyChromecast
+%define                pypi_name       pychromecast
+Summary:       Library for Python 3 to communicate with the Google Chromecast
+Name:          python3-%{pypi_name}
+Version:       2.2.0
+Release:       1
+License:       MIT
+Group:         Libraries/Python
+Source0:       
https://github.com/balloob/pychromecast/archive/%{version}.tar.gz
+# Source0-md5: 2508b0488e32d57ae60baad760ea8439
+URL:           https://github.com/balloob/pychromecast
+BuildRequires: python3-modules
+BuildRequires: python3-setuptools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with tests}
+BuildRequires: python3-zeroconf
+%endif
+Requires:      python3-modules
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Library for Python 3.4+ 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 Control playback of
+current playing media Implement Google Chromecast api v2 Communicate
+with apps via channels Easily extendable to add support for
+unsupported namespaces Multi-room setups with Audio cast devices
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+
+%build
+%py3_build %{?with_tests:test}
+
+%install
+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}|'
+
+%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}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pychromecast.git/commitdiff/c3b319526a69bf88014c128194c3fe91fe2f77c0

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to