From 528d10d36c980f2770c5e821e42e8d3a7d3cd2a3 Mon Sep 17 00:00:00 2001 From: Petr Písař Date: Apr 17 2023 11:54:33 +0000 Subject: Modernize a spec file --- diff --git a/perl-IO-Interactive.spec b/perl-IO-Interactive.spec index f531891..fbac4e1 100644 --- a/perl-IO-Interactive.spec +++ b/perl-IO-Interactive.spec @@ -3,16 +3,17 @@ Name: perl-IO-Interactive Version: 1.023 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Utilities for interactive I/O -# LICENSE: "the same terms as perl itself" and Artistic 2.0 -# license_clarification: Artistic 2.0 (brian d foy's explanation) -# lib/IO/Interactive.pm: "the same terms as Perl itself" -# IO-Ineractive-1.021 added the ambiguous LICENSE file, because there are -# still files referring to Perl, but not referring Artistic 2.0, I keep the -# (GPL+ or Artistic) part in the License tag. +# lib/IO/Interactive.pm: GPL-1.0-or-later OR Artistic-1.0-Perl +# LICENSE: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Artistic-2.0 +# license_clarification: Artistic-2.0 (brian d foy's explanation) +# README.pod: "see LICENSE file and the modules files" +# IO-Ineractive-1.021 added the ambiguous LICENSE file. Because there are +# still files only referring to Perl, but not referring to Artistic-2.0, +# I keep the (GPL-1.0-or-later OR Artistic-1.0-Perl) part in the License tag. # -License: (GPL+ or Artistic) and (Artistic 2.0) +License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Artistic-2.0 URL: https://metacpan.org/release/IO-Interactive Source0: https://cpan.metacpan.org/authors/id/B/BD/BDFOY/IO-Interactive-%{version}.tar.gz Source1: license_clarification @@ -58,18 +59,23 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %install %{make_install} -%{_fixperms} $RPM_BUILD_ROOT/* +%{_fixperms} %{buildroot}/* %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 %license LICENSE %doc Changes examples license_clarification README.pod -%{perl_vendorlib}/* -%{_mandir}/man3/* +%dir %{perl_vendorlib}/IO +%{perl_vendorlib}/IO/Interactive.pm +%{_mandir}/man3/IO::Interactive.* %changelog +* Mon Apr 17 2023 Petr Pisar - 1.023-8 +- Convert a licene tag to an SPDX format + * Fri Jan 20 2023 Fedora Release Engineering - 1.023-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild