File python-junos-eznc.spec of Package python-junos-eznc

#
# spec file for package python-junos-eznc
#
# 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/


Name:           python-junos-eznc
Version:        2.0.0
Release:        0
License:        Apache-2.0
Summary:        Junos 'EZ' automation for non-programmers
Url:            http://www.github.com/Juniper/py-junos-eznc
Group:          Development/Languages/Python
Source:         https://pypi.io/packages/source/j/junos-eznc/junos-eznc-%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRequires:  fdupes
Requires:       python-lxml
Requires:       python-ncclient
Requires:       python-paramiko
Requires:       python-scp
Requires:       python-jinja2
Requires:       python-PyYAML
Requires:       python-netaddr
Requires:       python-six
Requires:       python-pyserial
BuildArch:      noarch

%description
Junos PyEZ is designed to provide the same capabilities as a user would have
on the Junos CLI, but in an environment built for automation tasks.
These capabilities include, but are not limited to:

 - Remote connectivity and management of Junos devices via NETCONF
 - Provide "facts" about the device
 - Retrieve "operational" or "run-state" information
 - Retrieve configuration information
 - Make configuration changes in unstructured and structured ways
 - Provide common utilities for tasks such as secure copy of files and
   software updates

%prep
%setup -q -n junos-eznc-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# remove unneeded files
rm -f %{buildroot}/%{python_sitelib}/junos_eznc-%{version}-py%{py_ver}-nspkg.pth
# FIXME: __init__.py should there by default otherwise the module could not be found
touch %{buildroot}/%{python_sitelib}/jnpr/__init__.py
%fdupes -s %{buildroot}

%files
%defattr(-,root,root,-)
%doc README.txt
%{python_sitelib}/jnpr
%{python_sitelib}/junos_eznc-%{version}-py%{py_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by