diff --git a/SNMP_Session-1.13.tar.gz b/SNMP_Session-1.13.tar.gz new file mode 100644 index 0000000..1101c62 Binary files /dev/null and b/SNMP_Session-1.13.tar.gz differ diff --git a/perl-SNMP_Session.spec b/perl-SNMP_Session.spec new file mode 100644 index 0000000..2bfd781 --- /dev/null +++ b/perl-SNMP_Session.spec @@ -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 - 1.13-20 +- Package init +