public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-MIME-tools] epel8: Modernize spec
@ 2026-10-22 10:33 Paul Howarth
  0 siblings, 0 replies; only message in thread
From: Paul Howarth @ 2026-10-22 10:33 UTC (permalink / raw)
  To: git-commits

            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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-22 10:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22 10:33 [rpms/perl-MIME-tools] epel8: Modernize spec Paul Howarth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox