From 318b6d504cd332036cc056f3e82ca1a42de0a7e2 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Wed, 10 Jan 2024 02:55:25 +0300 Subject: [PATCH] import perl-PPIx-QuoteLike-0.019-1.el9 --- .gitignore | 1 + .perl-PPIx-QuoteLike.metadata | 1 + SOURCES/gating.yaml | 7 + SOURCES/perl-PPIx-QuoteLike.rpmlintrc | 2 + SPECS/perl-PPIx-QuoteLike.spec | 205 ++++++++++++++++++++++++++ 5 files changed, 216 insertions(+) create mode 100644 .gitignore create mode 100644 .perl-PPIx-QuoteLike.metadata create mode 100644 SOURCES/gating.yaml create mode 100644 SOURCES/perl-PPIx-QuoteLike.rpmlintrc create mode 100644 SPECS/perl-PPIx-QuoteLike.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9adb38b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/PPIx-QuoteLike-0.019.tar.gz diff --git a/.perl-PPIx-QuoteLike.metadata b/.perl-PPIx-QuoteLike.metadata new file mode 100644 index 0000000..57a1d09 --- /dev/null +++ b/.perl-PPIx-QuoteLike.metadata @@ -0,0 +1 @@ +e93eb3a5a14098cc7cbb23e96c320f01251a30a0 SOURCES/PPIx-QuoteLike-0.019.tar.gz diff --git a/SOURCES/gating.yaml b/SOURCES/gating.yaml new file mode 100644 index 0000000..282e16b --- /dev/null +++ b/SOURCES/gating.yaml @@ -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} diff --git a/SOURCES/perl-PPIx-QuoteLike.rpmlintrc b/SOURCES/perl-PPIx-QuoteLike.rpmlintrc new file mode 100644 index 0000000..59d4531 --- /dev/null +++ b/SOURCES/perl-PPIx-QuoteLike.rpmlintrc @@ -0,0 +1,2 @@ +from Config import * +addFilter("-tests\.noarch: W: no-documentation") diff --git a/SPECS/perl-PPIx-QuoteLike.spec b/SPECS/perl-PPIx-QuoteLike.spec new file mode 100644 index 0000000..f1c3558 --- /dev/null +++ b/SPECS/perl-PPIx-QuoteLike.spec @@ -0,0 +1,205 @@ +# Enable PPIx::Regexp optional feature +%bcond_without perl_PPIx_QuoteLike_enables_PPIx_Regexp + +Name: perl-PPIx-QuoteLike +Version: 0.019 +Release: 1%{?dist} +Summary: Parse Perl string literals and string-literal-like things +License: GPL+ or Artistic +URL: https://metacpan.org/release/PPIx-QuoteLike +Source0: https://cpan.metacpan.org/authors/id/W/WY/WYANT/PPIx-QuoteLike-%{version}.tar.gz +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +# Build.PL and inc/My/Module/Build.pm not used +BuildRequires: perl(:VERSION) >= 5.6 +BuildRequires: perl(Carp) +BuildRequires: perl(Config) +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(lib) +BuildRequires: perl(strict) +# Test::Without::Module not helpful +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(Encode) +BuildRequires: perl(List::Util) +BuildRequires: perl(PPI::Document) >= 1.117 +BuildRequires: perl(PPI::Dumper) >= 1.117 +BuildRequires: perl(re) +BuildRequires: perl(Readonly) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Text::Tabs) +%if %{with perl_PPIx_QuoteLike_enables_PPIx_Regexp} +# Optional run-time: +# Author states there is a build-cycle with PPIx::Regexp, but I cannot see +# any. +BuildRequires: perl(PPIx::Regexp) +%endif +# Tests: +BuildRequires: perl(charnames) +BuildRequires: perl(open) +BuildRequires: perl(Test::More) >= 0.88 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(PPI::Document) >= 1.117 +Requires: perl(PPI::Dumper) >= 1.117 +%if %{with perl_PPIx_QuoteLike_enables_PPIx_Regexp} +Recommends: perl(PPIx::Regexp) +%endif + +# Remove under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((PPI::Document|PPI::Dumper)\\)$ + +%description +This Perl class parses Perl string literals and things that are reasonably +like string literals. Its real reason for being is to find interpolated +variables for Perl::Critic policies and similar code. + +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness +Requires: perl(open) +Requires: perl(PPI::Document) >= 1.117 + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + +%prep +%setup -q -n PPIx-QuoteLike-%{version} +# Fix shell bang and permissions +for F in eg/{pqldump,variables}; do + perl -MConfig -p -i -e 's{\A#!/usr/bin/env perl\b}{$Config{startperl}}' \ + "$F" + chmod -x "$F" +done +# Help generators to recognize Perl scripts +for F in t/*.t; do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" + chmod +x "$F" +done + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} -c %{buildroot} + +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +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}') +make test + +%files +%license LICENSES/* +%doc Changes CONTRIBUTING eg README +%{perl_vendorlib}/PPIx/ +%{_mandir}/man3/PPIx::QuoteLike*.3* + +%files tests +%{_libexecdir}/%{name} + +%changelog +* Wed Jan 10 2024 MSVSphere Packaging Team - 0.019-1 +- Rebuilt for MSVSphere 9.3 + +* Tue Nov 16 2021 Paul Howarth - 0.019-1 +- Update to 0.019 + - Add CONTRIBUTING file + - Try to quell weird Win32 test failures that seem to occur only in tests + where I am using 'use open' to put the standard handles into UTF-8 mode; + the fix (hopefully) is to do this to the Test::Harness handles at run time + instead of to the standard handles at compile time + +* Fri Oct 22 2021 Paul Howarth - 0.018-1 +- Update to 0.018 + - Argument postderef is now fatal + - Correct generation of 'provides' metadata + +* Thu Jul 22 2021 Fedora Release Engineering - 0.017-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 0.017-2 +- Perl 5.34 rebuild + +* Fri Apr 16 2021 Paul Howarth - 0.017-1 +- Update to 0.017 + - All uses of the postderef argument to new() now warn +- Fix permissions verbosely +- Make %%files list more explicit + +* Fri Mar 26 2021 Petr Pisar - 0.016-1 +- 0.016 bump +- Package tests + +* Fri Feb 05 2021 Petr Pisar - 0.015-1 +- 0.015 bump + +* Wed Jan 27 2021 Fedora Release Engineering - 0.014-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Jan 14 2021 Petr Pisar - 0.014-1 +- 0.014 bump + +* Fri Oct 09 2020 Petr Pisar - 0.013-1 +- 0.013 bump + +* Tue Jul 28 2020 Petr Pisar - 0.012-1 +- 0.012 bump + +* Tue Jun 23 2020 Jitka Plesnikova - 0.011-2 +- Perl 5.32 rebuild + +* Tue Mar 31 2020 Petr Pisar - 0.011-1 +- 0.011 bump + +* Mon Mar 09 2020 Petr Pisar - 0.010-1 +- 0.010 bump + +* Fri Feb 28 2020 Petr Pisar - 0.009-1 +- 0.009 bump + +* Thu Jan 30 2020 Fedora Release Engineering - 0.008-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Aug 19 2019 Petr Pisar - 0.008-1 +- 0.008 bump + +* Fri Jul 26 2019 Fedora Release Engineering - 0.007-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Jun 05 2019 Petr Pisar - 0.007-1 +- 0.007 bump + +* Fri May 31 2019 Jitka Plesnikova - 0.006-4 +- Perl 5.30 rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 0.006-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.006-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jul 10 2018 Petr Pisar - 0.006-1 +- 0.006 bump + +* Fri Jun 29 2018 Jitka Plesnikova - 0.005-2 +- Perl 5.28 rebuild + +* Mon Jun 04 2018 Petr Pisar 0.005-1 +- Specfile autogenerated by cpanspec 1.78.