]>
Commit | Line | Data |
---|---|---|
90b31458 MP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
f36e6784 | 5 | %define pdir Clone |
a0f1db15 | 6 | Summary: Clone - Perl module for recursively copying Perl datatypes |
9c03c4b8 | 7 | Summary(pl.UTF-8): Clone - moduł Perla obsługujący rekursywne kopiowanie zmiennych w Perlu |
90b31458 | 8 | Name: perl-Clone |
2f96cdfa | 9 | Version: 0.45 |
583c50ce | 10 | Release: 3 |
65cfa140 | 11 | # same as perl |
12 | License: GPL v1+ or Artistic | |
90b31458 | 13 | Group: Development/Languages/Perl |
27b6dd94 | 14 | Source0: http://www.cpan.org/modules/by-module/Clone/%{pdir}-%{version}.tar.gz |
2f96cdfa | 15 | # Source0-md5: b101333499b638658f89e29458cd83c0 |
35fc2867 JB |
16 | URL: https://metacpan.org/release/Clone |
17 | %if %{with tests} | |
2f96cdfa | 18 | BuildRequires: perl-B-COW >= 0.004 |
35fc2867 JB |
19 | BuildRequires: perl-Test-Simple |
20 | %endif | |
90b31458 MP |
21 | BuildRequires: perl-devel >= 1:5.8.0 |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
35fc2867 | 23 | BuildRequires: rpmbuild(macros) >= 1.745 |
90b31458 MP |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | This module provides a clone() method which makes recursive copies | |
28 | of nested hash, array, scalar and reference types, including tied | |
29 | variables and objects. | |
30 | ||
67b9311c JR |
31 | %description -l pl.UTF-8 |
32 | Ten moduł dostarcza clone(), metodę służącą do rekurencyjnego | |
33 | kopiowania zagnieżdżonych tablic asocjacyjnych, tablic, skalarów i | |
34 | referencji, włącznie ze związanymi zmiennymi i obiektami. | |
9dcf3004 | 35 | |
90b31458 MP |
36 | %prep |
37 | %setup -q -n %{pdir}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
42 | ||
43 | %{__make} \ | |
e02eb120 | 44 | CC="%{__cc}" \ |
90b31458 MP |
45 | OPTIMIZE="%{rpmcflags}" |
46 | ||
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc Changes | |
61 | %{perl_vendorarch}/Clone.pm | |
90b31458 | 62 | %attr(755,root,root) %{perl_vendorarch}/auto/Clone/Clone.so |
27b6dd94 | 63 | %{perl_vendorarch}/auto/Clone/autosplit.ix |
08a640a9 | 64 | %{_mandir}/man3/Clone.3pm* |