From 5c2ed0e8a58eb95cc01934fa31a10815d494fcb4 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Mar 10 2020 13:18:22 +0000 Subject: Modernize spec - Drop bundled modules and depend on them instead - Use %{make_build} and %{make_install} --- diff --git a/perl-MIME-tools.spec b/perl-MIME-tools.spec index c94535c..89cdb86 100644 --- a/perl-MIME-tools.spec +++ b/perl-MIME-tools.spec @@ -1,7 +1,7 @@ Summary: Modules for parsing and creating MIME entities in Perl Name: perl-MIME-tools Version: 5.509 -Release: 10%{?dist} +Release: 11%{?dist} License: GPL+ or Artistic URL: https://metacpan.org/release/MIME-tools Source0: https://cpan.metacpan.org/modules/by-module/MIME/MIME-tools-%{version}.tar.gz @@ -9,12 +9,13 @@ Patch0: MIME-tools-5.506-UTF8.patch BuildArch: noarch # ================ Module Build ====================== BuildRequires: coreutils -BuildRequires: findutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(inc::Module::Install) BuildRequires: perl(Pod::Man) +BuildRequires: sed # ================ Module Runtime ==================== BuildRequires: perl-MailTools >= 1.50 BuildRequires: perl(Carp) @@ -59,6 +60,10 @@ parser and tool for building your own MIME parser, and utilities. %prep %setup -q -n MIME-tools-%{version} +# Remove bundled dependencies +rm -rv inc/ +sed -i -e '/^inc\// d' MANIFEST + # Fix character encoding %patch0 @@ -67,12 +72,11 @@ mkdir useful-examples mv examples/mime{dump,encode,explode,postcard,send} useful-examples/ %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=%{buildroot} -find %{buildroot} -type f -name .packlist -delete +%{make_install} %{_fixperms} -c %{buildroot} # Put the more useful examples in %%{_bindir} @@ -135,6 +139,11 @@ TEST_POD_COVERAGE=0 make test %{_mandir}/man3/MIME::Words.3* %changelog +* Tue Mar 10 2020 Paul Howarth - 5.509-11 +- Modernize spec + - Drop bundled modules and depend on them instead + - Use %%{make_build} and %%{make_install} + * Thu Jan 30 2020 Fedora Release Engineering - 5.509-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild