| 1 | Name: perl-Clone
|
|---|
| 2 | Version: 0.39
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Recursively copy perl data types
|
|---|
| 5 | Group: Development/Libraries
|
|---|
| 6 | License: GPL+ or Artistic
|
|---|
| 7 | Vendor: bww bitwise works GmbH
|
|---|
| 8 | URL: http://search.cpan.org/dist/Clone
|
|---|
| 9 | Source: http://search.cpan.org/CPAN/authors/id/G/GA/GARU/Clone-%{version}.tar.gz
|
|---|
| 10 | BuildRequires: coreutils
|
|---|
| 11 | BuildRequires: findutils
|
|---|
| 12 | BuildRequires: make
|
|---|
| 13 | #BuildRequires: perl-interpreter
|
|---|
| 14 | BuildRequires: perl-devel
|
|---|
| 15 | BuildRequires: perl-generators
|
|---|
| 16 | BuildRequires: perl(ExtUtils::MakeMaker)
|
|---|
| 17 | # Run-time:
|
|---|
| 18 | BuildRequires: perl(AutoLoader)
|
|---|
| 19 | BuildRequires: perl(DynaLoader)
|
|---|
| 20 | BuildRequires: perl(Exporter)
|
|---|
| 21 | BuildRequires: perl(strict)
|
|---|
| 22 | BuildRequires: perl(vars)
|
|---|
| 23 | # Tests:
|
|---|
| 24 | BuildRequires: perl(Test::More)
|
|---|
| 25 | BuildRequires: perl(utf8)
|
|---|
| 26 | BuildRequires: perl(warnings)
|
|---|
| 27 | # Optional tests:
|
|---|
| 28 | BuildRequires: perl(Data::Dumper)
|
|---|
| 29 | BuildRequires: perl(Hash::Util::FieldHash)
|
|---|
| 30 | BuildRequires: perl(Scalar::Util)
|
|---|
| 31 | BuildRequires: perl(Taint::Runtime)
|
|---|
| 32 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|---|
| 33 |
|
|---|
| 34 | %{?perl_default_filter}
|
|---|
| 35 |
|
|---|
| 36 | %description
|
|---|
| 37 | This module provides a clone() method which makes recursive
|
|---|
| 38 | copies of nested hash, array, scalar and reference types,
|
|---|
| 39 | including tied variables and objects.
|
|---|
| 40 |
|
|---|
| 41 | clone() takes a scalar argument and an optional parameter that
|
|---|
| 42 | can be used to limit the depth of the copy. To duplicate lists,
|
|---|
| 43 | arrays or hashes, pass them in by reference.
|
|---|
| 44 |
|
|---|
| 45 | %prep
|
|---|
| 46 | %setup -q -n Clone-%{version}
|
|---|
| 47 | find . -type f -exec chmod -c -x {} +
|
|---|
| 48 |
|
|---|
| 49 | %build
|
|---|
| 50 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|---|
| 51 | make %{?_smp_mflags}
|
|---|
| 52 | make manifypods
|
|---|
| 53 |
|
|---|
| 54 | %install
|
|---|
| 55 | make pure_install DESTDIR=%{buildroot}
|
|---|
| 56 | find %{buildroot} -type f -name .packlist -delete
|
|---|
| 57 | find %{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
|
|---|