]> git.pld-linux.org Git - packages/perl-Clone-PP.git/blame - perl-Clone-PP.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Clone-PP.git] / perl-Clone-PP.spec
CommitLineData
484ff322 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
484ff322 5%define pdir Clone
6%define pnam PP
7Summary: Clone::PP - Recursively copy Perl datatypes
8#Summary(pl.UTF-8):
9Name: perl-Clone-PP
f82a7d21 10Version: 1.07
484ff322 11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Clone/%{pdir}-%{pnam}-%{version}.tar.gz
f82a7d21 16# Source0-md5: d401b88f44e98fa0d984da7c7b6a4cd1
484ff322 17URL: http://search.cpan.org/dist/Clone-PP/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21%endif
22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26This module provides a general-purpose clone function to make deep
27copies of Perl data structures. It calls itself recursively to copy
28nested hash, array, scalar and reference types, including tied
29variables and objects.
30
31# %description -l pl.UTF-8
32# TODO
33
34%prep
35%setup -q -n %{pdir}-%{pnam}-%{version}
36
37%build
38%{__perl} Makefile.PL \
39 INSTALLDIRS=vendor
40%{__make}
41
42%{?with_tests:%{__make} test}
43
44%install
45rm -rf $RPM_BUILD_ROOT
46
47%{__make} pure_install \
48 DESTDIR=$RPM_BUILD_ROOT
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%files
54%defattr(644,root,root,755)
55%doc README
56%{perl_vendorlib}/Clone/*.pm
57%{_mandir}/man3/*
This page took 0.0763 seconds and 4 git commands to generate.