Compare commits
28 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
0019b07630 | ||
|
5be760fb95 | ||
|
aecfa1cdf6 | ||
|
29f7a5dcbf | ||
|
08b2c228af | ||
|
3acba67a8e | ||
|
68d8350791 | ||
|
0743362952 | ||
|
fb3b7e4d9a | ||
|
b210ac8c7e | ||
|
6d8d4c9cd6 | ||
|
f540d819fc | ||
|
1854345c45 | ||
|
92c5ba6916 | ||
|
d40f4f2623 | ||
|
3ac83bfce0 | ||
|
4764ae61e6 | ||
|
e0a3e1a96b | ||
|
bf9a1e9fed | ||
|
1377b441a9 | ||
|
637c34979d | ||
|
cb18f8870b | ||
|
572ca8b9ca | ||
|
1dbea317e1 | ||
|
7fa84be2c2 | ||
|
8ec1306f59 | ||
|
179840c1fe | ||
|
37830db254 |
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,3 +1,9 @@
|
||||
/Syntax-Keyword-Dynamically-0.05.tar.gz
|
||||
/Syntax-Keyword-Dynamically-0.06.tar.gz
|
||||
/Syntax-Keyword-Dynamically-0.07.tar.gz
|
||||
/Syntax-Keyword-Dynamically-0.08.tar.gz
|
||||
/Syntax-Keyword-Dynamically-0.09.tar.gz
|
||||
/Syntax-Keyword-Dynamically-0.10.tar.gz
|
||||
/Syntax-Keyword-Dynamically-0.11.tar.gz
|
||||
/Syntax-Keyword-Dynamically-0.12.tar.gz
|
||||
/Syntax-Keyword-Dynamically-0.13.tar.gz
|
||||
|
7
gating.yaml
Normal file
7
gating.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context: bodhi_update_push_stable
|
||||
subject_type: koji_build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
@ -1,2 +1,3 @@
|
||||
from Config import *
|
||||
addFilter("spelling-error .* accessors");
|
||||
addFilter("spelling-error .* accessors")
|
||||
addFilter("-tests\.noarch: W: no-documentation")
|
||||
|
@ -4,39 +4,66 @@
|
||||
%bcond_without perl_Syntax_Keyword_Dynamically_enables_optional_test
|
||||
|
||||
Name: perl-Syntax-Keyword-Dynamically
|
||||
Version: 0.07
|
||||
Version: 0.13
|
||||
Release: 1%{?dist}
|
||||
Summary: Dynamically change the value of a variable
|
||||
License: GPL+ or Artistic
|
||||
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
||||
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: findutils
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(:VERSION) >= 5
|
||||
%if %{with perl_Syntax_Keyword_Dynamically_enables_Devel_MAT}
|
||||
BuildRequires: perl(Devel::MAT::Dumper::Helper)
|
||||
BuildRequires: perl(Devel::MAT::Dumper::Helper) >= 0.44
|
||||
%endif
|
||||
BuildRequires: perl(ExtUtils::CBuilder)
|
||||
%define Future_AsyncAwait_minver 0.60
|
||||
BuildRequires: perl(Future::AsyncAwait::ExtensionBuilder) >= %{Future_AsyncAwait_minver}
|
||||
BuildRequires: perl(Module::Build)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
BuildRequires: perl(XS::Parse::Keyword::Builder) >= 0.13
|
||||
# Run-time:
|
||||
BuildRequires: perl(:VERSION) >= 5.14
|
||||
BuildRequires: perl(Carp)
|
||||
# lib/Syntax/Keyword/Dynamically.xs includes XSParseKeyword.h generated by
|
||||
# XS::Parse::Keyword::Builder which loads XS::Parse::Keyword of version
|
||||
# specified by boot_xs_parse_keyword() argument in Dynamically.xs
|
||||
BuildRequires: perl(XS::Parse::Keyword) >= 0.13
|
||||
BuildRequires: perl(XSLoader)
|
||||
# Tests:
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
BuildRequires: perl(Test2::V0)
|
||||
%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
|
||||
# Higher version from boot_future_asyncawait()
|
||||
BuildRequires: perl(Future::AsyncAwait) >= %{Future_AsyncAwait_minver}
|
||||
%define Object_Pad_minver 0.800
|
||||
BuildRequires: perl(Object::Pad) >= %{Object_Pad_minver}
|
||||
BuildRequires: perl(Sentinel)
|
||||
BuildRequires: perl(Test::Pod) >= 1
|
||||
%endif
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
# From boot_future_asyncawait() argument in lib/Syntax/Keyword/Dynamically.xs
|
||||
Requires: perl(Future::AsyncAwait) >= %{Future_AsyncAwait_minver}
|
||||
%if %{defined perl_Future_AsyncAwait_ABI}
|
||||
# Future::AsyncAwait maintains multiple ABIs whose compatibility is checked at
|
||||
# run-time.
|
||||
Requires: %{perl_Future_AsyncAwait_ABI}
|
||||
%endif
|
||||
# lib/Syntax/Keyword/Dynamically.xs includes XSParseKeyword.h generated by
|
||||
# XS::Parse::Keyword::Builder which loads XS::Parse::Keyword of version
|
||||
# specified by boot_xs_parse_keyword() argument in Dynamically.xs
|
||||
Requires: perl(XS::Parse::Keyword) >= 0.13
|
||||
%if %{defined perl_XS_Parse_Keyword_ABI}
|
||||
# XS::Parse::Keyword maintains multiple ABIs whose compatibility is checked at
|
||||
# run-time by S_boot_xs_parse_keyword() compiled into this package.
|
||||
# The ABI is defined in XSPARSEKEYWORD_ABI_VERSION of XSParseKeyword.h
|
||||
Requires: %{perl_XS_Parse_Keyword_ABI}
|
||||
%endif
|
||||
|
||||
%description
|
||||
This Perl module provides a syntax plugin that implements a single keyword,
|
||||
@ -46,6 +73,23 @@ 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.
|
||||
|
||||
%package tests
|
||||
Summary: Tests for %{name}
|
||||
BuildArch: noarch
|
||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Requires: perl-Test-Harness
|
||||
%if %{with perl_Syntax_Keyword_Dynamically_enables_optional_test} && !%{defined perl_bootstrap}
|
||||
# A cycle: perl-Future-AsyncAwait → perl-Syntax-Keyword-Dynamically
|
||||
Requires: perl(Future)
|
||||
Requires: perl(Future::AsyncAwait) >= 0.31
|
||||
Requires: perl(Object::Pad) >= %{Object_Pad_minver}
|
||||
Requires: perl(Sentinel)
|
||||
%endif
|
||||
|
||||
%description tests
|
||||
Tests from %{name}. Execute them
|
||||
with "%{_libexecdir}/%{name}/test".
|
||||
|
||||
%prep
|
||||
%setup -q -n Syntax-Keyword-Dynamically-%{version}
|
||||
%if !%{with perl_Syntax_Keyword_Dynamically_enables_optional_test} || %{defined perl_bootstrap}
|
||||
@ -56,27 +100,120 @@ do
|
||||
perl -i -ne 'print $_ unless m{^\Q'"$F"'\E}' MANIFEST
|
||||
done
|
||||
%endif
|
||||
chmod +x t/*.t
|
||||
|
||||
%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/*
|
||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||
find %{buildroot} -type f -name '*.bs' -size 0 -delete
|
||||
%{_fixperms} %{buildroot}/*
|
||||
# Install tests
|
||||
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
||||
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
||||
%if %{with perl_Syntax_Keyword_Dynamically_enables_optional_test} && !%{defined perl_bootstrap}
|
||||
rm %{buildroot}%{_libexecdir}/%{name}/t/99pod.t
|
||||
%endif
|
||||
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
||||
#!/bin/sh
|
||||
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
||||
EOF
|
||||
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
||||
|
||||
%check
|
||||
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
||||
./Build test
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc Changes README
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/Syntax*
|
||||
%{_mandir}/man3/*
|
||||
%dir %{perl_vendorarch}/auto/Syntax
|
||||
%dir %{perl_vendorarch}/auto/Syntax/Keyword
|
||||
%{perl_vendorarch}/auto/Syntax/Keyword/Dynamically
|
||||
%dir %{perl_vendorarch}/Syntax
|
||||
%dir %{perl_vendorarch}/Syntax/Keyword
|
||||
%{perl_vendorarch}/Syntax/Keyword/Dynamically.pm
|
||||
%{_mandir}/man3/Syntax::Keyword::Dynamically.*
|
||||
|
||||
%files tests
|
||||
%{_libexecdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Fri Sep 22 2023 Petr Pisar <ppisar@redhat.com> - 0.13-1
|
||||
- 0.13 bump
|
||||
|
||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Wed Jul 12 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-3
|
||||
- Perl 5.38 re-rebuild of bootstrapped packages
|
||||
|
||||
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-2
|
||||
- Perl 5.38 rebuild
|
||||
|
||||
* Mon Mar 06 2023 Petr Pisar <ppisar@redhat.com> - 0.12-1
|
||||
- 0.12 bump
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Wed Nov 23 2022 Petr Pisar <ppisar@redhat.com> - 0.11-1
|
||||
- 0.11 bump
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-4
|
||||
- Perl 5.36 re-rebuild of bootstrapped packages
|
||||
|
||||
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-3
|
||||
- Perl 5.36 rebuild
|
||||
|
||||
* Tue Mar 22 2022 Adam Williamson <awilliam@redhat.com> - 0.10-2
|
||||
- Rebuild with no changes to fix update mess on F36
|
||||
|
||||
* Thu Mar 17 2022 Petr Pisar <ppisar@redhat.com> - 0.10-1
|
||||
- 0.10 bump
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.09-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Aug 27 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.09-2
|
||||
- Finish bootstrap against perl-XS-Parse-Keyword-0.13
|
||||
|
||||
* Thu Aug 26 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.09-1
|
||||
- 0.09 bump; Bootstrap against perl-XS-Parse-Keyword-0.13
|
||||
|
||||
* Tue Aug 17 2021 Petr Pisar <ppisar@redhat.com> - 0.08-9
|
||||
- Finish bootstrap against perl-XS-Parse-Keyword-0.12 (bug #1994077)
|
||||
|
||||
* Tue Aug 17 2021 Petr Pisar <ppisar@redhat.com> - 0.08-8
|
||||
- Bootstrap against perl-XS-Parse-Keyword-0.12 (bug #1994077)
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jun 02 2021 Petr Pisar <ppisar@redhat.com> - 0.08-6
|
||||
- Rebuild against perl-XS-Parse-Keyword-0.06 (bug #1966787)
|
||||
|
||||
* Tue Jun 01 2021 Petr Pisar <ppisar@redhat.com> - 0.08-5
|
||||
- Finish bootstrapping against XS-Parse-Keyword-0.04 (CPAN RT#136611)
|
||||
|
||||
* Tue Jun 01 2021 Petr Pisar <ppisar@redhat.com> - 0.08-4
|
||||
- Rebuild against XS-Parse-Keyword-0.04 (CPAN RT#136611)
|
||||
|
||||
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-3
|
||||
- Perl 5.34 re-rebuild of bootstrapped packages
|
||||
|
||||
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-2
|
||||
- Perl 5.34 rebuild
|
||||
|
||||
* Mon May 03 2021 Petr Pisar <ppisar@redhat.com> - 0.08-1
|
||||
- 0.08 bump
|
||||
- Package the tests
|
||||
|
||||
* Wed Feb 03 2021 Petr Pisar <ppisar@redhat.com> - 0.07-1
|
||||
- 2.07 bump
|
||||
|
||||
|
5
plans/sanity.fmf
Normal file
5
plans/sanity.fmf
Normal file
@ -0,0 +1,5 @@
|
||||
summary: Sanity tests
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (Syntax-Keyword-Dynamically-0.07.tar.gz) = 0ca444831d316f8a82a2a2c6024931aefe80778574c2aa629271eb84e9fcb0328ebc8fd93194d3272924361dc65f7c1a4c0e8eb6ca050bb83500f10404837069
|
||||
SHA512 (Syntax-Keyword-Dynamically-0.13.tar.gz) = 397167ab849804a682902a916fc6596d0a12a6b66625b4ed50780eced4bee251d4e2f5fe432cb6afb808847b34f05189936741827d370673a88e66dc9dff6944
|
||||
|
4
tests/upstream-tests.fmf
Normal file
4
tests/upstream-tests.fmf
Normal file
@ -0,0 +1,4 @@
|
||||
summary: Upstream tests
|
||||
component: perl-Syntax-Keyword-Dynamically
|
||||
require: perl-Syntax-Keyword-Dynamically-tests
|
||||
test: /usr/libexec/perl-Syntax-Keyword-Dynamically/test
|
Loading…
Reference in New Issue
Block a user