File python-pyhpecw7.spec of Package python-pyhpecw7

#
# spec file for package python-pyhpecw7
#
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define use_build_checks 0

Name:           python-pyhpecw7
Version:        0.0.0.git1460211388.93bc0d3
Release:        0
Summary:        Python Library for HPE Aruba Comware7 platforms
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            https://github.com/HPENetworking/pyhpecw7
Source:         pyhpecw7-%{version}.tar.xz
BuildRequires:  python-devel
BuildRequires:  python-setuptools
%if 0%{?use_build_checks}
BuildRequires:  python-coverage
BuildRequires:  python-devel
BuildRequires:  python-gtextfsm
BuildRequires:  python-ipaddr
BuildRequires:  python-lxml
BuildRequires:  python-mock
BuildRequires:  python-ncclient
BuildRequires:  python-scp
%endif
Requires:       python-gtextfsm
Requires:       python-ipaddr
Requires:       python-lxml
Requires:       python-ncclient
Requires:       python-paramiko
Requires:       python-scp
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This library was built to simplify working with HP Comware 7 switches that
have a NETCONF API. Rather than to have network developers worry about the
underlying NETCONF API, this library provides a means to manage
HP Com7switches through pre-built Python objects that make it extremely
easy to get started programming in an HP environment.

%prep
%setup -q -n pyhpecw7-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%check
%if 0%{?use_build_checks}
make %{?_smp_mflags} unit_tests
%endif

%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%{python_sitelib}/pyhpecw7
# FIXME: use version variable when tagged releases are available
#%{python_sitelib}/pyhpecw7-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/pyhpecw7-0.0.9-py%{py_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by