From 8a179245cf1d176eaf18f65e16778362a4506205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 22 Aug 2022 09:33:32 +0200 Subject: [PATCH] Modernize a spec file --- perl-MIME-Charset.spec | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/perl-MIME-Charset.spec b/perl-MIME-Charset.spec index 9c4b725..606e3b2 100644 --- a/perl-MIME-Charset.spec +++ b/perl-MIME-Charset.spec @@ -9,10 +9,9 @@ Source0: https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/MIME-Charset-%{ Patch0: MIME-Charset-1.012-Do-not-install-modules-from-the-Internet.patch BuildArch: noarch BuildRequires: coreutils -BuildRequires: findutils BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(inc::Module::Install) BuildRequires: perl(Module::Install::Metadata) BuildRequires: perl(Module::Install::Win32) @@ -36,7 +35,6 @@ BuildRequires: perl(Test) BuildRequires: perl(Test::More) # Optional tests: BuildRequires: perl(Test::Pod) >= 1.00 -BuildRequires: sed Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) # Filter under-specified symbols @@ -51,16 +49,15 @@ messages on Internet. %patch0 -p1 # Remove bundled modules rm -rf ./inc -sed -i -e '/^inc\//d' MANIFEST +perl -i -ne 'print $_ unless m{^inc/}' MANIFEST %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 DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -%{_fixperms} $RPM_BUILD_ROOT/* +%{make_install} +%{_fixperms} %{buildroot}/* %check make test