commit
344688e758
BIN
SNMP_Session-1.13.tar.gz
Normal file
BIN
SNMP_Session-1.13.tar.gz
Normal file
Binary file not shown.
57
perl-SNMP_Session.spec
Normal file
57
perl-SNMP_Session.spec
Normal file
@ -0,0 +1,57 @@
|
||||
Name: perl-SNMP_Session
|
||||
Version: 1.13
|
||||
Release: 20
|
||||
Summary: SNMP_Session - SNMP support for Perl 5
|
||||
License: Artistic 2.0
|
||||
URL: http://code.google.com/p/snmp-session/
|
||||
# git clone https://github.com/sleinen/snmp-session.git
|
||||
# git reset --hard ea593f051e258c0730f6ba3836053a010294a728
|
||||
# tar zcf SNMP_Session-1.13.tar.gz SNMP_Session-1.13
|
||||
Source0: SNMP_Session-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: perl-generators perl-ExtUtils-MakeMaker
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
SNMP_Session - SNMP support for Perl 5.
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n SNMP_Session-%{version} -p1
|
||||
|
||||
%{_bindir}/perl -pi -e 's{^#!/usr/local/bin/perl\b}{#!%{__perl}}' test/*
|
||||
chmod 644 test/*
|
||||
|
||||
%build
|
||||
%{_bindir}/perl Makefile.PL INSTALLDIRS=vendor
|
||||
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license README README.SNMP_util
|
||||
%{_datadir}/perl5
|
||||
|
||||
%files help
|
||||
%defattr(-,root,root)
|
||||
%doc Artistic index.html test/
|
||||
/usr/share/man/man3/Net_SNMP_util.3pm.gz
|
||||
|
||||
%changelog
|
||||
* Fri Dec 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.13-20
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user