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

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
 

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

only message in thread, other threads:[~2026-06-05 11:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-05 11:19 [rpms/perl-Tree-Simple] 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