public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Module-Install-XSUtil] rawhide: Modernize a spec file
@ 2026-10-14 11:32 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-14 11:32 UTC (permalink / raw)
  To: git-commits

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

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

only message in thread, other threads:[~2026-10-14 11:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14 11:32 [rpms/perl-Module-Install-XSUtil] rawhide: Modernize a spec file 

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