]> git.pld-linux.org Git - packages/perl-Data-Printer.git/blame - perl-Data-Printer.spec
- up to 0.40
[packages/perl-Data-Printer.git] / perl-Data-Printer.spec
CommitLineData
d0804879
JR
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir Data
6%define pnam Printer
7%include /usr/lib/rpm/macros.perl
8Summary: Data::Printer - colored pretty-print of Perl data structures and objects
9#Summary(pl.UTF-8):
10Name: perl-Data-Printer
6003262b 11Version: 0.40
d0804879
JR
12Release: 1
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-authors/id/G/GA/GARU/%{pdir}-%{pnam}-%{version}.tar.gz
6003262b 17# Source0-md5: a8d976880254233775bba35b2989b61c
d0804879
JR
18URL: http://search.cpan.org/dist/Data-Printer/
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
22BuildRequires: perl(Clone::PP)
23BuildRequires: perl(File::HomeDir) >= 0.91
24BuildRequires: perl(Sort::Naturally)
25BuildRequires: perl-Package-Stash >= 0.3
26%endif
27BuildArch: noarch
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31Colored pretty-print of Perl data structures and objects.
32
33%prep
34%setup -q -n %{pdir}-%{pnam}-%{version}
35
36%build
37%{__perl} Makefile.PL \
38 INSTALLDIRS=vendor
39%{__make}
40
41%{?with_tests:%{__make} test}
42
43%install
44rm -rf $RPM_BUILD_ROOT
45
46%{__make} pure_install \
47 DESTDIR=$RPM_BUILD_ROOT
48
49install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
50cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
6003262b 57%doc Changes README.md
d0804879
JR
58%{perl_vendorlib}/DDP.pm
59%{perl_vendorlib}/Data/*.pm
60%{perl_vendorlib}/Data/Printer
61%{_mandir}/man3/*
62%{_examplesdir}/%{name}-%{version}
This page took 0.087886 seconds and 4 git commands to generate.