3 %bcond_without tests # do not perform "make test"
6 %define pnam TreeDumper
7 Summary: Data::TreeDumper - Perl module for dumping data structures
8 Summary(pl.UTF-8): Data::TreeDumper - moduł Perla do zrzucania struktur danych
9 Name: perl-Data-TreeDumper
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: ee4698c58fc5f529b85de6db25aeb957
17 URL: http://search.cpan.org/dist/Data-TreeDumper/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(Text::Wrap) >= 2001.0929
22 BuildRequires: perl-Check-ISA
23 BuildRequires: perl-Devel-Size >= 0.58
24 BuildRequires: perl-Sort-Naturally
25 BuildRequires: perl-Term-Size >= 0.2
27 # required with ($^O ne 'MSWin32') condition
28 Requires: perl-Term-Size >= 0.2
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Data::Dumper and other modules do a great job of dumping data
34 structures. Their output, however, often takes more brain power to
35 understand than the data itself. When dumping large amounts of data,
36 the output can be overwhelming and it can be difficult to see the
37 relationship between each piece of the dumped data.
39 Data::TreeDumper also dumps data in a tree-like fashion but hopefully
40 in a format more easily understood.
42 %description -l pl.UTF-8
43 Data::Dumper i inne moduły wykonują wspaniałe zadanie zrzucania
44 struktur danych. Ich wyjście jednak zwykle wymaga trochę wysiłku
45 umysłowego do zrozumienia danych. Przy zrzucaniu dużej ilości danych
46 wyjście może być zbyt skomplikowane, żeby zobaczyć powiązania między
49 Data::TreeDumper także zrzuca dane w postaci podobnej do drzewa, ale w
50 formacie, który powinien być łatwiejszy do zrozumienia.
53 %setup -q -n %{pdir}-%{pnam}-%{version}
56 %{__perl} Makefile.PL \
60 %{?with_tests:%{__make} test}
63 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
69 %{__mv} $RPM_BUILD_ROOT%{perl_vendorlib}/Data/*.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
76 %doc Changes README Todo
77 %{perl_vendorlib}/Data/TreeDumper.pm
78 %{_mandir}/man3/Data::TreeDumper.3pm*
79 %{_examplesdir}/%{name}-%{version}