2011-09-30 07:15:58 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Data-Clone
|
|
|
|
#
|
2024-03-08 22:15:42 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-09-30 07:15:58 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2023-08-08 15:12:50 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-30 07:15:58 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-12-09 13:23:52 +00:00
|
|
|
%define cpan_name Data-Clone
|
2011-09-30 07:15:58 +00:00
|
|
|
Name: perl-Data-Clone
|
2023-12-09 13:23:52 +00:00
|
|
|
Version: 0.6.0
|
2011-09-30 07:15:58 +00:00
|
|
|
Release: 0
|
2023-12-09 13:23:52 +00:00
|
|
|
%define cpan_version 0.006
|
2023-08-08 15:12:50 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2023-12-09 13:23:52 +00:00
|
|
|
Summary: Polymorphic data cloning
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/%{cpan_name}-%{cpan_version}.tar.gz
|
2017-10-03 08:54:44 +00:00
|
|
|
Source1: perl-Data-Clone-rpmlintrc
|
|
|
|
Source2: cpanspec.yml
|
2025-08-12 18:13:00 +02:00
|
|
|
Source100: README.md
|
2014-07-22 14:38:18 +00:00
|
|
|
BuildRequires: perl
|
2013-06-05 08:22:36 +00:00
|
|
|
BuildRequires: perl-macros
|
2011-09-30 07:15:58 +00:00
|
|
|
BuildRequires: perl(Devel::PPPort) >= 3.19
|
2023-12-09 13:23:52 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
|
2014-07-22 14:38:18 +00:00
|
|
|
BuildRequires: perl(ExtUtils::ParseXS) >= 3.18
|
2023-12-09 13:23:52 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.4005
|
|
|
|
BuildRequires: perl(Module::Build::XSUtil) >= 0.03
|
2014-07-22 14:38:18 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
BuildRequires: perl(Test::Requires) >= 0.03
|
2013-06-05 08:22:36 +00:00
|
|
|
BuildRequires: perl(parent)
|
|
|
|
Requires: perl(parent)
|
2023-12-09 13:23:52 +00:00
|
|
|
Provides: perl(Data::Clone) = %{version}
|
2024-03-08 22:15:42 +00:00
|
|
|
%undefine __perllib_provides
|
2014-07-22 14:38:18 +00:00
|
|
|
%{perl_requires}
|
2011-09-30 07:15:58 +00:00
|
|
|
|
|
|
|
%description
|
2014-07-22 14:38:18 +00:00
|
|
|
'Data::Clone' does data cloning, i.e. copies things recursively. This is
|
2011-09-30 07:15:58 +00:00
|
|
|
smart so that it works with not only non-blessed references, but also with
|
2014-07-22 14:38:18 +00:00
|
|
|
blessed references (i.e. objects). When 'clone()' finds an object, it calls
|
|
|
|
a 'clone' method of the object if the object has a 'clone', otherwise it
|
|
|
|
makes a surface copy of the object. That is, this module does polymorphic
|
|
|
|
data cloning.
|
|
|
|
|
2011-09-30 07:15:58 +00:00
|
|
|
Although there are several modules on CPAN which can clone data, this
|
2017-10-03 08:54:44 +00:00
|
|
|
module has a different cloning policy from almost all of them. See Cloning
|
|
|
|
policy and Comparison to other cloning modules for details.
|
2011-09-30 07:15:58 +00:00
|
|
|
|
|
|
|
%prep
|
2023-12-09 13:23:52 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2011-09-30 07:15:58 +00:00
|
|
|
|
|
|
|
%build
|
2023-12-09 13:23:52 +00:00
|
|
|
perl Build.PL --installdirs=vendor optimize="%{optflags}"
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2014-07-22 14:38:18 +00:00
|
|
|
|
|
|
|
%check
|
2023-12-09 13:23:52 +00:00
|
|
|
./Build test
|
2011-09-30 07:15:58 +00:00
|
|
|
|
|
|
|
%install
|
2023-12-09 13:23:52 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2014-07-22 14:38:18 +00:00
|
|
|
%perl_gen_filelist
|
2011-09-30 07:15:58 +00:00
|
|
|
|
2014-07-22 14:38:18 +00:00
|
|
|
%files -f %{name}.files
|
2023-12-09 13:23:52 +00:00
|
|
|
%doc Changes example README.md
|
|
|
|
%license LICENSE
|
2011-09-30 07:15:58 +00:00
|
|
|
|
|
|
|
%changelog
|