2011-05-01 11:01:02 +00:00
|
|
|
#
|
2015-04-14 05:29:28 +00:00
|
|
|
# spec file for package perl-SNMP-Info
|
2011-05-01 11:01:02 +00:00
|
|
|
#
|
2018-02-08 05:54:37 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-05-01 11:01:02 +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.
|
|
|
|
|
|
2018-12-20 20:26:47 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-05-01 11:01:02 +00:00
|
|
|
#
|
|
|
|
|
|
2015-04-14 05:29:28 +00:00
|
|
|
|
2011-05-01 11:01:02 +00:00
|
|
|
Name: perl-SNMP-Info
|
2018-12-20 20:26:47 +00:00
|
|
|
Version: 3.63
|
2015-04-14 05:29:28 +00:00
|
|
|
Release: 0
|
2011-05-01 11:01:02 +00:00
|
|
|
%define cpan_name SNMP-Info
|
2015-04-14 05:29:28 +00:00
|
|
|
Summary: OO Interface to Network devices and MIBs through SNMP
|
|
|
|
|
License: BSD-3-Clause
|
2007-11-02 18:10:12 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2018-12-20 20:26:47 +00:00
|
|
|
Url: https://metacpan.org/release/%{cpan_name}
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/O/OL/OLIVER/%{cpan_name}-%{version}.tar.gz
|
2015-09-21 18:32:58 +00:00
|
|
|
Source1: cpanspec.yml
|
2011-05-01 11:01:02 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-macros
|
2018-04-10 05:23:47 +00:00
|
|
|
BuildRequires: perl(Class::Inspector)
|
|
|
|
|
BuildRequires: perl(File::Slurper)
|
2017-07-01 05:38:17 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.420000
|
2018-07-23 08:54:14 +00:00
|
|
|
BuildRequires: perl(NetAddr::IP) >= 4.068
|
2018-04-10 05:23:47 +00:00
|
|
|
BuildRequires: perl(Path::Class)
|
2011-05-01 11:01:02 +00:00
|
|
|
BuildRequires: perl(SNMP)
|
2018-04-10 05:23:47 +00:00
|
|
|
BuildRequires: perl(Test::Class::Most)
|
2018-02-08 05:54:37 +00:00
|
|
|
BuildRequires: perl(Test::Distribution)
|
2018-04-10 05:23:47 +00:00
|
|
|
BuildRequires: perl(Test::Exception) >= 0.430000
|
|
|
|
|
BuildRequires: perl(Test::MockObject::Extends)
|
2017-07-01 05:38:17 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2018-07-23 08:54:14 +00:00
|
|
|
Requires: perl(NetAddr::IP) >= 4.068
|
2011-05-01 11:01:02 +00:00
|
|
|
Requires: perl(SNMP)
|
2018-02-08 05:54:37 +00:00
|
|
|
Recommends: perl(Class::ISA)
|
|
|
|
|
Recommends: perl(File::Slurp)
|
|
|
|
|
Recommends: perl(Module::Info)
|
|
|
|
|
Recommends: perl(Module::Load)
|
|
|
|
|
Recommends: perl(PPI)
|
2011-05-01 11:01:02 +00:00
|
|
|
%{perl_requires}
|
2007-11-02 18:10:12 +00:00
|
|
|
|
|
|
|
|
%description
|
2011-05-01 11:01:02 +00:00
|
|
|
SNMP::Info gives an object oriented interface to information obtained
|
|
|
|
|
through SNMP.
|
|
|
|
|
|
|
|
|
|
This module is geared towards network devices. Subclasses exist for a
|
|
|
|
|
number of network devices and common MIBs.
|
|
|
|
|
|
|
|
|
|
The idea behind this module is to give a common interface to data from
|
|
|
|
|
network devices, leaving the device-specific hacks behind the scenes in
|
|
|
|
|
subclasses.
|
|
|
|
|
|
|
|
|
|
In the SYNOPSIS example we fetch the name of all the ports on the device
|
|
|
|
|
and the duplex setting for that port with two methods -- interfaces() and
|
|
|
|
|
i_duplex().
|
2007-11-02 18:10:12 +00:00
|
|
|
|
2011-05-01 11:01:02 +00:00
|
|
|
The information may be coming from any number of MIB files and is very
|
|
|
|
|
vendor specific. SNMP::Info provides you a common method for all supported
|
|
|
|
|
devices.
|
|
|
|
|
|
|
|
|
|
Adding support for your own device is easy, and takes little SNMP
|
|
|
|
|
knowledge.
|
|
|
|
|
|
|
|
|
|
The module is not limited to network devices. Any MIB or device can be
|
|
|
|
|
given an objected oriented front-end by making a module that consists of a
|
|
|
|
|
couple hashes. See EXTENDING SNMP::INFO.
|
2007-11-02 18:10:12 +00:00
|
|
|
|
|
|
|
|
%prep
|
2011-05-01 11:01:02 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2016-01-28 21:11:19 +00:00
|
|
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
2007-11-02 18:10:12 +00:00
|
|
|
|
|
|
|
|
%build
|
2018-12-20 20:26:47 +00:00
|
|
|
perl Build.PL installdirs=vendor
|
2017-07-01 05:38:17 +00:00
|
|
|
./Build build flags=%{?_smp_mflags}
|
2011-05-01 11:01:02 +00:00
|
|
|
|
|
|
|
|
%check
|
2017-07-01 05:38:17 +00:00
|
|
|
./Build test
|
2007-11-02 18:10:12 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-07-01 05:38:17 +00:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2011-05-01 11:01:02 +00:00
|
|
|
%perl_gen_filelist
|
2007-11-02 18:10:12 +00:00
|
|
|
|
2011-05-01 11:01:02 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
|
%defattr(-,root,root,755)
|
2018-02-08 05:54:37 +00:00
|
|
|
%doc Changes contrib README
|
2017-07-01 05:38:17 +00:00
|
|
|
%license LICENSE
|
2007-11-02 18:10:12 +00:00
|
|
|
|
|
|
|
|
%changelog
|