diff --git a/Task-Weaken-1.06.tar.gz b/Task-Weaken-1.06.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6c015dc314b1bc9d682205418165ba548de0f7c5 Binary files /dev/null and b/Task-Weaken-1.06.tar.gz differ diff --git a/perl-Task-Weaken.spec b/perl-Task-Weaken.spec new file mode 100644 index 0000000000000000000000000000000000000000..bbe696339bce385846dd317817473a9b92af1a49 --- /dev/null +++ b/perl-Task-Weaken.spec @@ -0,0 +1,59 @@ +%define anolis_release 1 +Name: perl-Task-Weaken +Version: 1.06 +Release: %{anolis_release}%{?dist} +Summary: Ensure that a platform has weaken support +License: GPL+ or Artistic +URL: https://metacpan.org/release/Task-Weaken +Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Task-Weaken-%{version}.tar.gz +BuildArch: noarch +# Build +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.6 +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(Scalar::Util) >= 1.14 +# Tests +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(Test::More) >= 0.42 +# Dependencies +Requires: perl(Scalar::Util) >= 1.14 + +%description +One recurring problem in modules that use Scalar::Util's weaken function is +that it is not present in the pure-perl variant. + +This restores the functionality testing to a dependency you do once in +your Makefile.PL, rather than something you have to write extra tests +for each time you write a module. + +%prep +%setup -q -n Task-Weaken-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} -c $RPM_BUILD_ROOT + +%check +make test + +%files +%license LICENSE +%doc Changes CONTRIBUTING README +%{perl_vendorlib}/Task/ +%{_mandir}/man3/Task::Weaken.3* + +%changelog +* Wed Feb 01 2023 Chunmei Xu - 1.06-1 +- init from upstream