]> git.pld-linux.org Git - packages/perl-Clone.git/blame - perl-Clone.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Clone.git] / perl-Clone.spec
CommitLineData
90b31458
MP
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
f36e6784 5%define pdir Clone
a0f1db15 6Summary: Clone - Perl module for recursively copying Perl datatypes
9c03c4b8 7Summary(pl.UTF-8): Clone - moduł Perla obsługujący rekursywne kopiowanie zmiennych w Perlu
90b31458 8Name: perl-Clone
1581ef7c 9Version: 0.43
9145dd55 10Release: 2
65cfa140 11# same as perl
12License: GPL v1+ or Artistic
90b31458 13Group: Development/Languages/Perl
27b6dd94 14Source0: http://www.cpan.org/modules/by-module/Clone/%{pdir}-%{version}.tar.gz
1581ef7c 15# Source0-md5: 12e2247a3c9802bae774daac32d083c1
27b6dd94 16URL: http://search.cpan.org/dist/Clone/
90b31458
MP
17BuildRequires: perl-devel >= 1:5.8.0
18BuildRequires: rpm-perlprov >= 4.1-13
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22This module provides a clone() method which makes recursive copies
23of nested hash, array, scalar and reference types, including tied
24variables and objects.
25
67b9311c
JR
26%description -l pl.UTF-8
27Ten moduł dostarcza clone(), metodę służącą do rekurencyjnego
28kopiowania zagnieżdżonych tablic asocjacyjnych, tablic, skalarów i
29referencji, włącznie ze związanymi zmiennymi i obiektami.
9dcf3004 30
90b31458
MP
31%prep
32%setup -q -n %{pdir}-%{version}
33
34%build
35%{__perl} Makefile.PL \
36 INSTALLDIRS=vendor
37
38%{__make} \
e02eb120 39 CC="%{__cc}" \
90b31458
MP
40 OPTIMIZE="%{rpmcflags}"
41
42%{?with_tests:%{__make} test}
43
44%install
45rm -rf $RPM_BUILD_ROOT
46
47%{__make} 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 Changes
56%{perl_vendorarch}/Clone.pm
90b31458 57%attr(755,root,root) %{perl_vendorarch}/auto/Clone/Clone.so
27b6dd94 58%{perl_vendorarch}/auto/Clone/autosplit.ix
08a640a9 59%{_mandir}/man3/Clone.3pm*
This page took 0.904584 seconds and 4 git commands to generate.