## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %define real_name Net-ARP Name: perl-Net-ARP Version: 1.0.12 Release: %autorelease Summary: Create and Send ARP Packets License: GPLv2 URL: https://metacpan.org/release/%{real_name} Source0: https://cpan.metacpan.org/authors/id/C/CR/CRAZYDJ/%{real_name}-%{version}.tar.gz Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: make BuildRequires: gcc BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) %{?perl_default_filter} %description This module is a Perl extension to create and send ARP packets and lookup local or remote mac addresses. You do not need to install any additional libraries like Libnet to compile this extension. It uses kernel header files to create the packets. %prep %setup -q -n %{real_name}-%{version} chmod -x README *.pm *.c *.h %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' %{_fixperms} %{buildroot}/* %check # The tests for this package require root privileges and network access, # therefore for automated building we need to leave it out. # #make test # %files %doc Changes README %{perl_vendorarch}/Net/ %{_mandir}/man3/Net::ARP.3pm* %{perl_vendorarch}/auto/Net/ %changelog * Fri Jul 22 2022 Fedora Release Engineering 1.0.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova 1.0.12-2 - Perl 5.36 rebuild * Sat May 21 2022 Robin Lee 1.0.12-1 - New release 1.0.12 (RHBZ#2084076) * Fri Jan 21 2022 Fedora Release Engineering - 1.0.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.0.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 1.0.11-3 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.0.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 8 2020 Robin Lee - 1.0.11-1 - Update to 1.0.11 * Tue Jul 28 2020 Fedora Release Engineering - 1.0.9-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Jitka Plesnikova - 1.0.9-18 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.0.9-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.0.9-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 30 2019 Jitka Plesnikova - 1.0.9-15 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.0.9-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.0.9-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 27 2018 Jitka Plesnikova - 1.0.9-12 - Perl 5.28 rebuild * Sat Mar 10 2018 Robin Lee - 1.0.9-11 - BR gcc for http://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot * Thu Feb 08 2018 Fedora Release Engineering - 1.0.9-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 1.0.9-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.0.9-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 1.0.9-7 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.0.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 1.0.9-5 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.0.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.0.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 03 2015 Jitka Plesnikova - 1.0.9-2 - Perl 5.22 rebuild * Sun Oct 26 2014 Robin Lee - 1.0.9-1 - Update to 1.0.9 * Tue Aug 26 2014 Jitka Plesnikova - 1.0.8-4 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 1.0.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 3 2013 Robin Lee - 1.0.8-1 - Update to 1.0.8 - License changed from 'GPL+ or Artistic' to 'GPLv2' - Co-own directories following convention in Perl packages - Other cleanups * Wed Jul 17 2013 Petr Pisar - 1.0.6-11.1 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.0.6-10.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 1.0.6-9.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jun 08 2012 Petr Pisar - 1.0.6-8.1 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 1.0.6-7.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Jun 17 2011 Marcela Mašláňová - 1.0.6-6.1 - Perl mass rebuild * Tue Feb 08 2011 Fedora Release Engineering - 1.0.6-5.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 21 2010 Marcela Maslanova - 1.0.6-4.1 - 661697 rebuild for fixing problems with vendorach/lib * Tue May 04 2010 Marcela Maslanova - 1.0.6-3.1 - Mass rebuild with perl-5.12.0 * Fri Nov 06 2009 BJ Dierkes - 1.0.6-2.1 - BuildRequires: perl(ExtUtils::MakeMaker) * Tue Nov 03 2009 BJ Dierkes - 1.0.6-2 - Set _use_internal_dependency_generator to 0 as well as override __find_provides in prep to remove unwanted provides. - Use make pure_install - Rename spec to match package name * Thu Oct 29 2009 BJ Dierkes - 1.0.6-1 - Initial spec build (modified from perl-Net-SNMP) - Added Patch0: Net-Arp-1.0.6-tests.patch