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

A new commit has been pushed.

Repo   : rpms/perl-Class-Autouse
Branch : rawhide
Commit : 39b672d0c8483bf96416dbb1d8f46f90bbc5a6d4
Author : Petr Písař <ppisar@redhat.com>
Date   : 2026-06-04T16:29:14+02:00
Stats  : +24/-34 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-Class-Autouse/c/39b672d0c8483bf96416dbb1d8f46f90bbc5a6d4?branch=rawhide

Log:
Modernize a spec file

---
diff --git a/perl-Class-Autouse.rpmlintrc b/perl-Class-Autouse.rpmlintrc
new file mode 100644
index 0000000..dac5d69
--- /dev/null
+++ b/perl-Class-Autouse.rpmlintrc
@@ -0,0 +1 @@
+addFilter('spelling-error \(\'Manip\'')

diff --git a/perl-Class-Autouse.spec b/perl-Class-Autouse.spec
index 4bee889..e6788b7 100644
--- a/perl-Class-Autouse.spec
+++ b/perl-Class-Autouse.spec
@@ -1,20 +1,16 @@
 Name:           perl-Class-Autouse
 Version:        2.02
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Run-time class loading on first method call
 License:        GPL-1.0-or-later OR Artistic-1.0-Perl
 URL:            https://metacpan.org/release/Class-Autouse
 Source0:        https://cpan.metacpan.org/authors/id/E/ET/ETHER/Class-Autouse-%{version}.tar.gz
-
-# Upstream does its very best to prevent us from running them.
-%bcond_with     xt_tests
-
 BuildArch:      noarch
-
-BuildRequires:  %{__perl}
-BuildRequires:  %{__make}
-
+BuildRequires:  coreutils
+BuildRequires:  make
 BuildRequires:  perl-generators
+BuildRequires:  perl-interpreter
+BuildRequires:  perl(:VERSION) >= 5.6
 BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
 BuildRequires:  perl(strict)
 BuildRequires:  perl(warnings)
@@ -24,10 +20,12 @@ BuildRequires:  perl(constant)
 BuildRequires:  perl(Exporter)
 BuildRequires:  perl(File::Spec) >= 0.80
 BuildRequires:  perl(List::Util) >= 1.18
-BuildRequires:  perl(prefork)
 BuildRequires:  perl(Scalar::Util)
 BuildRequires:  perl(UNIVERSAL)
 BuildRequires:  perl(vars)
+# Optional run-time:
+# prefork is not a dependency, it is loaded to detect wheter the module
+# exists.
 # Tests
 BuildRequires:  perl(base)
 BuildRequires:  perl(File::Spec::Functions)
@@ -35,21 +33,9 @@ BuildRequires:  perl(File::Temp)
 BuildRequires:  perl(IO::File)
 BuildRequires:  perl(lib)
 BuildRequires:  perl(Test::More) >= 0.94
-
-# for xt tests
-%if %{with xt_tests}
-BuildRequires:  perl(blib)
-BuildRequires:  perl(Encode)
-BuildRequires:  perl(IO::Handle)
-BuildRequires:  perl(IPC::Open3)
-BuildRequires:  perl(Test::CleanNamespaces) >= 0.15
-BuildRequires:  perl(Test::CPAN::Meta)
-BuildRequires:  perl(Test::Kwalitee) >= 1.21
-BuildRequires:  perl(Test::MinimumVersion)
-BuildRequires:  perl(Test::Mojibake)
-BuildRequires:  perl(Test::Pod) >= 1.41
-BuildRequires:  perl(Test::Portability::Files)
-%endif
+# Optional tests:
+BuildRequires:  perl(prefork)
+# CPAN::Meta 2.120900 not helpful
 
 %description
 Class::Autouse allows you to specify a class the will only load when a
@@ -61,7 +47,7 @@ large amounts of memory, and decrease the script load time.
 %setup -q -n Class-Autouse-%{version}
 
 %build
-AUTOMATED_TESTING=1 %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
 %{make_build}
 
 %install
@@ -69,19 +55,22 @@ AUTOMATED_TESTING=1 %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PE
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
-%{__make} test
-%if %{with xt_tests}
-# Manually invoke xt-tests
-AUTOMATED_TESTING=1 PERL_DL_NONLAZY=1 %{__perl} "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" xt/*/*.t
-%endif
+unset AUTHOR_TESTING
+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 CONTRIBUTING
+%doc Changes CONTRIBUTING README
 %license LICENSE
-%{perl_vendorlib}/Class
-%{_mandir}/man3/Class::Autouse*
+%dir %{perl_vendorlib}/Class
+%{perl_vendorlib}/Class/Autouse
+%{perl_vendorlib}/Class/Autouse.pm
+%{_mandir}/man3/Class::Autouse.*
 
 %changelog
+* Thu Jun 04 2026 Petr Pisar <ppisar@redhat.com> - 2.02-3
+- Modernize a spec file
+
 * Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.02-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

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

only message in thread, other threads:[~2026-06-04 14:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-04 14:55 [rpms/perl-Class-Autouse] 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