Compare commits
No commits in common. "c8" and "c10s" have entirely different histories.
5
.gitignore
vendored
5
.gitignore
vendored
@ -1 +1,4 @@
|
||||
SOURCES/SNMP_Session-1.13.tar.gz
|
||||
SNMP_Session-1.12.tar.gz
|
||||
/SNMP_Session-1.13.tar.gz
|
||||
/SNMP_Session-1.15.tar.gz
|
||||
/SNMP_Session-1.16.tar.gz
|
||||
|
||||
@ -1 +0,0 @@
|
||||
7f4de0a9104ad6a0fb71af23ce83c71609c7e674 SOURCES/SNMP_Session-1.13.tar.gz
|
||||
12
SNMP_Session-1.13-fix_ivp6.patch
Normal file
12
SNMP_Session-1.13-fix_ivp6.patch
Normal file
@ -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: 17%{?dist}
|
||||
Version: 1.16
|
||||
Release: 6%{?dist}
|
||||
Summary: SNMP support for Perl 5
|
||||
|
||||
Group: Development/Libraries
|
||||
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,11 +44,89 @@ 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
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.16-6
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* 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
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-25
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-24
|
||||
- Perl 5.32 rebuild
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-21
|
||||
- Perl 5.30 rebuild
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-18
|
||||
- Perl 5.28 rebuild
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
Loading…
Reference in New Issue
Block a user