2007-01-15 23:31:20 +00:00
|
|
|
#
|
2010-08-02 01:30:06 +00:00
|
|
|
# spec file for package perl-Net-SNMP (Version 6.0.0)
|
2007-01-15 23:31:20 +00:00
|
|
|
#
|
2010-01-11 15:49:19 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:31:20 +00:00
|
|
|
#
|
2009-06-18 15:09:39 +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 http://bugs.opensuse.org/
|
2007-01-15 23:31:20 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-18 15:09:39 +00:00
|
|
|
|
|
|
|
Name: perl-Net-SNMP
|
2010-11-19 11:39:57 +00:00
|
|
|
%define cpan_name Net-SNMP
|
2010-08-02 01:30:06 +00:00
|
|
|
Summary: Object oriented interface to SNMP
|
2010-11-19 11:39:57 +00:00
|
|
|
Version: 6.0.1
|
2010-08-02 01:30:06 +00:00
|
|
|
Release: 1
|
|
|
|
License: GPL+ or Artistic
|
2009-06-18 15:09:39 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-08-02 01:30:06 +00:00
|
|
|
Url: http://search.cpan.org/dist/Net-SNMP/
|
|
|
|
#Source: http://www.cpan.org/modules/by-module/Net/Net-SNMP-v%{version}.tar.gz
|
|
|
|
Source: %{cpan_name}-v%{version}.tar.bz2
|
|
|
|
BuildArch: noarch
|
2009-06-18 15:09:39 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-08-02 01:30:06 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
%endif
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Crypt::DES) >= 2.03
|
|
|
|
BuildRequires: perl(Crypt::Rijndael) >= 1.02
|
|
|
|
BuildRequires: perl(Digest::HMAC) >= 1.00
|
|
|
|
BuildRequires: perl(Digest::MD5) >= 2.11
|
|
|
|
BuildRequires: perl(Digest::SHA1) >= 1.02
|
|
|
|
BuildRequires: perl(Errno)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(IO::Socket)
|
|
|
|
BuildRequires: perl(Socket6) >= 0.23
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Requires: perl(Carp)
|
|
|
|
Requires: perl(Crypt::DES) >= 2.03
|
|
|
|
Requires: perl(Crypt::Rijndael) >= 1.02
|
|
|
|
Requires: perl(Digest::HMAC) >= 1.00
|
|
|
|
Requires: perl(Digest::MD5) >= 2.11
|
|
|
|
Requires: perl(Digest::SHA1) >= 1.02
|
|
|
|
Requires: perl(Errno)
|
|
|
|
Requires: perl(Exporter)
|
|
|
|
Requires: perl(IO::Socket)
|
|
|
|
Requires: perl(Socket6) >= 0.23
|
2007-01-15 23:31:20 +00:00
|
|
|
|
|
|
|
%description
|
2010-08-02 01:30:06 +00:00
|
|
|
The Net::SNMP module abstracts the intricate details of the Simple
|
|
|
|
Network Management Protocol by providing a high level programming
|
|
|
|
interface to the protocol. Each Net::SNMP object provides a one-to-one
|
|
|
|
mapping between a Perl object and a remote SNMP agent or manager. Once an
|
|
|
|
object is created, it can be used to perform the basic protocol exchange
|
|
|
|
actions defined by SNMP.
|
2007-01-15 23:31:20 +00:00
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
David M. Town <dtown@fore.com>
|
|
|
|
|
|
|
|
%prep
|
2010-08-02 01:30:06 +00:00
|
|
|
%setup -q -n %{cpan_name}-v%{version}
|
2007-01-15 23:31:20 +00:00
|
|
|
|
|
|
|
%build
|
2010-08-02 01:30:06 +00:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build
|
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
2007-01-15 23:31:20 +00:00
|
|
|
|
|
|
|
%install
|
2010-08-02 01:30:06 +00:00
|
|
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:20 +00:00
|
|
|
|
|
|
|
%clean
|
2010-08-02 01:30:06 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2007-01-15 23:31:20 +00:00
|
|
|
|
2010-08-02 01:30:06 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
2010-11-19 11:39:57 +00:00
|
|
|
%doc Changes LICENSE README examples
|
2007-01-15 23:31:20 +00:00
|
|
|
|
2009-06-18 15:09:39 +00:00
|
|
|
%changelog
|