2007-01-15 23:31:20 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Net-SNMP (Version 5.2.0)
|
|
|
|
#
|
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
|
|
|
|
BuildRequires: perl-Crypt-DES perl-Digest-HMAC
|
|
|
|
Version: 5.2.0
|
2010-01-11 15:49:19 +00:00
|
|
|
Release: 133
|
2009-06-18 15:09:39 +00:00
|
|
|
Provides: p_nsnmp
|
|
|
|
Obsoletes: p_nsnmp
|
|
|
|
Requires: perl-Digest-HMAC perl-Digest-SHA1 perl-Crypt-DES
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
AutoReqProv: on
|
|
|
|
Group: Development/Libraries/Perl
|
2010-01-11 15:49:19 +00:00
|
|
|
License: Artistic
|
2009-06-18 15:09:39 +00:00
|
|
|
Url: http://search.cpan.org/perldoc?Net::SNMP
|
|
|
|
Summary: Net::SNMP Perl Module
|
|
|
|
Source: Net-SNMP-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-15 23:31:20 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Net::SNMP module implements an object oriented interface to the
|
|
|
|
Simple Network Management Protocol.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
David M. Town <dtown@fore.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Net-SNMP-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
find examples -type f | xargs -n 1 sed -i "s@#!\s*/usr/local/bin/perl@#!/usr/bin/perl@"
|
|
|
|
perl Makefile.PL
|
2010-01-11 15:49:19 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:31:20 +00:00
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes README examples
|
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
%{perl_vendorlib}/Net
|
|
|
|
%{perl_vendorarch}/auto/Net
|
|
|
|
%{_bindir}/*
|
|
|
|
/var/adm/perl-modules/%{name}
|
|
|
|
|
2009-06-18 15:09:39 +00:00
|
|
|
%changelog
|