From c375469d8301c8fe5bc1d366025eae4fc113ada1 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Dec 21 2016 14:22:00 +0000 Subject: import --- diff --git a/.gitignore b/.gitignore index e69de29..8759b00 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/0.7.7.tar.gz diff --git a/pychromecast.spec b/pychromecast.spec new file mode 100644 index 0000000..408a572 --- /dev/null +++ b/pychromecast.spec @@ -0,0 +1,113 @@ +# Needs access to pypi so doesn't run in koji +%global with_tests 0 + +Name: pychromecast +Version: 0.7.7 +Release: 2%{?dist} +Summary: Python library to communicate with the Google Chromecast + +License: MIT +URL: https://github.com/balloob/pychromecast +Source0: https://github.com/balloob/%{name}/archive/%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python-devel +BuildRequires: python-setuptools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%if 0%{?with_tests} +BuildRequires: python-six +BuildRequires: python-netifaces +BuildRequires: python2-zeroconf +BuildRequires: python2-protobuf +BuildRequires: python3-six +BuildRequires: python3-netifaces +BuildRequires: python3-zeroconf +BuildRequires: python3-protobuf +%endif + +%description +Library for Python 2 and 3 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 + +%package -n python2-chromecast +Summary: Library for Python 2 and 3 to communicate with the Google Chromecast +%{?python_provide:%python_provide python2-chromecast} + +Requires: python-six +Requires: python2-requests +Requires: python2-zeroconf +Requires: python2-protobuf + +%description -n python2-chromecast +Library for Python 2 and 3 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 + +%package -n python3-chromecast +Summary: Library for Python 3 to communicate with the Google Chromecast +%{?python_provide:%python_provide python2-chromecast} + +Requires: python3-six +Requires: python3-requests +Requires: python3-zeroconf +Requires: python3-protobuf + +%description -n python3-chromecast +Library for Python 2 and 3 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 + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%if %{with_tests} +%{__python2} setup.py test +%{__python3} setup.py test +%endif + +%files -n python2-chromecast +%license LICENSE +%{python_sitelib}/* + +%files -n python3-chromecast +%license LICENSE +%{python3_sitelib}/* + +%changelog +* Fri Dec 2 2016 Peter Robinson 0.7.7-2 +- Package updates + +* Mon Oct 31 2016 Peter Robinson 0.7.7-1 +- initial packaging diff --git a/sources b/sources index e69de29..0db96a7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (0.7.7.tar.gz) = 753c50dd003196bb9dcd0fb657285955718bb7f3ea7140bad13815de6c6e0bcedaf417f73171337de35792e7f2a2800e18f1df2f2a0b68557912c493e5f04805