diff --git a/perl-SNMP_Session.spec b/perl-SNMP_Session.spec index d03d1ad..542dfa0 100644 --- a/perl-SNMP_Session.spec +++ b/perl-SNMP_Session.spec @@ -7,7 +7,7 @@ License: Artistic-2.0 URL: http://code.google.com/p/snmp-session/ Source0: http://snmp-session.googlecode.com/files/SNMP_Session-%{version}.tar.gz BuildArch: noarch -BuildRequires: make +BuildRequires: make BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) @@ -25,15 +25,13 @@ 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 @@ -48,6 +46,7 @@ make test %changelog * Tue Apr 04 2023 Michal Josef Špaček - 1.13-33 +- Modernize spec file - Use %license macro - Update license to SPDX format