public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Class-Autouse] rawhide: Modernize a spec file
Date: Thu, 04 Jun 2026 14:55:49 GMT [thread overview]
Message-ID: <178058494986.1.6708777731081882812.rpms-perl-Class-Autouse-39b672d0c848@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-04 14:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178058494986.1.6708777731081882812.rpms-perl-Class-Autouse-39b672d0c848@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox