3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: Clone - recursively copy Perl datatypes
12 License: GPL or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
15 # Source0-md5: 5cac94da96835758462133f3afd8fe22
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 This module provides a clone() method which makes recursive copies
22 of nested hash, array, scalar and reference types, including tied
23 variables and objects.
26 %setup -q -n %{pdir}-%{version}
29 %{__perl} Makefile.PL \
33 OPTIMIZE="%{rpmcflags}"
35 %{?with_tests:%{__make} test}
38 rm -rf $RPM_BUILD_ROOT
41 DESTDIR=$RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %{perl_vendorarch}/Clone.pm
50 %{perl_vendorarch}/auto/Clone/Clone.bs
51 %attr(755,root,root) %{perl_vendorarch}/auto/Clone/Clone.so