perl-XS-Parse-Keyword/perl-XS-Parse-Keyword.spec

311 lines
10 KiB
RPMSpec
Raw Normal View History

2021-05-04 11:16:44 +00:00
# Perform optional tests
%bcond_without perl_XS_Parse_Keyword_enables_optional_test
Name: perl-XS-Parse-Keyword
2024-01-04 13:03:45 +00:00
Version: 0.39
Release: 7%{?dist}
2021-05-04 11:16:44 +00:00
Summary: XS functions to assist in parsing keyword syntax
2022-07-26 10:22:29 +00:00
License: GPL-1.0-or-later OR Artistic-1.0-Perl
2021-05-04 11:16:44 +00:00
URL: https://metacpan.org/release/XS-Parse-Keyword
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/XS-Parse-Keyword-%{version}.tar.gz
2021-06-02 14:40:01 +00:00
Source1: macros.perl-XS-Parse-Keyword
2021-05-04 11:16:44 +00:00
BuildRequires: coreutils
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
2021-07-13 07:11:35 +00:00
BuildRequires: perl(:VERSION) >= 5.14
BuildRequires: perl(B)
2021-05-04 11:16:44 +00:00
BuildRequires: perl(base)
BuildRequires: perl(ExtUtils::CBuilder)
2021-07-13 07:11:35 +00:00
BuildRequires: perl(ExtUtils::CChecker) >= 0.11
2021-05-04 11:16:44 +00:00
BuildRequires: perl(lib)
BuildRequires: perl(Module::Build)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
2021-07-13 07:11:35 +00:00
BuildRequires: perl(constant)
2021-05-04 11:16:44 +00:00
BuildRequires: perl(XSLoader)
# Tests:
2022-07-26 10:22:29 +00:00
# perl(:VERSION) >= 5.16 not yet used in t/70infix.t
2021-09-22 11:41:13 +00:00
BuildRequires: perl(B::Deparse)
2022-02-22 07:51:41 +00:00
# Some t/*.xs tests need a newer ExtUtils::ParseXS
BuildRequires: perl(ExtUtils::ParseXS) >= 3.16
2021-09-29 13:19:20 +00:00
BuildRequires: perl(overload)
2021-09-22 11:41:13 +00:00
BuildRequires: perl(utf8)
2023-06-15 09:52:36 +00:00
BuildRequires: perl(Test2::V0)
2021-05-04 11:16:44 +00:00
%if %{with perl_XS_Parse_Keyword_enables_optional_test}
# Optional tests:
BuildRequires: perl(Test::Pod) >= 1.00
%endif
2021-06-02 08:29:26 +00:00
# This module maintains multiple ABIs whose compatibility is checked at
# run-time by S_boot_xs_parse_keyword() compiled into the users of this module.
2021-09-01 11:00:07 +00:00
# This ABI range is defined with XS::Parse::Keyword/ABIVERSION_MIN and
2021-06-02 08:29:26 +00:00
# XS::Parse::Keyword/ABIVERSION_MAX in lib/XS/Parse/Keyword.xs.
Provides: perl(:XS_Parse_Keyword_ABI_1)
Provides: perl(:XS_Parse_Keyword_ABI_2)
2021-09-01 11:00:07 +00:00
# This module maintains multiple ABIs whose compatibility is checked at
# run-time by S_boot_xs_parse_infix() compiled into the users of this module.
# This ABI range is defined with XS::Parse::Infix/ABIVERSION_MIN and
# XS::Parse::Infix/ABIVERSION_MAX in lib/XS/Parse/Keyword.xs.
2021-09-07 06:52:28 +00:00
Provides: perl(:XS_Parse_Infix_ABI_1)
2022-10-25 09:15:42 +00:00
Provides: perl(:XS_Parse_Infix_ABI_2)
2021-05-04 11:16:44 +00:00
# Filter private modules
2023-06-15 09:52:36 +00:00
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(testcase\\)
2021-05-04 11:16:44 +00:00
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(testcase\\)
%description
This module provides some XS functions to assist in writing syntax modules
that provide new perl-visible syntax, primarily for authors of keyword plugins
using the PL_keyword_plugin hook mechanism.
2021-06-02 14:40:01 +00:00
%package Builder
Summary: Build-time support for XS::Parse::Keyword
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-interpreter
# Subpackaged in 0.06
Conflicts: %{name}%{?_isa} < 0.06
%description Builder
This module provides a build-time helper to assist authors writing XS modules
that use XS::Parse::Keyword. It prepares a Module::Build-using distribution to
be able to make use of XS::Parse::Keyword.
2021-05-04 11:16:44 +00:00
%package tests
Summary: Tests for %{name}
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
2022-02-22 07:51:41 +00:00
# ExtUtils::ParseXS is not needed at run-time because the XS tests are
# packaged precompiled.
2021-05-04 11:43:38 +00:00
Requires: perl(XSLoader)
2021-05-04 11:16:44 +00:00
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
%autosetup -p1 -n XS-Parse-Keyword-%{version}
2021-05-04 11:16:44 +00:00
%if !%{with perl_XS_Parse_Keyword_enables_optional_test}
rm t/99pod.t
perl -i -ne 'print $_ unless m{\A\Qt/99pod.t\E\b}' MANIFEST
%endif
chmod +x t/*.t
%build
perl Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS"
./Build
# Build object files for tests now. They are installed into tests subpackage.
./Build testlib
%install
./Build install --destdir=%{buildroot} --create_packlist=0
find %{buildroot} -type f -name '*.bs' -size 0 -delete
%{_fixperms} %{buildroot}/*
2021-06-02 14:40:01 +00:00
install -D -m 0644 -t %{buildroot}%{_rpmmacrodir} %{SOURCE1}
2021-05-04 11:16:44 +00:00
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
find %{buildroot}%{_libexecdir}/%{name} -type f \
\( -name '*.bs' -o -name '*.c' -o -name '*.o' \) -delete
%if %{with perl_XS_Parse_Keyword_enables_optional_test}
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
2023-01-05 12:48:32 +00:00
%dir %{perl_vendorarch}/auto/XS
%dir %{perl_vendorarch}/auto/XS/Parse
%{perl_vendorarch}/auto/XS/Parse/Keyword
2021-06-02 14:40:01 +00:00
%dir %{perl_vendorarch}/XS
%dir %{perl_vendorarch}/XS/Parse
2021-09-01 11:00:07 +00:00
%{perl_vendorarch}/XS/Parse/Infix.pm
2021-06-02 14:40:01 +00:00
%{perl_vendorarch}/XS/Parse/Keyword.pm
2021-09-01 11:00:07 +00:00
%{_mandir}/man3/XS::Parse::Infix.*
2021-06-02 14:40:01 +00:00
%{_mandir}/man3/XS::Parse::Keyword.*
%files Builder
2021-09-01 11:00:07 +00:00
%{perl_vendorarch}/XS/Parse/Infix
2021-06-02 14:40:01 +00:00
%{perl_vendorarch}/XS/Parse/Keyword
2021-09-01 11:00:07 +00:00
%{_mandir}/man3/XS::Parse::Infix::*
2021-06-02 14:40:01 +00:00
%{_mandir}/man3/XS::Parse::Keyword::*
%{_rpmmacrodir}/macros.%{name}
2021-05-04 11:16:44 +00:00
%files tests
%{_libexecdir}/%{name}
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.39-7
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Thu Aug 08 2024 Troy Dawson <tdawson@redhat.com> - 0.39-6
- Bump release for Aug 2024 java mass rebuild
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.39-5
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jan 04 2024 Petr Pisar <ppisar@redhat.com> - 0.39-2
- Rebuild for fixing TMT tests without discovering dependencies
2024-01-04 13:03:45 +00:00
* Thu Jan 04 2024 Petr Pisar <ppisar@redhat.com> - 0.39-1
- 0.39 bump
2023-08-09 13:58:24 +00:00
* Wed Aug 09 2023 Petr Pisar <ppisar@redhat.com> - 0.38-1
- 0.38 bump
2023-08-09 10:29:16 +00:00
* Wed Aug 09 2023 Petr Pisar <ppisar@redhat.com> - 0.37-1
- 0.37 bump
2023-07-27 10:36:23 +00:00
* Wed Jul 26 2023 Petr Pisar <ppisar@redhat.com> - 0.36-2
- Fix a check for PL_infix_plugin
2023-07-25 15:20:58 +00:00
* Tue Jul 25 2023 Petr Pisar <ppisar@redhat.com> - 0.36-1
- 0.36 bump
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2023-07-11 13:56:35 +00:00
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.34-2
- Perl 5.38 rebuild
2023-06-15 09:52:36 +00:00
* Thu Jun 15 2023 Petr Pisar <ppisar@redhat.com> - 0.34-1
- 0.34 bump
2023-02-20 15:21:36 +00:00
* Mon Feb 20 2023 Petr Pisar <ppisar@redhat.com> - 0.33-1
- 0.33 bump
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.32-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2023-01-13 08:02:19 +00:00
* Fri Jan 13 2023 Petr Pisar <ppisar@redhat.com> - 0.32-1
- 0.32 bump
2023-01-05 12:48:32 +00:00
* Thu Jan 05 2023 Petr Pisar <ppisar@redhat.com> - 0.31-1
- 0.31 bump
2022-12-05 14:24:50 +00:00
* Mon Dec 05 2022 Petr Pisar <ppisar@redhat.com> - 0.30-1
- 0.30 bump
2022-12-02 09:07:07 +00:00
* Fri Dec 02 2022 Petr Pisar <ppisar@redhat.com> - 0.29-1
- 0.29 bump
2022-11-30 11:41:57 +00:00
* Wed Nov 30 2022 Petr Pisar <ppisar@redhat.com> - 0.28-1
- 0.28 bump
2022-11-01 07:45:16 +00:00
* Tue Nov 01 2022 Petr Pisar <ppisar@redhat.com> - 0.27-1
- 0.27 bump
2022-10-25 09:15:42 +00:00
* Tue Oct 25 2022 Petr Pisar <ppisar@redhat.com> - 0.26-1
- 0.26 bump
2022-07-26 10:22:29 +00:00
* Tue Jul 26 2022 Petr Pisar <ppisar@redhat.com> - 0.25-1
- 0.25 bump
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-06-27 09:14:57 +00:00
* Mon Jun 27 2022 Petr Pisar <ppisar@redhat.com> - 0.24-1
- 0.24 bump
2022-06-14 08:41:59 +00:00
* Tue Jun 14 2022 Petr Pisar <ppisar@redhat.com> - 0.23-1
- 0.23 bump
2022-05-31 20:21:01 +00:00
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-2
- Perl 5.36 rebuild
2022-02-22 07:51:41 +00:00
* Tue Feb 22 2022 Petr Pisar <ppisar@redhat.com> - 0.22-1
- 0.22 bump
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2021-10-12 11:26:08 +00:00
* Tue Oct 12 2021 Petr Pisar <ppisar@redhat.com> - 0.21-1
- 0.21 bump (bug #2013044)
2021-10-05 07:38:23 +00:00
* Tue Oct 05 2021 Petr Pisar <ppisar@redhat.com> - 0.19-1
- 0.19 bump (bug #2010550)
2021-09-29 13:19:20 +00:00
* Wed Sep 29 2021 Petr Pisar <ppisar@redhat.com> - 0.18-1
- 0.18 bump
2021-09-24 07:50:41 +00:00
* Fri Sep 24 2021 Petr Pisar <ppisar@redhat.com> - 0.17-1
- 0.17 bump
- Fix a test failure on non-x86 platforms (bug #2007391)
2021-09-24 07:50:41 +00:00
2021-09-22 11:41:13 +00:00
* Wed Sep 22 2021 Petr Pisar <ppisar@redhat.com> - 0.16-1
- 0.16 bump
2021-09-07 06:52:28 +00:00
* Tue Sep 07 2021 Petr Pisar <ppisar@redhat.com> - 0.15-1
- 0.15 bump
2021-09-01 11:00:07 +00:00
* Wed Sep 01 2021 Petr Pisar <ppisar@redhat.com> - 0.14-1
- 0.14 bump
* Tue Aug 31 2021 Petr Pisar <ppisar@redhat.com> - 0.13-2
- Return ABI 1
2021-08-26 17:28:55 +00:00
* Thu Aug 26 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-1
- 0.13 bump
* Tue Aug 17 2021 Petr Pisar <ppisar@redhat.com> - 0.12-2
- Bump ABI because XSParseKeywordPieceType changed size (bug #1994077)
2021-08-17 05:48:42 +00:00
* Tue Aug 17 2021 Petr Pisar <ppisar@redhat.com> - 0.12-1
- 0.12 bump
* Mon Aug 09 2021 Petr Pisar <ppisar@redhat.com> - 0.11-2
- Fix perl_XS_Parse_Keyword_ABI macro
2021-08-03 14:54:21 +00:00
* Tue Aug 03 2021 Petr Pisar <ppisar@redhat.com> - 0.11-1
- 0.11 bump
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-07-14 05:50:24 +00:00
* Wed Jul 14 2021 Petr Pisar <ppisar@redhat.com> - 0.10-1
- 0.10 bump
2021-07-13 07:11:35 +00:00
* Tue Jul 13 2021 Petr Pisar <ppisar@redhat.com> - 0.09-1
- 0.09 bump
2021-06-18 11:28:13 +00:00
* Fri Jun 18 2021 Petr Pisar <ppisar@redhat.com> - 0.08-1
- 0.08 bump
2021-06-02 08:29:26 +00:00
* Wed Jun 02 2021 Petr Pisar <ppisar@redhat.com> - 0.06-1
- 0.06 bump
2021-06-02 14:40:01 +00:00
- Subpackage XS::Parse::Keyword::Builder
2021-06-02 08:29:26 +00:00
2021-06-01 06:58:47 +00:00
* Tue Jun 01 2021 Petr Pisar <ppisar@redhat.com> - 0.05-1
- 0.05 bump
2021-05-25 08:57:09 +00:00
* Tue May 25 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.04-2
- Perl 5.34 re-rebuild updated packages
2021-05-25 07:30:15 +00:00
* Tue May 25 2021 Petr Pisar <ppisar@redhat.com> - 0.04-1
- 0.04 bump
2021-05-21 22:14:06 +00:00
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.03-3
- Perl 5.34 rebuild
2021-05-04 11:43:38 +00:00
* Tue May 04 2021 Petr Pisar <ppisar@redhat.com> - 0.03-2
- Require XSLoader for the tests
2021-05-04 11:16:44 +00:00
* Fri Apr 30 2021 Petr Pisar <ppisar@redhat.com> 0.03-1
- Specfile autogenerated by cpanspec 1.78.