2019-10-11 08:18:44 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-napalm-procurve
|
|
|
|
|
#
|
2025-08-01 04:13:14 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-10-11 08:18:44 +00:00
|
|
|
# Copyright (c) 2019, 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.
|
|
|
|
|
|
2020-03-30 12:54:29 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2019-10-11 08:18:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-napalm-procurve
|
2020-08-03 16:00:54 +00:00
|
|
|
Version: 0.7.0
|
2019-10-11 08:18:44 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: NAPALM - HP ProCurve network driver
|
2020-03-30 12:54:29 +00:00
|
|
|
License: Apache-2.0
|
|
|
|
|
URL: https://github.com/ixs/napalm-procurve
|
2019-10-11 08:18:44 +00:00
|
|
|
Source: https://github.com/ixs/napalm-procurve/archive/%{version}.tar.gz#/napalm-procurve-%{version}.tar.gz
|
2021-03-16 04:35:51 +00:00
|
|
|
Patch0: setup-parse-requirements.patch
|
2022-08-27 09:55:34 +00:00
|
|
|
#PATCH-FIX-UPSTREAM https://github.com/ixs/napalm-procurve/pull/29 float speed
|
|
|
|
|
Patch1: float-speed.patch
|
2022-10-05 12:09:04 +00:00
|
|
|
#PATCH-FIX-OPENSUSE fix-linter.patch remove pyflakes from code lint because it's failing
|
|
|
|
|
Patch2: fix-linter.patch
|
2024-12-13 10:41:18 +00:00
|
|
|
# PATCH-FIX-UPSTREAM https://github.com/ixs/napalm-procurve/pull/33 compatibility with Python 3.13
|
|
|
|
|
Patch3: py313.patch
|
2019-10-11 08:18:44 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-03-30 12:54:29 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-10-11 08:18:44 +00:00
|
|
|
# SECTION test requirements
|
2020-07-20 16:35:18 +00:00
|
|
|
BuildRequires: %{python_module napalm >= 3.0.0}
|
2019-10-11 08:18:44 +00:00
|
|
|
BuildRequires: %{python_module netmiko}
|
2020-03-30 12:54:29 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-10-11 08:18:44 +00:00
|
|
|
# /SECTION
|
|
|
|
|
BuildRequires: fdupes
|
2020-07-20 16:35:18 +00:00
|
|
|
Requires: python-napalm >= 3.0.0
|
2019-10-11 08:18:44 +00:00
|
|
|
Requires: python-netmiko
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
ProCurve driver support for Napalm network automation.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n napalm-procurve-%{version}
|
2021-03-16 04:35:51 +00:00
|
|
|
%autopatch -p1
|
2019-10-11 08:18:44 +00:00
|
|
|
|
2023-01-11 08:28:00 +00:00
|
|
|
sed -i -e '/addopts/d' setup.cfg
|
|
|
|
|
|
2019-10-11 08:18:44 +00:00
|
|
|
%build
|
2025-08-01 04:13:14 +00:00
|
|
|
%pyproject_wheel
|
2019-10-11 08:18:44 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-08-01 04:13:14 +00:00
|
|
|
%pyproject_install
|
2019-10-11 08:18:44 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2021-09-13 08:52:04 +00:00
|
|
|
# gh#ixs/napalm-procurve#19
|
2023-01-11 08:28:00 +00:00
|
|
|
# gh#ixs/napalm-procurve#30
|
|
|
|
|
%pytest -k 'not (test_method_signatures or test_get_config_filtered or test_get_facts)'
|
2019-10-11 08:18:44 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS README.md
|
2023-01-11 08:28:00 +00:00
|
|
|
%{python_sitelib}/napalm_procurve
|
2025-08-01 04:13:14 +00:00
|
|
|
%{python_sitelib}/napalm_procurve-%{version}.dist-info
|
2019-10-11 08:18:44 +00:00
|
|
|
|
|
|
|
|
%changelog
|