public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Howarth <paul@city-fan.org>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-MIME-tools] epel8: Modernize spec
Date: Thu, 22 Oct 2026 10:33:52 GMT	[thread overview]
Message-ID: <179266523212.1.3200289391293765675.rpms-perl-MIME-tools-8404b9f5cb0f@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/perl-MIME-tools
            Branch : epel8
            Commit : 8404b9f5cb0fad751affe67a9bc78f521d7e4927
            Author : Paul Howarth <paul@city-fan.org>
            Date   : 2026-10-22T11:17:20+01:00
            Stats  : +16/-7 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/perl-MIME-tools/c/8404b9f5cb0fad751affe67a9bc78f521d7e4927?branch=epel8

            Log:
            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 9e89bec..13bb1a5 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:	9%{?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 <paul@city-fan.org> - 5.509-11
+- Modernize spec
+  - Drop bundled modules and depend on them instead
+  - Use %%{make_build} and %%{make_install}
+
 * Tue Aug 27 2019 Paul Howarth <paul@city-fan.org> - 5.509-9
 - Use an author-independent source URL
 

                 reply	other threads:[~2026-10-22 10:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179266523212.1.3200289391293765675.rpms-perl-MIME-tools-8404b9f5cb0f@fedoraproject.org \
    --to=paul@city-fan.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox