#
# Conditional build:
-%bcond_without tests # do not perform "make test"
+%bcond_without tests # unit tests
#
%define pdir Data
%define pnam Printer
Summary: Data::Printer - colored pretty-print of Perl data structures and objects
-#Summary(pl.UTF-8):
+Summary(pl.UTF-8): Data::Printer - kolorowe, ładne wypisywanie perlowych struktur danych i obiektów
Name: perl-Data-Printer
-Version: 0.40
+Version: 1.000004
Release: 1
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-authors/id/G/GA/GARU/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: a8d976880254233775bba35b2989b61c
-URL: http://search.cpan.org/dist/Data-Printer/
+Source0: http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 34e52ee70a7a19779251062251f6f422
+URL: https://metacpan.org/dist/Data-Printer
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
%if %{with tests}
-BuildRequires: perl(Clone::PP)
-BuildRequires: perl(File::HomeDir) >= 0.91
-BuildRequires: perl(Sort::Naturally)
BuildRequires: perl-Package-Stash >= 0.3
+BuildRequires: perl-Scalar-List-Utils
+BuildRequires: perl-Sort-Key
+BuildRequires: perl-Test-Simple
+BuildRequires: perl-version >= 0.77
%endif
+Suggests: perl-Sort-Key
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Colored pretty-print of Perl data structures and objects.
+%description -l pl.UTF-8
+Kolorowe, ładne wypisywanie perlowych struktur danych i obiektów.
+
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%defattr(644,root,root,755)
%doc Changes README.md
%{perl_vendorlib}/DDP.pm
-%{perl_vendorlib}/Data/*.pm
+%{perl_vendorlib}/Data/Printer.pm
%{perl_vendorlib}/Data/Printer
-%{_mandir}/man3/*
+%{_mandir}/man3/DDP.3pm*
+%{_mandir}/man3/Data::Printer*.3pm*
%{_examplesdir}/%{name}-%{version}