public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Tree-Simple] rawhide: Modernize a spec file
Date: Fri, 05 Jun 2026 11:19:22 GMT [thread overview]
Message-ID: <178065836262.1.16673796834824567580.rpms-perl-Tree-Simple-9b62abff41c0@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/perl-Tree-Simple
Branch : rawhide
Commit : 9b62abff41c0b897538741f6481d41f9dfe87353
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-06-05T13:06:21+02:00
Stats : +38/-21 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Tree-Simple/c/9b62abff41c0b897538741f6481d41f9dfe87353?branch=rawhide
Log:
Modernize a spec file
---
diff --git a/perl-Tree-Simple.spec b/perl-Tree-Simple.spec
index 584047a..a601bcb 100644
--- a/perl-Tree-Simple.spec
+++ b/perl-Tree-Simple.spec
@@ -1,34 +1,44 @@
-Name: perl-Tree-Simple
-Version: 1.34
-Release: 15%{?dist}
-Summary: Tree::Simple Perl module
-License: GPL-1.0-or-later OR Artistic-1.0-Perl
-URL: https://metacpan.org/release/Tree-Simple
-Source0: https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/Tree-Simple-%{version}.tgz
-BuildArch: noarch
-
+Name: perl-Tree-Simple
+Version: 1.34
+Release: 16%{?dist}
+Summary: Object-oriented n-ary tree
+License: GPL-1.0-or-later OR Artistic-1.0-Perl
+URL: https://metacpan.org/release/Tree-Simple
+Source0: https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/Tree-Simple-%{version}.tgz
+BuildArch: noarch
+BuildRequires: coreutils
+BuildRequires: make
BuildRequires: perl-generators
-BuildRequires: %{__perl}
-BuildRequires: %{__make}
-
-BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl-interpreter
+BuildRequires: perl(:VERSION) >= 5.6
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# Run-time:
+BuildRequires: perl(constant)
BuildRequires: perl(Scalar::Util) >= 1.18
+# Tests:
BuildRequires: perl(Test::Exception) >= 0.15
BuildRequires: perl(Test::More) >= 1.001002
+# Optional tests:
BuildRequires: perl(Test::Memory::Cycle) >= 1.02
-BuildRequires: perl(constant)
-BuildRequires: perl(strict)
-BuildRequires: perl(warnings)
+Requires: perl(Scalar::Util) >= 1.18
+# Remove under-specified dependencies
+%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Scalar::Util\\)$
%description
-A simple tree object.
+This Perl module in an fully object-oriented implementation of a simple n-ary
+tree. It is built upon the concept of parent-child relationships, so therefore
+every Tree::Simple object has both a parent and a set of children (who
+themselves may have children, and so on). Every Tree::Simple object also has
+siblings, as they are just the children of their immediate parent.
%prep
%setup -q -n Tree-Simple-%{version}
%build
-%{__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
@@ -36,15 +46,22 @@ A simple tree object.
chmod -R u+w $RPM_BUILD_ROOT/*
%check
-%{__make} test
+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 README
%license LICENSE
-%{perl_vendorlib}/Tree
-%{_mandir}/man3/*
+%dir %{perl_vendorlib}/Tree
+%{perl_vendorlib}/Tree/Simple
+%{perl_vendorlib}/Tree/Simple.pm
+%{_mandir}/man3/Tree::Simple.*
+%{_mandir}/man3/Tree::Simple::*
%changelog
+* Fri Jun 05 2026 Petr Pisar <ppisar@redhat.com> - 1.34-16
+- Modernize a spec file
+
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.34-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
reply other threads:[~2026-06-05 11:19 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=178065836262.1.16673796834824567580.rpms-perl-Tree-Simple-9b62abff41c0@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