Modernize spec
This commit is contained in:
parent
6b69634075
commit
f98d825843
@ -18,7 +18,7 @@ BuildRequires: perl(base)
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Config)
|
||||
BuildRequires: perl(DynaLoader)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(Test)
|
||||
BuildRequires: perl(vars)
|
||||
@ -37,16 +37,12 @@ OpenSSL modules, such as key parameters from Crypt::OpenSSL::RSA.
|
||||
chmod a-x LICENSE README Changes
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
%{make_build}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
|
||||
find %{buildroot} -type f -name .packlist -delete
|
||||
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
%{make_install}
|
||||
find %{buildroot} -type f -name '*.bs' -size 0 -delete
|
||||
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
@ -55,9 +51,9 @@ make test
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc Changes README
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/auto/Crypt*
|
||||
%{perl_vendorarch}/Crypt/
|
||||
%{_mandir}/man3/*
|
||||
%{_mandir}/man3/Crypt::OpenSSL::Bignum*
|
||||
|
||||
%changelog
|
||||
* Wed Jun 07 2023 Michal Josef Špaček <mspacek@redhat.com> - 0.09-21
|
||||
|
||||
Loading…
Reference in New Issue
Block a user