Compare commits

...

No commits in common. 'c9' and 'i10cs' have entirely different histories.
c9 ... i10cs

2
.gitignore vendored

@ -1 +1 @@
SOURCES/SNMP_Session-1.13.tar.gz
SOURCES/SNMP_Session-1.16.tar.gz

@ -1 +1 @@
7f4de0a9104ad6a0fb71af23ce83c71609c7e674 SOURCES/SNMP_Session-1.13.tar.gz
33d1de08220661aaafcc3b0f2bd00ccd3ff74c27 SOURCES/SNMP_Session-1.16.tar.gz

@ -0,0 +1,12 @@
diff -u -r SNMP_Session-1.13.orig/lib/SNMP_Session.pm SNMP_Session-1.13/lib/SNMP_Session.pm
--- SNMP_Session-1.13.orig/lib/SNMP_Session.pm 2023-06-05 11:48:19.304310300 +0200
+++ SNMP_Session-1.13/lib/SNMP_Session.pm 2023-06-05 11:48:48.422475999 +0200
@@ -622,7 +622,7 @@
$local_hostname,$ipv4only) = @_;
my($remote_addr,$socket,$sockfamily);
- $ipv4only = 1 unless defined $ipv4only;
+ $ipv4only = 1 if defined $ipv4only;
$sockfamily = AF_INET;
$community = 'public' unless defined $community;

@ -1,16 +1,19 @@
Name: perl-SNMP_Session
Version: 1.13
Release: 28%{?dist}
Version: 1.16
Release: 6%{?dist}
Summary: SNMP support for Perl 5
License: Artistic 2.0
URL: http://code.google.com/p/snmp-session/
Source0: http://snmp-session.googlecode.com/files/SNMP_Session-%{version}.tar.gz
License: Artistic-2.0
URL: https://github.com/sleinen/snmp-session/
Source0: https://github.com/sleinen/snmp-session/archive/v%{version}/SNMP_Session-%{version}.tar.gz
Patch0: SNMP_Session-1.13-fix_ivp6.patch
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl(Test::More)
Requires: perl(IO::Socket::INET6)
Requires: perl(Socket6)
%description
Pure Perl SNMP v1 and SNMP v2 support for Perl 5.
@ -21,20 +24,19 @@ and "set", as well as trap generation and reception.
%prep
%setup -q -n SNMP_Session-%{version}
%patch -P 0 -p1
%{__perl} -pi -e 's{^#!/usr/local/bin/perl\b}{#!%{__perl}}' test/*
chmod -c 644 test/*
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%{make_install}
%{_fixperms} %{buildroot}/*
%check
@ -42,17 +44,64 @@ make test
%files
%doc Artistic README README.SNMP_util index.html test/
%license Artistic
%doc README README.SNMP_util index.html test/
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.13-28
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.16-6
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.13-27
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.16-5
- Rebuilt for MSVSphere 10
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.16-5
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jun 21 2023 Tom Callaway <spot@fedoraproject.org> - 1.16-1
- update to 1.16
* Mon Jun 5 2023 Tom Callaway <spot@fedoraproject.org> - 1.15-1
- update to 1.15
* Mon Jun 05 2023 Michal Josef Špaček <mspacek@redhat.com> - 1.13-34
- Fix IPv6 functionality of SNMP_Session
* Tue Apr 04 2023 Michal Josef Špaček <mspacek@redhat.com> - 1.13-33
- Fix ipv6
- Modernize spec file
- Use %license macro
- Update license to SPDX format
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-30
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-27
- Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save