# Detect the distribution in use %global __despace head -n 1 | tr -d '[:space:]' | sed -e 's/[(].*[)]//g' %global __lower4 cut -c 1-4 | tr '[:upper:]' '[:lower:]' %global __distfile %([ -f /etc/SuSE-release ] && echo /etc/SuSE-release || echo /etc/redhat-release) %global __distinit %(sed -e 's/ release .*//' -e 's/\\([A-Za-z]\\)[^ ]*/\\1/g' %{__distfile} | %{__despace} | %{__lower4}) %global __distvers %(sed -e 's/.* release \\([^. ]*\\).*/\\1/' %{__distfile} | %{__despace}) # Identify Alma, CentOS, CentOS Stream and Rocky Linux as rhel %if "%{__distinit}" == "a" || "%{__distinit}" == "c" || "%{__distinit}" == "cl" || "%{__distinit}" == "cs" || "%{__distinit}" == "rl" %global __distinit rhel %endif # Dist tag for Fedora is still "fc" %if "%{__distinit}" == "f" %global __distinit fc %endif Name: perl-Data-Dumper-Names Version: 0.03 Release: 42.%{__distinit}%{__distvers} Summary: Data::Dumper like module for printing and eval data structures License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Data-Dumper-Names Source0: https://cpan.metacpan.org/modules/by-module/Data/Data-Dumper-Names-%{version}.tar.gz BuildArch: noarch # Module Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) # Module Runtime BuildRequires: perl(base) BuildRequires: perl(Data::Dumper) BuildRequires: perl(Exporter) BuildRequires: perl(PadWalker) >= 0.13 BuildRequires: perl(Scalar::Util) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Test Suite BuildRequires: perl(Test::More) # Optional Tests BuildRequires: perl(Test::Pod) >= 1.14 BuildRequires: perl(Test::Pod::Coverage) >= 1.04 # Dependencies %if 0%{?fedora} < 38 && 0%{?rhel} < 10 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %endif Requires: perl(PadWalker) >= 0.13 %description The essential module Data::Dumper is used for printing perl data structures or suitable for eval. Data::Dumper::Names dump variables with names and without source filter. %prep %setup -q -n Data-Dumper-Names-%{version} %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete %{_fixperms} -c %{buildroot} %check make test %files %doc Changes README %{perl_vendorlib}/Data/ %{_mandir}/man3/Data::Dumper::Names.3* %changelog * Sun Jul 16 2023 Paul Howarth - 0.03-42 - Use SPDX-format license tag * Tue Jun 4 2019 Paul Howarth - 0.03-31 - Modernize spec - Switch upstream from search.cpan.org to metacpan.org - BR: perl-generators unconditionally - BR: perl-interpreter rather than perl - Don't explicitly clean buildroot in %%install section - Drop explicit %%clean section - Drop legacy BuildRoot: and Group: tags * Fri Aug 12 2016 Paul Howarth - 0.03-23 - Classify buildreqs by usage - Simplify find command using -delete * Sun Aug 31 2014 Paul Howarth - 0.03-19 - Drop %%defattr, redundant since rpm 4.4 * Thu Jun 28 2012 Paul Howarth - 0.03-12 - BR: perl(base), perl(Data::Dumper) and perl(Scalar::Util) - Don't need to remove empty directories from the buildroot - Drop support for old distributions prior to FC-3: - Don't need to define %%{perl_vendorlib} - Use DESTDIR rather than PERL_INSTALL_ROOT * Thu Jun 23 2011 Paul Howarth - 0.03-9 - Rebuild for perl 5.14.1 in Rawhide - Nobody else likes macros for commands - Fix dist tag for CentOS 6 and Scientific Linux * Mon Jun 28 2010 Paul Howarth - 0.03-8 - Import from Fedora - Use ExtUtils::MakeMaker rather than Module::Build * Fri Apr 30 2010 Marcela Maslanova - 0.03-7 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal - 0.03-6 - Rebuild against perl 5.10.1 * Sat Jul 25 2009 Fedora Release Engineering - 0.03-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Apr 22 2009 Marcela Mašláňová - 0.03-4 - Added BR Test::More for tests, rebuild is not needed now * Wed Apr 15 2009 Marcela Mašláňová - 0.03-3 - Tests need Test::Most, which are dependent on this package * Mon Apr 6 2009 Marcela Mašláňová - 0.03-2 - Remove unnecessary requirement * Thu Apr 02 2009 Marcela Mašláňová - 0.03-1 - Specfile autogenerated by cpanspec 1.78