]>
Commit | Line | Data |
---|---|---|
484ff322 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
484ff322 | 5 | %define pdir Clone |
6 | %define pnam PP | |
7 | Summary: Clone::PP - Recursively copy Perl datatypes | |
8 | #Summary(pl.UTF-8): | |
9 | Name: perl-Clone-PP | |
f82a7d21 | 10 | Version: 1.07 |
484ff322 | 11 | Release: 1 |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Clone/%{pdir}-%{pnam}-%{version}.tar.gz | |
f82a7d21 | 16 | # Source0-md5: d401b88f44e98fa0d984da7c7b6a4cd1 |
484ff322 | 17 | URL: http://search.cpan.org/dist/Clone-PP/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | %endif | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | This module provides a general-purpose clone function to make deep | |
27 | copies of Perl data structures. It calls itself recursively to copy | |
28 | nested hash, array, scalar and reference types, including tied | |
29 | variables 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 | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} pure_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 README | |
56 | %{perl_vendorlib}/Clone/*.pm | |
57 | %{_mandir}/man3/* |