Compare commits

..

28 Commits
f34 ... rawhide

Author SHA1 Message Date
Petr Písař
0019b07630 0.13 bump 2023-09-22 10:56:18 +02:00
Fedora Release Engineering
5be760fb95 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 01:52:44 +00:00
Jitka Plesnikova
aecfa1cdf6 Perl 5.38 re-rebuild of bootstrapped packages 2023-07-12 13:03:23 +02:00
Jitka Plesnikova
29f7a5dcbf Perl 5.38 rebuild 2023-07-11 15:24:34 +02:00
Petr Písař
08b2c228af 0.12 bump 2023-03-06 12:35:14 +01:00
Fedora Release Engineering
3acba67a8e Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 06:11:02 +00:00
Jitka Plesnikova
68d8350791 Remove perl(MODULE_COMPAT), it will be replaced by generators 2023-01-13 18:49:47 +01:00
Petr Písař
0743362952 Guard perl_Future_AsyncAwait_ABI use when building SRPM 2022-11-23 10:20:55 +01:00
Petr Písař
fb3b7e4d9a 0.11 bump 2022-11-23 10:19:08 +01:00
Fedora Release Engineering
b210ac8c7e Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 11:09:44 +00:00
Jitka Plesnikova
6d8d4c9cd6 Perl 5.36 re-rebuild of bootstrapped packages 2022-06-03 12:46:19 +02:00
Jitka Plesnikova
f540d819fc Perl 5.36 rebuild 2022-05-31 22:13:49 +02:00
Adam Williamson
1854345c45 Rebuild with no changes to fix update mess on F36 2022-03-22 13:23:51 -07:00
Petr Písař
92c5ba6916 0.10 bump 2022-03-17 13:46:56 +01:00
Fedora Release Engineering
d40f4f2623 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 05:20:13 +00:00
Jitka Plesnikova
3ac83bfce0 Finish bootstrap against perl-XS-Parse-Keyword-0.13 2021-08-27 09:00:21 +02:00
Jitka Plesnikova
4764ae61e6 0.09 bump; Bootstrap against perl-XS-Parse-Keyword-0.13 2021-08-26 21:48:24 +02:00
Petr Písař
e0a3e1a96b Finish bootstrap against perl-XS-Parse-Keyword-0.12 2021-08-17 10:32:21 +02:00
Petr Písař
bf9a1e9fed Bootstrap against perl-XS-Parse-Keyword-0.12 2021-08-17 10:25:12 +02:00
Fedora Release Engineering
1377b441a9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 23:53:06 +00:00
Petr Písař
637c34979d Rebuild against perl-XS-Parse-Keyword-0.06 2021-06-02 16:46:45 +02:00
Petr Písař
cb18f8870b Finish bootstrapping against XS-Parse-Keyword-0.04 2021-06-01 13:24:18 +02:00
Petr Písař
572ca8b9ca Rebuild against XS-Parse-Keyword-0.04 2021-06-01 12:44:35 +02:00
Jitka Plesnikova
1dbea317e1 Perl 5.34 re-rebuild of bootstrapped packages 2021-05-24 10:16:59 +02:00
Jitka Plesnikova
7fa84be2c2 Perl 5.34 rebuild 2021-05-22 00:27:26 +02:00
Petr Písař
8ec1306f59 Add FMF tests and gating 2021-05-03 11:36:12 +02:00
Petr Písař
179840c1fe Package the tests 2021-05-03 11:35:29 +02:00
Petr Písař
37830db254 0.08 bump 2021-05-03 11:22:43 +02:00
8 changed files with 176 additions and 15 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

6
.gitignore vendored
View File

@ -1,3 +1,9 @@
/Syntax-Keyword-Dynamically-0.05.tar.gz /Syntax-Keyword-Dynamically-0.05.tar.gz
/Syntax-Keyword-Dynamically-0.06.tar.gz /Syntax-Keyword-Dynamically-0.06.tar.gz
/Syntax-Keyword-Dynamically-0.07.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
View 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}

View File

@ -1,2 +1,3 @@
from Config import * from Config import *
addFilter("spelling-error .* accessors"); addFilter("spelling-error .* accessors")
addFilter("-tests\.noarch: W: no-documentation")

View File

@ -4,39 +4,66 @@
%bcond_without perl_Syntax_Keyword_Dynamically_enables_optional_test %bcond_without perl_Syntax_Keyword_Dynamically_enables_optional_test
Name: perl-Syntax-Keyword-Dynamically Name: perl-Syntax-Keyword-Dynamically
Version: 0.07 Version: 0.13
Release: 1%{?dist} Release: 1%{?dist}
Summary: Dynamically change the value of a variable 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 URL: https://metacpan.org/release/Syntax-Keyword-Dynamically
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Syntax-Keyword-Dynamically-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Syntax-Keyword-Dynamically-%{version}.tar.gz
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: perl-devel BuildRequires: perl-devel
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5
%if %{with perl_Syntax_Keyword_Dynamically_enables_Devel_MAT} %if %{with perl_Syntax_Keyword_Dynamically_enables_Devel_MAT}
BuildRequires: perl(Devel::MAT::Dumper::Helper) BuildRequires: perl(Devel::MAT::Dumper::Helper) >= 0.44
%endif %endif
BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(ExtUtils::CBuilder)
%define Future_AsyncAwait_minver 0.60
BuildRequires: perl(Future::AsyncAwait::ExtensionBuilder) >= %{Future_AsyncAwait_minver}
BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build)
BuildRequires: perl(strict) BuildRequires: perl(strict)
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
BuildRequires: perl(XS::Parse::Keyword::Builder) >= 0.13
# Run-time: # Run-time:
BuildRequires: perl(:VERSION) >= 5.14 BuildRequires: perl(:VERSION) >= 5.14
BuildRequires: perl(Carp) 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) BuildRequires: perl(XSLoader)
# Tests: # Tests:
BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test2::V0)
%if %{with perl_Syntax_Keyword_Dynamically_enables_optional_test} && !%{defined perl_bootstrap} %if %{with perl_Syntax_Keyword_Dynamically_enables_optional_test} && !%{defined perl_bootstrap}
# A cycle: perl-Future-AsyncAwait → perl-Syntax-Keyword-Dynamically # A cycle: perl-Future-AsyncAwait → perl-Syntax-Keyword-Dynamically
# Optional tests: # Optional tests:
BuildRequires: perl(Future) BuildRequires: perl(Future)
BuildRequires: perl(Future::AsyncAwait) >= 0.31 # Higher version from boot_future_asyncawait()
BuildRequires: perl(Object::Pad) >= 0.15 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(Sentinel)
BuildRequires: perl(Test::Pod) >= 1 BuildRequires: perl(Test::Pod) >= 1
%endif %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 %description
This Perl module provides a syntax plugin that implements a single keyword, 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 regular local: You can dynamically assign to left-value functions and
accessors, and you can dynamically assign to regular lexical variables. 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 %prep
%setup -q -n Syntax-Keyword-Dynamically-%{version} %setup -q -n Syntax-Keyword-Dynamically-%{version}
%if !%{with perl_Syntax_Keyword_Dynamically_enables_optional_test} || %{defined perl_bootstrap} %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 perl -i -ne 'print $_ unless m{^\Q'"$F"'\E}' MANIFEST
done done
%endif %endif
chmod +x t/*.t
%build %build
perl Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS" perl Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS"
./Build ./Build
%install %install
./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 ./Build install --destdir=%{buildroot} --create_packlist=0
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete find %{buildroot} -type f -name '*.bs' -size 0 -delete
%{_fixperms} $RPM_BUILD_ROOT/* %{_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 %check
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
./Build test ./Build test
%files %files
%license LICENSE %license LICENSE
%doc Changes README %doc Changes README
%{perl_vendorarch}/auto/* %dir %{perl_vendorarch}/auto/Syntax
%{perl_vendorarch}/Syntax* %dir %{perl_vendorarch}/auto/Syntax/Keyword
%{_mandir}/man3/* %{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 %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 * Wed Feb 03 2021 Petr Pisar <ppisar@redhat.com> - 0.07-1
- 2.07 bump - 2.07 bump

5
plans/sanity.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Sanity tests
discover:
how: fmf
execute:
how: tmt

View File

@ -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
View 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