source: spec/trunk/SPECS/perl-Clone.spec@ 1504

Last change on this file since 1504 was 1328, checked in by tellie, 8 years ago

spec: perl-Clone: Release version 0.39-1.

File size: 2.0 KB
Line 
1Name: perl-Clone
2Version: 0.39
3Release: 1%{?dist}
4Summary: Recursively copy perl data types
5Group: Development/Libraries
6License: GPL+ or Artistic
7Vendor: bww bitwise works GmbH
8URL: http://search.cpan.org/dist/Clone
9Source: http://search.cpan.org/CPAN/authors/id/G/GA/GARU/Clone-%{version}.tar.gz
10BuildRequires: coreutils
11BuildRequires: findutils
12BuildRequires: make
13#BuildRequires: perl-interpreter
14BuildRequires: perl-devel
15BuildRequires: perl-generators
16BuildRequires: perl(ExtUtils::MakeMaker)
17# Run-time:
18BuildRequires: perl(AutoLoader)
19BuildRequires: perl(DynaLoader)
20BuildRequires: perl(Exporter)
21BuildRequires: perl(strict)
22BuildRequires: perl(vars)
23# Tests:
24BuildRequires: perl(Test::More)
25BuildRequires: perl(utf8)
26BuildRequires: perl(warnings)
27# Optional tests:
28BuildRequires: perl(Data::Dumper)
29BuildRequires: perl(Hash::Util::FieldHash)
30BuildRequires: perl(Scalar::Util)
31BuildRequires: perl(Taint::Runtime)
32Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
33
34%{?perl_default_filter}
35
36%description
37This module provides a clone() method which makes recursive
38copies of nested hash, array, scalar and reference types,
39including tied variables and objects.
40
41clone() takes a scalar argument and an optional parameter that
42can be used to limit the depth of the copy. To duplicate lists,
43arrays or hashes, pass them in by reference.
44
45%prep
46%setup -q -n Clone-%{version}
47find . -type f -exec chmod -c -x {} +
48
49%build
50perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
51make %{?_smp_mflags}
52make manifypods
53
54%install
55make pure_install DESTDIR=%{buildroot}
56find %{buildroot} -type f -name .packlist -delete
57find %{buildroot} -type f -name '*.bs' -a -size 0 -delete
58%{_fixperms} %{buildroot}/*
59
60%check
61#make test
62
63%files
64%doc Changes
65%{perl_vendorarch}/auto/Clone/
66%{perl_vendorarch}/Clone.pm
67%{_mandir}/man3/*.3*
68
69%changelog
70* Thu Mar 06 2018 Elbert Pol <elbert.pol@gmail.com> - 0.39-1
71- initial rpm for OS2
Note: See TracBrowser for help on using the repository browser.