3 %bcond_without tests # do not perform "make test"
6 Summary: Clone - Perl module for recursively copying Perl datatypes
7 Summary(pl.UTF-8): Clone - moduł Perla obsługujący rekursywne kopiowanie zmiennych w Perlu
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Clone/%{pdir}-%{version}.tar.gz
15 # Source0-md5: 0c98ec61248d79b0d5d0b45747568b99
16 URL: https://metacpan.org/release/Clone
18 BuildRequires: perl-B-COW >= 0.003
19 BuildRequires: perl-Test-Simple
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: rpmbuild(macros) >= 1.745
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
37 %setup -q -n %{pdir}-%{version}
40 %{__perl} Makefile.PL \
45 OPTIMIZE="%{rpmcflags}"
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorarch}/Clone.pm
62 %attr(755,root,root) %{perl_vendorarch}/auto/Clone/Clone.so
63 %{perl_vendorarch}/auto/Clone/autosplit.ix
64 %{_mandir}/man3/Clone.3pm*