perl-Clone/perl-Clone.spec
Dirk Stoecker 7603bc492c Accepting request 748594 from devel:languages:perl:autoupdate
- updated to 0.43
   see /usr/share/doc/packages/perl-Clone/Changes
  0.43 2019-07-29 13:47:42  atomic
    - fix an issue when cloning a NULL mg_ptr pointer
- updated to 0.42
   see /usr/share/doc/packages/perl-Clone/Changes
  0.42 2019-07-19 23:06:04  garu
    - make handling of mg_ptr safer (ATOOMIC, Harald Jörg)
    - change license wording on some test files to
      make the entire dist released under the same
      terms as Perl itself (fixes GH#20) (GARU)

OBS-URL: https://build.opensuse.org/request/show/748594
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Clone?expand=0&rev=35
2019-11-14 17:02:45 +00:00

70 lines
2.0 KiB
RPMSpec

#
# spec file for package perl-Clone
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Clone
Version: 0.43
Release: 0
%define cpan_name Clone
Summary: Recursively copy Perl datatypes
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(B::COW)
%{perl_requires}
%description
This module provides a 'clone()' method which makes recursive copies of
nested hash, array, scalar and reference types, including tied variables
and objects.
'clone()' takes a scalar argument and duplicates it. To duplicate lists,
arrays or hashes, pass them in by reference, e.g.
my $copy = clone (\@array);
# or
my %copy = %{ clone (\%hash) };
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README.md
%changelog