Blob Blame History Raw
Name:           python-ncclient
Version:        0.6.12
Release:        %autorelease
%global forgeurl https://github.com/ncclient/ncclient/
%forgemeta
Summary:        Python library for the NETCONF protocol

License:        ASL 2.0
URL:            %{forgeurl}
Source0:        %{forgesource}

BuildArch:      noarch

BuildRequires:  python3-devel

%global common_description %{expand:
ncclient is a Python library that facilitates client-side scripting and
application development around the NETCONF protocol. ncclient was developed by
Shikar Bhushan.net). It is now maintained by Leonidas Poulopoulos (@leopoul)
and Einar Nilsen-Nygaard (@einarnn).

Docs: http://ncclient.readthedocs.org

PyPI: https://pypi.python.org/pypi/ncclient}

%description %{common_description}


%package -n python3-ncclient
Summary:        %{summary}

%description -n python3-ncclient %{common_description}


%package doc
Summary:        Documentation and examples for python-ncclient

BuildRequires:  make
# docs/requirements.txt
BuildRequires:  python3dist(sphinx) >= 3.2.0

%description doc
The python-ncclient-doc package contains detailed documentation and examples
for python-ncclient.


%prep
%forgeautosetup
%py3_shebang_fix examples


%generate_buildrequires
%pyproject_buildrequires -t


%build
%pyproject_wheel

%make_build -C docs html SPHINXOPTS='%{?_smp_mflags}'
rm -vf docs/build/html/.buildinfo


%install
%pyproject_install
%pyproject_save_files ncclient


%check
%tox

 
%files -n python3-ncclient -f %{pyproject_files}


%files doc
%license LICENSE
%doc Changelog
%doc NOTICE
%doc README.md
%doc README.rst
%doc docs/build/html
%doc examples


%changelog
%autochangelog