Blob Blame History Raw
Name:           python-ncclient
Version:        0.6.12
Release:        %autorelease
%global forgeurl
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 It is now maintained by Leonidas Poulopoulos (@leopoul)
and Einar Nilsen-Nygaard (@einarnn).



%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.

%py3_shebang_fix examples

%pyproject_buildrequires -t


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

%pyproject_save_files ncclient


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

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