2020-03-10 15:51:38 +08:00
|
|
|
Name: perl-SNMP_Session
|
|
|
|
|
Version: 1.13
|
2020-09-11 13:48:16 +08:00
|
|
|
Release: 21
|
2020-03-10 15:51:38 +08:00
|
|
|
Summary: SNMP_Session - SNMP support for Perl 5
|
|
|
|
|
License: Artistic 2.0
|
2020-09-11 13:48:16 +08:00
|
|
|
URL: http://github.com/sleinen/snmp-session/
|
2020-03-10 15:51:38 +08:00
|
|
|
# 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
|
2020-09-11 13:48:16 +08:00
|
|
|
* Thu Sep 10 2020 Ge Wang <wangge20@huawei.com> - 1.13-21
|
|
|
|
|
- Modify homepage Url
|
|
|
|
|
|
2020-03-10 15:51:38 +08:00
|
|
|
* Fri Dec 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.13-20
|
|
|
|
|
- Package init
|
|
|
|
|
|