11Vendor: Microsoft Corporation
22Distribution: Azure Linux
33Name: perl-SNMP_Session
4- Version: 1.13
5- Release: 24 %{?dist }
4+ Version: 1.16
5+ Release: 6 %{?dist }
66Summary: SNMP support for Perl 5
77
8- License: Artistic 2.0
9- URL: http://code.google.com/p/snmp-session/
10- Source0: http://snmp-session.googlecode.com/files/SNMP_Session-%{version }.tar.gz
8+ License: Artistic-2.0
9+ URL: https://github.com/sleinen/snmp-session/
10+ Source0: https://cpan.metacpan.org/authors/id/S/SK/SKIM/SNMP_Session-%{version }.tar.gz#/perl-SNMP_Session-%{version}.tar.gz
11+ Patch0: SNMP_Session-1.13-fix_ivp6.patch
1112BuildArch: noarch
13+ BuildRequires: make
1214BuildRequires: perl-generators
1315BuildRequires: perl(ExtUtils::MakeMaker)
16+ BuildRequires: perl(Test::More)
17+ # Runtime
1418Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
1519
1620%description
@@ -19,37 +23,87 @@ Pure Perl SNMP v1 and SNMP v2 support for Perl 5.
1923The SNMP operations currently supported are "get", "get-next", "get-bulk"
2024and "set", as well as trap generation and reception.
2125
22-
2326%prep
2427%setup -q -n SNMP_Session-%{version }
28+ %patch -P 0 -p1
2529%{__perl} -pi -e ' s{^#!/usr/local/bin/perl\b}{#!%{__perl}}' test/*
2630chmod -c 644 test/*
2731
28-
2932%build
30- %{__perl} Makefile.PL INSTALLDIRS=vendor
31- make %{?_smp_mflags }
32-
33+ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
34+ %{make_build }
3335
3436%install
35- make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
36- find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ' ;'
37- find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2> /dev/null ' ;'
38- chmod -R u+w $RPM_BUILD_ROOT /*
39-
37+ %{make_install }
38+ %{_fixperms } %{buildroot }/*
4039
4140%check
4241make test
4342
44-
4543%files
46- %doc Artistic README README.SNMP_util index.html test/
44+ %license Artistic
45+ %doc README README.SNMP_util index.html test/
4746%{perl_vendorlib} /*
48-
47+ %{ _mandir }/man3/ *
4948
5049%changelog
51- * Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.13-24
52- - Initial CBL-Mariner import from Fedora 32 (license: MIT).
50+ * Fri Dec 20 2024 Sreenivasulu Malavathula <v-smalavathu@microsoft.com> - 1.16-6
51+ - Initial Azure Linux import from Fedora 41 (license: MIT)
52+ - License verified
53+
54+ * Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-5
55+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
56+
57+ * Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-4
58+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
59+
60+ * Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-3
61+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
62+
63+ * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-2
64+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
65+
66+ * Wed Jun 21 2023 Tom Callaway <spot@fedoraproject.org> - 1.16-1
67+ - update to 1.16
68+
69+ * Mon Jun 5 2023 Tom Callaway <spot@fedoraproject.org> - 1.15-1
70+ - update to 1.15
71+
72+ * Mon Jun 05 2023 Michal Josef Špaček <mspacek@redhat.com> - 1.13-34
73+ - Fix IPv6 functionality of SNMP_Session
74+
75+ * Tue Apr 04 2023 Michal Josef Špaček <mspacek@redhat.com> - 1.13-33
76+ - Fix ipv6
77+ - Modernize spec file
78+ - Use %license macro
79+ - Update license to SPDX format
80+
81+ * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-32
82+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
83+
84+ * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-31
85+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
86+
87+ * Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-30
88+ - Perl 5.36 rebuild
89+
90+ * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-29
91+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
92+
93+ * Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-28
94+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
95+
96+ * Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-27
97+ - Perl 5.34 rebuild
98+
99+ * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-26
100+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
101+
102+ * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-25
103+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
104+
105+ * Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-24
106+ - Perl 5.32 rebuild
53107
54108* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-23
55109- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0 commit comments