diff --git a/perl-Data-Peek.spec b/perl-Data-Peek.spec index 14fb97eaced80c46abe9c6fb2078600f6b985af4..c076263f3e3c7a394f5d30a945096259b56f0953 100644 --- a/perl-Data-Peek.spec +++ b/perl-Data-Peek.spec @@ -1,48 +1,36 @@ -%define anolis_release 1 -# Run optional test +%define anolis_release 2 %{bcond_with perl_Data_Peek_enables_option_test} Name: perl-Data-Peek Version: 0.52 Release: %{anolis_release}%{?dist} -Summary: Collection of low-level debug facilities +Summary: A collection of low-level debug functions License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Data-Peek Source0: https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/Data-Peek-%{version}.tgz -BuildRequires: coreutils -BuildRequires: findutils -BuildRequires: gcc -BuildRequires: make -BuildRequires: perl-devel -BuildRequires: perl-generators -BuildRequires: perl-interpreter -BuildRequires: perl(:VERSION) >= 5.8 -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 -BuildRequires: perl(strict) -# Run-time: -BuildRequires: perl(bytes) -BuildRequires: perl(Config) -BuildRequires: perl(Data::Dumper) -BuildRequires: perl(XSLoader) -BuildRequires: perl(vars) -BuildRequires: perl(warnings) -# Tests: -BuildRequires: perl(Test::More) >= 0.90 -BuildRequires: perl(Test::Warnings) + +BuildRequires: coreutils findutils gcc make +BuildRequires: perl-devel perl-generators perl-interpreter +BuildRequires: perl(:VERSION) >= 5.8 perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) perl(bytes) perl(Config) perl(Data::Dumper) +BuildRequires: perl(XSLoader) perl(vars) perl(warnings) perl(Test::More) >= 0.90 +BuildRequires: perl(Test::Warnings) perl(Test::More) >= 0.90 %if %{with perl_Data_Peek_enables_option_test} -# Optional tests: -BuildRequires: perl(Perl::Tidy) >= 20120714 -BuildRequires: perl(Test::Pod) >= 1.00 -BuildRequires: perl(Test::Pod::Coverage) +BuildRequires: perl(Perl::Tidy) >= 20120714 perl(Test::Pod) >= 1.00 perl(Test::Pod::Coverage) %endif %{?perl_default_filter} %description -Data::Peek started off as DDumper being a wrapper module over Data::Dumper, -but grew out to be a set of low-level data introspection utilities that no -other module provided yet, using the lowest level of the perl internals API -as possible. +Perl-Data-Peek is a module in Perl that provides a set of utilities for +inspecting Perl data structures. With this module, developers can easily +view the contents of complex data structures, such as arrays or hashes, +and get a better understanding of how they are organized. + +Data::Peek is useful for debugging Perl applications and can help developers +to identify and fix issues in their code. It provides output in a format +that is easy to read, and it can display a wide range of data types, +including references, objects, and even code. %package doc Summary: Documentation files for %{name} @@ -53,7 +41,7 @@ BuildArch: noarch The %{name}-doc package contains documentation files for %{name}. %prep -%setup -q -n Data-Peek-%{version} +%autosetup -p1 -n Data-Peek-%{version} %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" @@ -77,6 +65,9 @@ make test %doc ChangeLog README CONTRIBUTING.md %changelog +* Tue Apr 11 2023 Kaihao Bai - 0.52-2 +- optimize spec + * Wed Feb 08 2023 mgb01105731 - 0.52-1 - remove versioned MODULE_COMPAT_ requires - update to version 0.52