]> git.pld-linux.org Git - packages/perl-Data-Dump.git/blob - perl-Data-Dump.spec
up to 1.24
[packages/perl-Data-Dump.git] / perl-Data-Dump.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Data
6 %define         pnam    Dump
7 Summary:        Data::Dump - pretty printing of data structures
8 Summary(pl.UTF-8):      Data::Dump - ładne wyświetlanie struktur danych
9 Name:           perl-Data-Dump
10 Version:        1.24
11 Release:        1
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  d6e142687cffae96f040964dc6aba488
16 URL:            http://search.cpan.org/dist/Data-Dump/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 This package contains the Data::Dump module. It is a simplification of
24 Sarathy's Data::Dumper. This module provides a single function called
25 dump() that takes a list of values as argument and produce a string as
26 result. The string contains Perl code that when evaled will produce a
27 deep copy of the original arguments. The string is formatted for easy
28 reading.
29
30 %description -l pl.UTF-8
31 Ten pakiet zawiera moduł Data::Dump. Jest on uproszczeniem modułu
32 Data::Dumper Sarathy'ego. Ten moduł dostarcza pojedynczą funkcję o
33 nazwie dump(), która przyjmuje jako argument listę wartości i zwraca
34 w wyniku ciąg znaków. Ciąg ten zawiera kod perlowy, który po wykonaniu
35 zwraca kopię oryginalnych argumentów. Ciąg ten jest sformatowany tak,
36 by był łatwo czytelny.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README.md
60 %{perl_vendorlib}/Data/Dump.pm
61 %{perl_vendorlib}/Data/Dump
62 %{_mandir}/man3/Data::Dump*.3pm*
This page took 0.127769 seconds and 4 git commands to generate.