2020-11-30 13:14:19 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Net-SNMP-Mixin-NXOSDot1dStp
|
|
|
|
#
|
2024-07-25 21:30:01 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-11-30 13:14:19 +00:00
|
|
|
#
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-07-25 21:30:01 +00:00
|
|
|
%define cpan_name Net-SNMP-Mixin-NXOSDot1dStp
|
2020-11-30 13:14:19 +00:00
|
|
|
Name: perl-Net-SNMP-Mixin-NXOSDot1dStp
|
2024-07-25 21:30:01 +00:00
|
|
|
Version: 0.10.0
|
2020-11-30 13:14:19 +00:00
|
|
|
Release: 0
|
2024-07-25 21:30:01 +00:00
|
|
|
# 0.01 -> normalize -> 0.10.0
|
|
|
|
%define cpan_version 0.01
|
2020-11-30 13:14:19 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2024-07-25 21:30:01 +00:00
|
|
|
Summary: Mixin class for 802.1D spanning tree information from Cisco NXOS devices
|
2020-11-30 13:21:20 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-07-25 21:30:01 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAISSMAI/%{cpan_name}-%{cpan_version}.tar.gz
|
2020-11-30 13:14:19 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:16:07 +02:00
|
|
|
Source100: README.md
|
2020-11-30 13:14:19 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(Net::SNMP) >= 6.0.0
|
2024-07-25 21:30:01 +00:00
|
|
|
BuildRequires: perl(Net::SNMP::Mixin) >= 0.140
|
2020-11-30 13:14:19 +00:00
|
|
|
BuildRequires: perl(Sub::Exporter) >= 0.978
|
|
|
|
Requires: perl(Net::SNMP) >= 6.0.0
|
2024-07-25 21:30:01 +00:00
|
|
|
Requires: perl(Net::SNMP::Mixin) >= 0.140
|
2020-11-30 13:14:19 +00:00
|
|
|
Requires: perl(Sub::Exporter) >= 0.978
|
2024-07-25 21:30:01 +00:00
|
|
|
Provides: perl(Net::SNMP::Mixin::NXOSDot1dStp) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2020-11-30 13:14:19 +00:00
|
|
|
%{perl_requires}
|
|
|
|
# MANUAL BEGIN
|
|
|
|
BuildRequires: netcfg
|
|
|
|
# MANUAL END
|
|
|
|
|
|
|
|
%description
|
|
|
|
This mixin reads data from the *dot1dStp* group out of the BRIDGE-MIB.
|
|
|
|
Normally it's implemented by those bridges that support the Spanning Tree
|
|
|
|
Protocol. For Cisco NXOS devices the *mst-0* context is used behind the
|
|
|
|
scenes.
|
|
|
|
|
|
|
|
%prep
|
2024-07-25 21:30:01 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
|
2020-11-30 13:14:19 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
sed -i "s_/env perl_/perl_" examples/nxosstp.pl
|
|
|
|
# MANUAL END
|
|
|
|
|
|
|
|
%build
|
2024-07-25 21:30:01 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2020-11-30 13:14:19 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%install
|
2024-07-25 21:30:01 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2020-11-30 13:14:19 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2020-11-30 13:21:20 +00:00
|
|
|
%doc Changes examples README
|
|
|
|
%license Artistic LICENSE
|
2020-11-30 13:14:19 +00:00
|
|
|
|
|
|
|
%changelog
|