]>
Commit | Line | Data |
---|---|---|
1d9ff0ac | 1 | %include /usr/lib/rpm/macros.perl |
afb89c4d | 2 | %define pdir Data |
3 | %define pnam Dump | |
92e33f15 | 4 | Summary: Data::Dump - pretty printing of data structures |
0dc699de | 5 | Summary(pl.UTF-8): Data::Dump - ładne wyświetlanie struktur danych |
1d9ff0ac | 6 | Name: perl-Data-Dump |
bf2fb95b | 7 | Version: 1.06 |
4334741d | 8 | Release: 1 |
79f88d97 | 9 | # same as perl |
a3b6fa2f | 10 | License: GPL v1+ or Artistic |
1d9ff0ac | 11 | Group: Development/Languages/Perl |
f6eb0d84 | 12 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
bf2fb95b | 13 | # Source0-md5: ab41f4135e5460da837a7176ae4b3e39 |
bf824092 | 14 | BuildRequires: perl-devel >= 1:5.8.0 |
17084f23 | 15 | BuildRequires: rpm-perlprov >= 4.1-13 |
1d9ff0ac JB |
16 | BuildArch: noarch |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | This package contains the Data::Dump module. It is a simplification of | |
21 | Sarathy's Data::Dumper. This module provides a single function called | |
22 | dump() that takes a list of values as argument and produce a string as | |
0f9c9bce | 23 | result. The string contains Perl code that when evaled will produce a |
1d9ff0ac JB |
24 | deep copy of the original arguments. The string is formatted for easy |
25 | reading. | |
26 | ||
260dfa99 JR |
27 | %description -l pl.UTF-8 |
28 | Ten pakiet zawiera moduł Data::Dump. Jest on uproszczeniem modułu | |
29 | Data::Dumper Sarathy'ego. Ten moduł dostarcza pojedynczą funkcję o | |
30 | nazwie dump(), która przyjmuje jako argument listę wartości i zwraca | |
31 | w wyniku ciąg znaków. Ciąg ten zawiera kod perlowy, który po wykonaniu | |
32 | zwraca kopię oryginalnych argumentów. Ciąg ten jest sformatowany tak, | |
33 | by był łatwo czytelny. | |
1d9ff0ac JB |
34 | |
35 | %prep | |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
37 | ||
38 | %build | |
17084f23 | 39 | %{__perl} Makefile.PL \ |
49a8e57e | 40 | INSTALLDIRS=vendor |
1d9ff0ac | 41 | %{__make} |
d3293cfb | 42 | %{__make} test |
1d9ff0ac JB |
43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc Changes README | |
17084f23 | 56 | %{perl_vendorlib}/Data/Dump.pm |
1d9ff0ac | 57 | %{_mandir}/man3/* |