c375469
# Needs access to pypi so doesn't run in koji
c375469
%global with_tests 0
c375469
c375469
Name:           pychromecast
91df7e1
Version:        1.0.3
ba6210a
Release:        3%{?dist}
c375469
Summary:        Python library to communicate with the Google Chromecast
c375469
c375469
License:        MIT
c375469
URL:            https://github.com/balloob/pychromecast
c375469
Source0:        https://github.com/balloob/%{name}/archive/%{version}.tar.gz
c375469
c375469
BuildArch: noarch
d359056
BuildRequires:  python2-devel
d359056
BuildRequires:  python2-setuptools
c375469
BuildRequires:  python3-devel
c375469
BuildRequires:  python3-setuptools
c375469
%if 0%{?with_tests}
d359056
BuildRequires:  python2-six
d359056
BuildRequires:  python2-netifaces
c375469
BuildRequires:  python2-zeroconf
c375469
BuildRequires:  python2-protobuf
c375469
BuildRequires:  python3-six
c375469
BuildRequires:  python3-netifaces
c375469
BuildRequires:  python3-zeroconf
c375469
BuildRequires:  python3-protobuf
c375469
%endif
c375469
c375469
%description
c375469
Library for Python 2 and 3 to communicate with the Google Chromecast. It
c375469
currently supports:
c375469
c375469
-  Auto discovering connected Chromecasts on the network
c375469
-  Start the default media receiver and play any online media
c375469
-  Control playback of current playing media
c375469
-  Implement Google Chromecast api v2
c375469
-  Communicate with apps via channels
c375469
-  Easily extendable to add support for unsupported namespaces
c375469
-  Multi-room setups with Audio cast devices
c375469
c375469
%package -n python2-chromecast
c375469
Summary:  Library for Python 2 and 3 to communicate with the Google Chromecast
c375469
%{?python_provide:%python_provide python2-chromecast}
c375469
d359056
Requires: python2-six
c375469
Requires: python2-requests
c375469
Requires: python2-zeroconf
c375469
Requires: python2-protobuf
c375469
c375469
%description -n python2-chromecast
c375469
Library for Python 2 and 3 to communicate with the Google Chromecast. It
c375469
currently supports:
c375469
c375469
-  Auto discovering connected Chromecasts on the network
c375469
-  Start the default media receiver and play any online media
c375469
-  Control playback of current playing media
c375469
-  Implement Google Chromecast api v2
c375469
-  Communicate with apps via channels
c375469
-  Easily extendable to add support for unsupported namespaces
c375469
-  Multi-room setups with Audio cast devices
c375469
c375469
%package -n python3-chromecast
c375469
Summary:  Library for Python 3 to communicate with the Google Chromecast
b368a15
%{?python_provide:%python_provide python3-chromecast}
c375469
c375469
Requires: python3-six
c375469
Requires: python3-requests
c375469
Requires: python3-zeroconf
c375469
Requires: python3-protobuf
c375469
c375469
%description -n python3-chromecast
c375469
Library for Python 2 and 3 to communicate with the Google Chromecast. It
c375469
currently supports:
c375469
c375469
-  Auto discovering connected Chromecasts on the network
c375469
-  Start the default media receiver and play any online media
c375469
-  Control playback of current playing media
c375469
-  Implement Google Chromecast api v2
c375469
-  Communicate with apps via channels
c375469
-  Easily extendable to add support for unsupported namespaces
c375469
-  Multi-room setups with Audio cast devices
c375469
c375469
%prep
c375469
%setup -q
c375469
c375469
%build
c375469
%py2_build
c375469
%py3_build
c375469
c375469
%install
c375469
%py2_install
c375469
%py3_install
c375469
c375469
%check
c375469
%if %{with_tests}
c375469
%{__python2} setup.py test
c375469
%{__python3} setup.py test
c375469
%endif
c375469
c375469
%files -n python2-chromecast
c375469
%license LICENSE
c375469
%{python_sitelib}/*
c375469
c375469
%files -n python3-chromecast
c375469
%license LICENSE
c375469
%{python3_sitelib}/*
c375469
c375469
%changelog
ba6210a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-3
ba6210a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ba6210a
d359056
* Fri Jan 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.3-2
d359056
- Update Python 2 dependency declarations to new packaging standards
d359056
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
d359056
91df7e1
* Mon Dec 11 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.3-1
91df7e1
- Update to 1.0.3
91df7e1
659737b
* Mon Nov 20 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.1-1
659737b
- Update to 1.0.1
659737b
2c35b59
* Sat Jul 29 2017 Peter Robinson <pbrobinson@fedoraproject.org> 0.8.2-1
2c35b59
- Update to 0.8.2
2c35b59
d535d29
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-2
d535d29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d535d29
673e469
* Mon Mar 20 2017 Peter Robinson <pbrobinson@fedoraproject.org> 0.8.1-1
673e469
- Update to 0.8.1
673e469
3af53e8
* Sat Feb 18 2017 Peter Robinson <pbrobinson@fedoraproject.org> 0.8.0-1
3af53e8
- Update to 0.8.0
3af53e8
e5a989b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.7-4
e5a989b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e5a989b
b368a15
* Thu Dec 22 2016 Peter Robinson <pbrobinson@fedoraproject.org> 0.7.7-3
b368a15
- Fix python3 provides
b368a15
c375469
* Fri Dec  2 2016 Peter Robinson <pbrobinson@fedoraproject.org> 0.7.7-2
c375469
- Package updates
c375469
c375469
* Mon Oct 31 2016 Peter Robinson <pbrobinson@fedoraproject.org> 0.7.7-1
c375469
- initial packaging