LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-onkyo-eiscp.spec of Package python-onkyo-eiscp (Project home:stefan_van_der_eijk)

%global srcname onkyo-eiscp
Name:           python-srcname-eiscp
Version:        1.2.5
Release:        1
Url:            https://pypi.python.org/pypi/%{srcname}/
Summary:        Python module that controls Onkyo receivers over ethernet
License:        MIT
Group:          Development/Languages/Python
Source:         http://pypi.python.org/packages/source/o/%{srcname}/%{srcname}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  python2-devel python3-devel
#BuildRequires:  python-setuptools
BuildRequires:	python2-docopt python3-docopt
BuildRequires:	python2-netifaces python3-netifaces
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif

%description
Python module that controls Onkyo receivers over ethernet.

See http://pypi.python.org/pypi/onkyo-eiscp/

%package -n python2-%{srcname}
Summary:        %{summary}
Requires:	python2-docopt
%{?python_provide:%python_provide python2-%{srcname}}

%description -n python2-%{srcname}
Python module that controls Onkyo receivers over ethernet.

See http://pypi.python.org/pypi/onkyo-eiscp/

%package -n python3-%{srcname}
Summary:        %{summary}
Requires:	python3-docopt
%{?python_provide:%python_provide python3-%{srcname}}

%description -n python3-%{srcname}
Python module that controls Onkyo receivers over ethernet.

See http://pypi.python.org/pypi/onkyo-eiscp/

%prep
%autosetup -n %{srcname}-%{version}

%build
%py2_build
%py3_build

%install
%py2_install
%py3_install

%check
%{__python2} setup.py test
%{__python3} setup.py test

%files -n python2-%{srcname}
%doc README.rst
%{python2_sitelib}/*

%files -n python3-%{srcname}
%doc README.rst
%{python3_sitelib}/*
%{_bindir}/onkyo

%changelog
* Sun Jul 15 2018 stefan.van.der.eijk@gmail.com - 1.2.5-1
- 1.2.5

* Sat Dec 23 2017 stefan.van.der.eijk@gmail.com - 1.2.4-1
- 1.2.4

* Sun Oct 23 2016 stefan.van.der.eijk@gmail.com - 1.0-1
- 1.0

* Thu Jul 16 2015 stefan.van.der.eijk@gmail.com
- Initial package