public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cpanspec] epel10: Update licenses to SPDX form
@ 2026-10-21 16:04 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-21 16:04 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/cpanspec
Branch : epel10
Commit : 91c6e1441c13a2d2d159f0fd1d5200f5392aa138
Author : Michal Josef Špaček <mspacek@redhat.com>
Date   : 2024-11-08T16:19:42+01:00
Stats  : +54/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/cpanspec/c/91c6e1441c13a2d2d159f0fd1d5200f5392aa138?branch=epel10

Log:
Update licenses to SPDX form

---
diff --git a/cpanspec-1.78-Update-licenses-to-SPDX-form.patch b/cpanspec-1.78-Update-licenses-to-SPDX-form.patch
new file mode 100644
index 0000000..d125781
--- /dev/null
+++ b/cpanspec-1.78-Update-licenses-to-SPDX-form.patch
@@ -0,0 +1,48 @@
+diff -u -r cpanspec-1.78.orig/cpanspec cpanspec-1.78/cpanspec
+--- cpanspec-1.78.orig/cpanspec	2024-11-08 13:13:05.722044914 +0100
++++ cpanspec-1.78/cpanspec	2024-11-08 16:19:13.154355995 +0100
+@@ -840,27 +840,25 @@
+             # docs, cross referenced with the list of licenses in
+             # /usr/share/rpmlint/config.
+             if ($meta->{license} =~ /^perl$/i) {
+-                $license="GPL+ or Artistic";
++                $license="GPL-1.0-or-later OR Artistic-1.0-Perl";
+             } elsif ($meta->{license} =~ /^apache$/i) {
+-                $license="Apache Software License";
++                $license="Apache-2.0";
+             } elsif ($meta->{license} =~ /^artistic$/i) {
+-                $license="Artistic";
++                $license="Artistic-1.0-Perl";
+             } elsif ($meta->{license} =~ /^artistic_?2$/i) {
+-                $license="Artistic 2.0";
++                $license="Artistic-2.0";
+             } elsif ($meta->{license} =~ /^bsd$/i) {
+                 $license="BSD";
+             } elsif ($meta->{license} =~ /^gpl$/i) {
+-                $license="GPL+";
++                $license="GPL-1.0-or-later";
+             } elsif ($meta->{license} =~ /^lgpl$/i) {
+-                $license="LGPLv2+";
++                $license="LGPL-2.0-or-later";
+             } elsif ($meta->{license} =~ /^mit$/i) {
+                 $license="MIT";
+             } elsif ($meta->{license} =~ /^mozilla$/i) {
+-                $license="MPL";
++                $license="MPL-1.0";
+             } elsif ($meta->{license} =~ /^open_source$/i) {
+-                $license="OSI-Approved"; # rpmlint will complain
+-            } elsif ($meta->{license} =~ /^unrestricted$/i) {
+-                $license="Distributable";
++                $license="any-OSI"; # rpmlint will complain
+             } elsif ($meta->{license} =~ /^restrictive$/i) {
+                 $license="Non-distributable";
+                 warn "License is 'restrictive'."
+@@ -880,7 +878,7 @@
+             $license.=", see @licenses";
+         }
+     }
+-    $license="CHECK(GPL+ or Artistic)" if (!$license);
++    $license="CHECK(GPL-1.0-or-later OR Artistic-1.0-Perl)" if (!$license);
+ 
+     my $usebuildpl=0;
+     if (grep /^Build\.PL$/, @files) {

diff --git a/cpanspec.spec b/cpanspec.spec
index ff46d4a..5e589fe 100644
--- a/cpanspec.spec
+++ b/cpanspec.spec
@@ -1,6 +1,6 @@
 Name:           cpanspec
 Version:        1.78
-Release:        51%{?dist}
+Release:        52%{?dist}
 Summary:        RPM spec file generation utility
 License:        GPL-1.0-or-later OR Artistic-1.0-Perl
 URL:            http://cpanspec.sourceforge.net/
@@ -10,6 +10,7 @@ Patch1:         %{name}-1.78-Strip-any-version-comparison-operator-from-the-perl
 Patch2:         %{name}-1.78-Escape-slashes-in-filters.patch
 Patch3:         %{name}-1.78-Prefer-dnf-over-repoquery.patch
 Patch4:         %{name}-1.78-Fix-build-arguments-for-Build.PL-spec-conformance.patch
+Patch5:         %{name}-1.78-Update-licenses-to-SPDX-form.patch
 BuildArch:      noarch
 BuildRequires:  findutils
 BuildRequires:  perl-interpreter
@@ -34,6 +35,7 @@ contained in the spec file is correct.
 %patch -P2 -p1
 %patch -P3 -p1
 %patch -P4 -p1
+%patch -P5 -p1
 
 %build
 perl Build.PL installdirs=vendor
@@ -52,6 +54,9 @@ find %{buildroot} -type f -name .packlist -delete
 %{_mandir}/man1/*
 
 %changelog
+* Fri Nov 08 2024 Michal Josef Špaček <mspacek@redhat.com> - 1.78-52
+- Update licenses to SPDX form
+
 * Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.78-51
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
 

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

only message in thread, other threads:[~2026-10-21 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-21 16:04 [rpms/cpanspec] epel10: Update licenses to SPDX form 

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