Skip to content

Commit bc6f042

Browse files
authored
perl-SNMP_Session: Update Version from 1.13 -> 1.16 (#11616)
1 parent 2ea6a94 commit bc6f042

4 files changed

Lines changed: 90 additions & 23 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -u -r SNMP_Session-1.13.orig/lib/SNMP_Session.pm SNMP_Session-1.13/lib/SNMP_Session.pm
2+
--- SNMP_Session-1.13.orig/lib/SNMP_Session.pm 2023-06-05 11:48:19.304310300 +0200
3+
+++ SNMP_Session-1.13/lib/SNMP_Session.pm 2023-06-05 11:48:48.422475999 +0200
4+
@@ -622,7 +622,7 @@
5+
$local_hostname,$ipv4only) = @_;
6+
my($remote_addr,$socket,$sockfamily);
7+
8+
- $ipv4only = 1 unless defined $ipv4only;
9+
+ $ipv4only = 1 if defined $ipv4only;
10+
$sockfamily = AF_INET;
11+
12+
$community = 'public' unless defined $community;
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"Signatures": {
3-
"SNMP_Session-1.13.tar.gz": "a1c6cf5a8893447ab5a6dc38d5bb04b5d492acabb1f282559f9d76b61272ab5f"
3+
"perl-SNMP_Session-1.16.tar.gz": "38dd2fabcb6784c35ffa97d248d646d4f663e3a4b871b324033ae4951221e5e4"
44
}
55
}
6+

SPECS-EXTENDED/perl-SNMP_Session/perl-SNMP_Session.spec

Lines changed: 74 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
Vendor: Microsoft Corporation
22
Distribution: Azure Linux
33
Name: perl-SNMP_Session
4-
Version: 1.13
5-
Release: 24%{?dist}
4+
Version: 1.16
5+
Release: 6%{?dist}
66
Summary: 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
1112
BuildArch: noarch
13+
BuildRequires: make
1214
BuildRequires: perl-generators
1315
BuildRequires: perl(ExtUtils::MakeMaker)
16+
BuildRequires: perl(Test::More)
17+
# Runtime
1418
Requires: 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.
1923
The SNMP operations currently supported are "get", "get-next", "get-bulk"
2024
and "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/*
2630
chmod -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
4241
make 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

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19603,8 +19603,8 @@
1960319603
"type": "other",
1960419604
"other": {
1960519605
"name": "perl-SNMP_Session",
19606-
"version": "1.13",
19607-
"downloadUrl": "http://snmp-session.googlecode.com/files/SNMP_Session-1.13.tar.gz"
19606+
"version": "1.16",
19607+
"downloadUrl": "https://cpan.metacpan.org/authors/id/S/SK/SKIM/SNMP_Session-1.16.tar.gz"
1960819608
}
1960919609
}
1961019610
},

0 commit comments

Comments
 (0)