perl-SNMP_Session/perl-SNMP_Session.spec
cherry530 64aeb7545b Upgrade version to 1.16
Signed-off-by: cherry530 <707078654@qq.com>
2023-09-09 18:30:29 +08:00

63 lines
1.4 KiB
RPMSpec

Name: perl-SNMP_Session
Version: 1.16
Release: 1
Summary: SNMP_Session - SNMP support for Perl 5
License: Artistic 2.0
URL: http://github.com/sleinen/snmp-session/
Source0: https://github.com/sleinen/snmp-session/archive/v%{version}/SNMP_Session-%{version}.tar.gz
Patch0: Fix-ipv6-and-add-backward-compatible-new-networking.patch
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/
%{_mandir}/man3/*
%changelog
* Sat Sep 09 2023 xu_ping <707078654@qq.com> - 1.16-1
- Upgrade version to 1.16
* Thu Sep 10 2020 Ge Wang <wangge20@huawei.com> - 1.13-21
- Modify homepage Url
* Fri Dec 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.13-20
- Package init