2006-05-18 09:05:11 +00:00
|
|
|
Name: perl-Net-SNMP
|
2010-11-17 21:36:18 +00:00
|
|
|
Version: 6.0.1
|
2024-06-17 10:44:21 +00:00
|
|
|
Release: 42%{?dist}
|
2006-05-18 09:05:11 +00:00
|
|
|
Summary: Object oriented interface to SNMP
|
|
|
|
|
2023-06-26 14:37:31 +00:00
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
2018-06-04 12:22:30 +00:00
|
|
|
URL: https://metacpan.org/release/Net-SNMP
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DT/DTOWN/Net-SNMP-v%{version}.tar.gz
|
2024-06-17 10:45:04 +00:00
|
|
|
Patch0: Net-SNMP-v6.0.1-Switch_from_Socket6_to_Socket.patch
|
2024-06-17 10:46:04 +00:00
|
|
|
Patch1: Net-SNMP-v6.0.1-Simple_rewrite_to_Digest-HMAC-helpers.patch
|
2024-06-17 10:46:29 +00:00
|
|
|
Patch2: Net-SNMP-v6.0.1-Split_usm.t_to_two_parts.patch
|
2024-06-17 10:46:50 +00:00
|
|
|
Patch3: Net-SNMP-v6.0.1-Add_tests_for_another_usm_scenarios.patch
|
2024-06-17 10:47:12 +00:00
|
|
|
Patch4: Net-SNMP-v6.0.1-Rewrite_from_Digest-SHA1-to-Digest-SHA.patch
|
2006-05-18 09:05:11 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
2015-07-17 08:41:04 +00:00
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: make
|
2017-07-12 13:06:53 +00:00
|
|
|
BuildRequires: perl-interpreter
|
2016-06-24 07:50:28 +00:00
|
|
|
BuildRequires: perl-generators
|
2015-07-17 08:41:04 +00:00
|
|
|
BuildRequires: perl(Config)
|
2023-06-26 14:37:31 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
2015-07-17 08:41:04 +00:00
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
# Run-time:
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
BuildRequires: perl(bytes)
|
|
|
|
# Carp not used at tests
|
|
|
|
# Crypt::DES 2.03 not used at tests
|
2024-06-17 10:46:04 +00:00
|
|
|
# Digest::HMAC_MD5 1.01 not used at tests
|
|
|
|
# Digest::HMAC_SHA1 1.03 not used at tests
|
2015-07-17 08:41:04 +00:00
|
|
|
# Digest::MD5 2.11 not used at tests
|
|
|
|
# Digest::SHA1 1.02 not used at tests
|
|
|
|
BuildRequires: perl(Errno)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(IO::Socket)
|
|
|
|
BuildRequires: perl(Math::BigInt)
|
2023-06-26 14:37:31 +00:00
|
|
|
BuildRequires: perl(Socket)
|
2015-07-17 08:41:04 +00:00
|
|
|
# Optional run-time:
|
|
|
|
# Crypt::Rijndael 1.02 not used at tests
|
|
|
|
# Sys::Hostname not used at tests
|
|
|
|
# Tests:
|
|
|
|
BuildRequires: perl(Test)
|
|
|
|
Requires: perl(Carp)
|
|
|
|
Requires: perl(Crypt::DES) >= 2.03
|
2024-06-17 10:46:04 +00:00
|
|
|
Requires: perl(Digest::HMAC_MD5) => 1.01
|
|
|
|
Requires: perl(Digest::HMAC_SHA1) => 1.03
|
2015-07-17 08:41:04 +00:00
|
|
|
Requires: perl(Digest::MD5) >= 2.11
|
|
|
|
# Optional run-time:
|
|
|
|
# Crypt::Rijndael 1.02
|
|
|
|
|
|
|
|
# Filter under-specified dependencies
|
2024-06-17 10:47:12 +00:00
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Crypt::DES|Digest::HMAC_MD5|Digest::HMAC_SHA1|Digest::MD5)\\)$
|
2006-05-18 09:05:11 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Net::SNMP module implements an object oriented interface to the
|
|
|
|
Simple Network Management Protocol. Perl applications can use the
|
|
|
|
module to retrieve or update information on a remote host using the
|
|
|
|
SNMP protocol. The module supports SNMP version-1, SNMP version-2c
|
|
|
|
(Community-Based SNMPv2), and SNMP version-3. The Net::SNMP module
|
|
|
|
assumes that the user has a basic understanding of the Simple Network
|
|
|
|
Management Protocol and related network management concepts.
|
|
|
|
|
|
|
|
|
2024-06-17 10:45:41 +00:00
|
|
|
%package tests
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
2006-05-18 09:05:11 +00:00
|
|
|
%prep
|
2010-11-17 21:36:18 +00:00
|
|
|
%setup -q -n Net-SNMP-v%{version}
|
2023-06-14 07:36:16 +00:00
|
|
|
%patch -P0 -p1
|
2024-06-17 10:46:04 +00:00
|
|
|
%patch -P1 -p1
|
2024-06-17 10:46:29 +00:00
|
|
|
%patch -P2 -p1
|
2024-06-17 10:46:50 +00:00
|
|
|
%patch -P3 -p1
|
2024-06-17 10:47:12 +00:00
|
|
|
%patch -P4 -p1
|
2023-06-26 14:37:31 +00:00
|
|
|
perl -MConfig -pi -e 's|^#!.*perl|$Config{startperl}|' examples/*.pl
|
|
|
|
|
2006-05-18 09:05:11 +00:00
|
|
|
chmod -c a-x examples/*.pl
|
|
|
|
|
2024-06-17 10:45:41 +00:00
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
for F in t/*.t; do
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
|
|
|
|
chmod +x "$F"
|
|
|
|
done
|
|
|
|
|
2006-05-18 09:05:11 +00:00
|
|
|
|
|
|
|
%build
|
2023-06-26 14:37:31 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
%{make_build}
|
2006-05-18 09:05:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2023-06-26 14:37:31 +00:00
|
|
|
%{make_install}
|
2006-05-18 09:05:11 +00:00
|
|
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
2024-06-17 10:45:41 +00:00
|
|
|
# Install tests
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
#!/bin/sh
|
|
|
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
EOF
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
|
2006-05-18 09:05:11 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc Changes README examples/
|
|
|
|
%{_bindir}/*
|
|
|
|
%{perl_vendorlib}/Net/
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
%{_mandir}/man3/*.3pm*
|
|
|
|
|
|
|
|
|
2024-06-17 10:45:41 +00:00
|
|
|
%files tests
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
2006-05-18 09:05:11 +00:00
|
|
|
%changelog
|
2024-06-17 10:44:21 +00:00
|
|
|
* Tue Jun 27 2024 Michal Josef Špaček <mspacek@redhat.com> - 6.0.1-42
|
2024-06-17 10:46:50 +00:00
|
|
|
- Add patch to add tests for other USM scenarios
|
2024-06-17 10:47:12 +00:00
|
|
|
- Add patch to rewrite from Digest::SHA1 to Digest::SHA
|
2024-06-17 10:46:04 +00:00
|
|
|
- Add patch to rewrite usage of HMAC with same dependencies
|
2024-06-17 10:46:29 +00:00
|
|
|
- Add patch to split test files for better readability
|
2024-06-17 10:44:21 +00:00
|
|
|
- Improve patch for switch from Socket6 to Socket
|
2024-06-17 10:45:41 +00:00
|
|
|
- Package tests
|
2024-06-17 10:45:04 +00:00
|
|
|
- Rename patch to better name with source dist version
|
2024-06-17 10:44:21 +00:00
|
|
|
|
2024-06-24 16:11:46 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 6.0.1-41
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-01-25 19:05:29 +00:00
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-40
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-21 17:27:22 +00:00
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-39
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-07-21 00:26:48 +00:00
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-38
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-06-26 14:37:31 +00:00
|
|
|
* Mon Jun 26 2023 Jitka Plesnikova <jplesnik@redhat.com> - 6.0.1-37
|
|
|
|
- Modernize spec
|
|
|
|
- Update license to SPDX format
|
|
|
|
|
2023-06-14 07:36:16 +00:00
|
|
|
* Wed Jun 14 2023 Petr Salaba <psalaba@redhat.com> - 6.0.1-36
|
|
|
|
- Switch from Socket6 to Socket
|
|
|
|
|
2023-01-20 04:48:36 +00:00
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-35
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-22 09:41:06 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-34
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-05-30 17:22:38 +00:00
|
|
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 6.0.1-33
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
2022-01-21 04:03:44 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-32
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-22 22:38:14 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-31
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-05-21 10:11:57 +00:00
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 6.0.1-30
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
2021-01-27 03:31:49 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-29
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-28 17:45:25 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-28
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-22 17:12:43 +00:00
|
|
|
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 6.0.1-27
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
2020-01-30 03:03:37 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-26
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-26 05:24:37 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-25
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-05-30 12:01:03 +00:00
|
|
|
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 6.0.1-24
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
2019-02-01 22:59:22 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-23
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 19:00:14 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-22
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-28 01:32:58 +00:00
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6.0.1-21
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
2018-02-08 23:34:59 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-20
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-27 05:24:08 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-04 06:06:29 +00:00
|
|
|
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 6.0.1-18
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
2017-02-11 04:32:27 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-05-14 22:53:13 +00:00
|
|
|
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 6.0.1-16
|
|
|
|
- Perl 5.24 rebuild
|
|
|
|
|
2016-02-04 15:02:53 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-07-17 08:41:04 +00:00
|
|
|
* Fri Jul 17 2015 Petr Pisar <ppisar@redhat.com> - 6.0.1-14
|
|
|
|
- Specify all dependencies (bug #1243871)
|
|
|
|
|
2015-06-18 05:02:17 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-04 10:06:03 +00:00
|
|
|
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 6.0.1-12
|
|
|
|
- Perl 5.22 rebuild
|
|
|
|
|
2014-08-27 21:48:18 +00:00
|
|
|
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 6.0.1-11
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-06-07 08:07:00 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-03 23:56:15 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-21 02:03:44 +00:00
|
|
|
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 6.0.1-8
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-02-14 14:07:58 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-20 17:45:45 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-12 11:19:08 +00:00
|
|
|
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 6.0.1-5
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-01-13 16:24:50 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-06-20 16:52:22 +00:00
|
|
|
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.0.1-3
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-02-09 04:40:03 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-11-17 21:36:18 +00:00
|
|
|
* Wed Nov 17 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 6.0.1-1
|
|
|
|
- update to 6.0.1, which removed all occurrences of the "locked" attribute,
|
|
|
|
deprecated in perl 5.12.0
|
|
|
|
- okay to use Socket6 now.
|
|
|
|
|
2010-05-04 11:49:42 +00:00
|
|
|
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 5.2.0-6
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
2009-12-07 18:50:03 +00:00
|
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 5.2.0-5
|
|
|
|
- rebuild against perl 5.10.1
|
|
|
|
|
2009-07-26 13:45:52 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-26 23:23:21 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-03-06 18:03:04 +00:00
|
|
|
* Thu Mar 6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 5.2.0-2
|
|
|
|
- rebuild for new perl
|
|
|
|
|
2007-10-17 01:58:30 +00:00
|
|
|
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 5.2.0-1.1
|
|
|
|
- correct license tag
|
|
|
|
- add BR: perl(ExtUtils::MakeMaker)
|
|
|
|
|
2006-05-18 09:05:11 +00:00
|
|
|
* Sat May 13 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 5.2.0-1
|
|
|
|
- First build.
|