2020-07-28 07:27:13 +00:00
|
|
|
# Enable debugging with Devel::MAT
|
|
|
|
%bcond_with perl_Syntax_Keyword_Dynamically_enables_Devel_MAT
|
|
|
|
# Perform optional tests
|
|
|
|
%bcond_without perl_Syntax_Keyword_Dynamically_enables_optional_test
|
|
|
|
|
|
|
|
Name: perl-Syntax-Keyword-Dynamically
|
2021-02-03 14:20:36 +00:00
|
|
|
Version: 0.07
|
|
|
|
Release: 1%{?dist}
|
2020-07-28 07:27:13 +00:00
|
|
|
Summary: Dynamically change the value of a variable
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
URL: https://metacpan.org/release/Syntax-Keyword-Dynamically
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Syntax-Keyword-Dynamically-%{version}.tar.gz
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
%if %{with perl_Syntax_Keyword_Dynamically_enables_Devel_MAT}
|
|
|
|
BuildRequires: perl(Devel::MAT::Dumper::Helper)
|
|
|
|
%endif
|
|
|
|
BuildRequires: perl(ExtUtils::CBuilder)
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
# Run-time:
|
|
|
|
BuildRequires: perl(:VERSION) >= 5.14
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(XSLoader)
|
|
|
|
# Tests:
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
%if %{with perl_Syntax_Keyword_Dynamically_enables_optional_test} && !%{defined perl_bootstrap}
|
|
|
|
# A cycle: perl-Future-AsyncAwait → perl-Syntax-Keyword-Dynamically
|
|
|
|
# Optional tests:
|
|
|
|
BuildRequires: perl(Future)
|
|
|
|
BuildRequires: perl(Future::AsyncAwait) >= 0.31
|
|
|
|
BuildRequires: perl(Object::Pad) >= 0.15
|
|
|
|
BuildRequires: perl(Sentinel)
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1
|
|
|
|
%endif
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
%description
|
|
|
|
This Perl module provides a syntax plugin that implements a single keyword,
|
|
|
|
dynamically, which alters the behavior of a scalar assignment operation.
|
|
|
|
Syntactically and semantically it is similar to the built-in Perl keyword
|
|
|
|
local, but is implemented somewhat differently to give two key advantages over
|
|
|
|
regular local: You can dynamically assign to left-value functions and
|
|
|
|
accessors, and you can dynamically assign to regular lexical variables.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Syntax-Keyword-Dynamically-%{version}
|
|
|
|
%if !%{with perl_Syntax_Keyword_Dynamically_enables_optional_test} || %{defined perl_bootstrap}
|
|
|
|
for F in t/80await+dynamically.t t/80dynamically+Object-Pad.t \
|
|
|
|
t/80dynamically+Sentinel.t t/81async-method+dynamically.t t/99pod.t
|
|
|
|
do
|
|
|
|
rm "$F"
|
|
|
|
perl -i -ne 'print $_ unless m{^\Q'"$F"'\E}' MANIFEST
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS"
|
|
|
|
./Build
|
|
|
|
|
|
|
|
%install
|
|
|
|
./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
|
|
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc Changes README
|
|
|
|
%{perl_vendorarch}/auto/*
|
|
|
|
%{perl_vendorarch}/Syntax*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2021-02-03 14:20:36 +00:00
|
|
|
* Wed Feb 03 2021 Petr Pisar <ppisar@redhat.com> - 0.07-1
|
|
|
|
- 2.07 bump
|
|
|
|
|
2021-01-27 04:40:55 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-11-03 12:26:53 +00:00
|
|
|
* Tue Nov 03 2020 Petr Pisar <ppisar@redhat.com> - 0.06-1
|
|
|
|
- 0.06 bump
|
|
|
|
|
2020-07-28 13:52:52 +00:00
|
|
|
* Tue Jul 28 2020 Petr Pisar <ppisar@redhat.com> - 0.05-2
|
|
|
|
- Finish a bootstrap
|
|
|
|
|
2020-07-28 07:27:13 +00:00
|
|
|
* Wed Jul 22 2020 Petr Pisar <ppisar@redhat.com> 0.05-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|