public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Module-Install-XSUtil] rawhide: Modernize a spec file
Date: Wed, 14 Oct 2026 11:32:22 GMT	[thread overview]
Message-ID: <179197754277.1.13566435303908713269.rpms-perl-Module-Install-XSUtil-e23c50a4b24a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/perl-Module-Install-XSUtil
Branch : rawhide
Commit : e23c50a4b24aedb6f4d7dc02aea53484ddf9cac2
Author : Petr Písař <ppisar@redhat.com>
Date   : 2026-10-14T13:31:39+02:00
Stats  : +13/-12 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-Module-Install-XSUtil/c/e23c50a4b24aedb6f4d7dc02aea53484ddf9cac2?branch=rawhide

Log:
Modernize a spec file

---
diff --git a/perl-Module-Install-XSUtil.spec b/perl-Module-Install-XSUtil.spec
index aacda8c..66b5c87 100644
--- a/perl-Module-Install-XSUtil.spec
+++ b/perl-Module-Install-XSUtil.spec
@@ -2,16 +2,16 @@ Name:           perl-Module-Install-XSUtil
 Version:        0.45
 Release:        36%{?dist}
 Summary:        Utility functions for XS modules
-# Automatically converted from old format: GPL+ or Artistic - review is highly recommended.
 License:        GPL-1.0-or-later OR Artistic-1.0-Perl
 URL:            https://metacpan.org/release/Module-Install-XSUtil
 Source0:        https://cpan.metacpan.org/authors/id/G/GF/GFUJI/Module-Install-XSUtil-%{version}.tar.gz
 # Fix test, CPAN RT#77780
 Patch0:         Module-Install-XSUtil-0.43-Fix-test-to-use-renamed-requires_xs.patch
 BuildArch:      noarch
-BuildRequires: make
-BuildRequires:  perl-interpreter
+BuildRequires:  coreutils
+BuildRequires:  make
 BuildRequires:  perl-generators
+BuildRequires:  perl-interpreter
 BuildRequires:  perl(inc::Module::Install)
 BuildRequires:  perl(Module::Install::Repository)
 # Run-time:
@@ -48,30 +48,31 @@ Module::Install::XSUtil provides a set of utilities to setup distributions
 which include or depend on an XS module.
 
 %prep
-%setup -q -n Module-Install-XSUtil-%{version}
-%patch -P0 -p1
+%autosetup -p1 -n Module-Install-XSUtil-%{version}
 # Remove bundled modules
 rm -rf inc/*
-sed -i -e '/^inc\//d' MANIFEST
+perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
 # Run author tests, setting TEST_FILES clashes with nested test (CPAN RT#77780)
 mkdir inc/.author
 
 %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 {} \;
+%{make_install}
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
+export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
 make test
 
 %files
 %doc Changes README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%dir %{perl_vendorlib}/Module
+%dir %{perl_vendorlib}/Module/Install
+%{perl_vendorlib}/Module/Install/XSUtil.pm
+%{_mandir}/man3/Module::Install::XSUtil.*
 
 %changelog
 * Wed Oct 14 2026 Petr Pisar <ppisar@redhat.com> - 0.45-36

                 reply	other threads:[~2026-10-14 11:32 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=179197754277.1.13566435303908713269.rpms-perl-Module-Install-XSUtil-e23c50a4b24a@fedoraproject.org \
    --to=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