package init
This commit is contained in:
parent
3035787edd
commit
ec610f0c57
BIN
Net-SNMP-v6.0.1.tar.gz
Normal file
BIN
Net-SNMP-v6.0.1.tar.gz
Normal file
Binary file not shown.
55
perl-Net-SNMP.spec
Normal file
55
perl-Net-SNMP.spec
Normal file
@ -0,0 +1,55 @@
|
||||
Name: perl-Net-SNMP
|
||||
Version: 6.0.1
|
||||
Release: 23
|
||||
Summary: Object oriented interface to SNMP
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Net-SNMP
|
||||
Source0: https://cpan.metacpan.org/authors/id/D/DT/DTOWN/Net-SNMP-v%{version}.tar.gz
|
||||
|
||||
BuildRequires: coreutils findutils make perl-interpreter perl-generators perl(Config)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) perl(strict) perl(warnings) perl(IO::Socket)
|
||||
BuildRequires: perl(base) perl(bytes) perl(Errno) perl(Exporter) perl(Math::BigInt) perl(Test)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) perl(Carp)
|
||||
Requires: perl(Crypt::DES) >= 2.03
|
||||
Requires: perl(Digest::HMAC) >= 1.00 perl(Digest::MD5) >= 2.11 perl(Digest::SHA1) >= 1.02
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
The SNMP module is an object-oriented interface, a simple network management protocol.
|
||||
|
||||
%package help
|
||||
Summary: some docs for perl-Net-SNMP
|
||||
|
||||
%description help
|
||||
This help package contains some docs.
|
||||
|
||||
%prep
|
||||
%autosetup -n Net-SNMP-v%{version} -p1
|
||||
%{__perl} -pi -e 's|^#!\s+/usr/local/bin/perl|#!%{__perl}|' examples/*.pl
|
||||
chmod -c a-x examples/*.pl
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%{_bindir}/*
|
||||
%{perl_vendorlib}/Net/
|
||||
|
||||
%files help
|
||||
%{_mandir}/man1/*.1*
|
||||
%{_mandir}/man3/*.3pm*
|
||||
%doc Changes README examples/
|
||||
|
||||
%changelog
|
||||
* Wed Mar 11 2020 wangye <wangye54@huawei.com> - 6.0.1-23
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user