From dff46f2cbb0dfbff55d0def175500005fb3e6f36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 22 Feb 2021 15:19:10 +0100 Subject: [PATCH] Modernize packaging --- perl-Crypt-DES.spec | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/perl-Crypt-DES.spec b/perl-Crypt-DES.spec index 1b047cb..41d43e3 100644 --- a/perl-Crypt-DES.spec +++ b/perl-Crypt-DES.spec @@ -12,12 +12,14 @@ Summary: Perl DES encryption module License: BSD URL: https://metacpan.org/release/Crypt-DES Source0: https://cpan.metacpan.org/authors/id/D/DP/DPARIS/Crypt-DES-%{version}.tar.gz -BuildRequires: make -BuildRequires: perl-interpreter +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators -BuildRequires: gcc -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(DynaLoader) @@ -42,21 +44,20 @@ DES encryption module. %setup -q -n Crypt-DES-%{version} %build -perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" +%{make_build} %install -rm -rf $RPM_BUILD_ROOT -make pure_install DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +%{make_install} +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete %{_fixperms} $RPM_BUILD_ROOT %check make test %files -%doc COPYRIGHT README +%license COPYRIGHT +%doc README %{perl_vendorarch}/auto/Crypt/ %{perl_vendorarch}/Crypt/ %{_mandir}/man3/Crypt::DES.3pm* @@ -64,6 +65,7 @@ make test %changelog * Mon Feb 22 2021 Petr Pisar - 2.07-24 - Disable optional tests on RHEL > 8 +- Modernize packaging * Wed Jan 27 2021 Fedora Release Engineering - 2.07-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild