[packages/perl-Clone-Choose] - new

baggins baggins at pld-linux.org
Sat Nov 15 14:09:19 CET 2025


commit 602c90ecb5332308d95e624f8c68f69eb79e26f3
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Nov 15 16:08:53 2025 +0100

    - new

 perl-Clone-Choose.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
---
diff --git a/perl-Clone-Choose.spec b/perl-Clone-Choose.spec
new file mode 100644
index 0000000..c6df071
--- /dev/null
+++ b/perl-Clone-Choose.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without	tests		# unit tests
+#
+%define		pdir	Clone
+%define		pnam	Choose
+Summary:	Clone::Choose - Choose appropriate clone utility
+Name:		perl-Clone-Choose
+Version:	0.010
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Clone/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	420920f99c01308bcdfb6a731082f04f
+URL:		https://metacpan.org/dist/Clone-Choose
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRequires:	rpmbuild(macros) >= 1.745
+%if %{with tests}
+BuildRequires:	perl(Test::Without::Module)
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Clone::Choose checks several different modules which provides a
+clone() function and selects an appropriate one. The default
+preference is
+
+  Clone
+  Storable
+  Clone::PP
+
+This list might evolve in future. Please see /EXPORTS how to pick a
+particular one.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/Clone/Choose.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Clone-Choose.git/commitdiff/602c90ecb5332308d95e624f8c68f69eb79e26f3



More information about the pld-cvs-commit mailing list