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

A new commit has been pushed.

Repo   : rpms/perl-Module-Install-Copyright
Branch : rawhide
Commit : 9b81b9e2e636a20695dd748144d36303615cc515
Author : Petr Písař <ppisar@redhat.com>
Date   : 2026-10-14T12:53:24+02:00
Stats  : +20/-15 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-Module-Install-Copyright/c/9b81b9e2e636a20695dd748144d36303615cc515?branch=rawhide

Log:
Modernize a spec file

---
diff --git a/perl-Module-Install-Copyright.spec b/perl-Module-Install-Copyright.spec
index fa5dccb..207d2d3 100644
--- a/perl-Module-Install-Copyright.spec
+++ b/perl-Module-Install-Copyright.spec
@@ -2,23 +2,20 @@ Name:           perl-Module-Install-Copyright
 Version:        0.009
 Release:        30%{?dist}
 Summary:        Package a COPYRIGHT file with a distribution
-# CONTRIBUTING: CC-BY-SA
-# COPYRIGHT:    Public Domain
-# Other file:   GPL+ or Artistic
-# Automatically converted from old format: (GPL+ or Artistic) and CC-BY-SA and Public Domain - review is highly recommended.
-License:        (GPL-1.0-or-later OR Artistic-1.0-Perl) AND LicenseRef-Callaway-CC-BY-SA AND LicenseRef-Callaway-Public-Domain
+# CONTRIBUTING: CC-BY-SA-2.0-UK
+# COPYRIGHT:    LicenseRef-Fedora-Public-Domain
+# Other file:   GPL-1.0-or-later OR Artistic-1.0-Perl
+License:        (GPL-1.0-or-later OR Artistic-1.0-Perl) AND CC-BY-SA-2.0-UK AND LicenseRef-Fedora-Public-Domain
 URL:            https://metacpan.org/release/Module-Install-Copyright
 Source0:        https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/Module-Install-Copyright-%{version}.tar.gz
 # To boostrap this package without bundling
 Patch0:         Module-Install-Copyright-0.009-Build-without-bundled-Module-Package-modules.patch
 BuildArch:      noarch
 BuildRequires:  coreutils
-BuildRequires:  findutils
 BuildRequires:  make
-BuildRequires:  perl-interpreter
 BuildRequires:  perl-generators
+BuildRequires:  perl-interpreter
 BuildRequires:  perl(inc::Module::Package)
-BuildRequires:  sed
 # Run-time:
 BuildRequires:  perl(:VERSION) >= 5.8.0
 BuildRequires:  perl(base)
@@ -53,15 +50,14 @@ copyright file format.
 # the inc/Module/Package/Dist/RDF.pm is not good for anything so the patch
 # makes not to load it.
 rm -rf ./inc
-sed -i -e '/^inc/d' MANIFEST
+perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
 
 %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 -delete
+%{make_install}
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
@@ -71,8 +67,17 @@ make test
 %license LICENSE
 %doc Changes CONTRIBUTING COPYRIGHT CREDITS README
 %doc examples
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%dir %{perl_vendorlib}/Module
+%dir %{perl_vendorlib}/Module/Install
+%dir %{perl_vendorlib}/Module/Install/Admin
+%{perl_vendorlib}/Module/Install/Admin/Copyright.pm
+%{perl_vendorlib}/Module/Install/Admin/Credits.pm
+%{perl_vendorlib}/Module/Install/Copyright.pm
+%{perl_vendorlib}/Module/Install/Credits.pm
+%{_mandir}/man3/Module::Install::Admin::Copyright.*
+%{_mandir}/man3/Module::Install::Admin::Credits.*
+%{_mandir}/man3/Module::Install::Copyright.*
+%{_mandir}/man3/Module::Install::Credits.*
 
 %changelog
 * Wed Oct 14 2026 Petr Pisar <ppisar@redhat.com> - 0.009-30

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14 10:54 [rpms/perl-Module-Install-Copyright] 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