diff --git a/.gitignore b/.gitignore index a8e86da..568a3c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/String-ShellQuote-1.04.tar.gz +String-ShellQuote-1.04.tar.gz diff --git a/.perl-String-ShellQuote.metadata b/.perl-String-ShellQuote.metadata deleted file mode 100644 index 400570d..0000000 --- a/.perl-String-ShellQuote.metadata +++ /dev/null @@ -1 +0,0 @@ -e60f348200b16d85ccc50780d4d6546485b15bc5 SOURCES/String-ShellQuote-1.04.tar.gz diff --git a/SPECS/perl-String-ShellQuote.spec b/perl-String-ShellQuote.spec similarity index 58% rename from SPECS/perl-String-ShellQuote.spec rename to perl-String-ShellQuote.spec index 9391619..bf14dbd 100644 --- a/SPECS/perl-String-ShellQuote.spec +++ b/perl-String-ShellQuote.spec @@ -1,14 +1,17 @@ Name: perl-String-ShellQuote Version: 1.04 -Release: 24%{?dist} +Release: 45%{?dist} Summary: Perl module for quoting strings for passing through the shell -License: (GPL+ or Artistic) and GPLv2+ -URL: http://search.cpan.org/dist/String-ShellQuote/ -Source0: http://www.cpan.org/authors/id/R/RO/ROSCH/String-ShellQuote-%{version}.tar.gz +License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-2.0-or-later +URL: https://metacpan.org/release/String-ShellQuote +Source0: https://cpan.metacpan.org/authors/id/R/RO/ROSCH/String-ShellQuote-%{version}.tar.gz BuildArch: noarch # Build -BuildRequires: perl-interpreter +BuildRequires: coreutils +BuildRequires: make BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Runtime BuildRequires: perl(Carp) @@ -17,7 +20,6 @@ BuildRequires: perl(Exporter) BuildRequires: perl(strict) BuildRequires: perl(vars) # Tests only -Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) Requires: perl(Carp) Requires: perl(Getopt::Long) @@ -26,17 +28,40 @@ This package contains a Perl module and a command line utility which are useful for quoting strings which are going to pass through the shell or a shell-like object. +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + %prep %setup -q -n String-ShellQuote-%{version} +# Help generators to recognize Perl scripts +perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' test.t +chmod +x test.t + %build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=%{buildroot} +%{make_install} %{_fixperms} %{buildroot}/* +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name}/t +cp -a test.t %{buildroot}%{_libexecdir}/%{name}/t +perl -i -pe 's{blib/script}{%{_bindir}}' %{buildroot}%{_libexecdir}/%{name}/t/test.t +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +cd %{_libexecdir}/%{name} && exec prove -I . -r -j "$(getconf _NPROCESSORS_ONLN)" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test + %check make test @@ -44,12 +69,79 @@ make test %doc Changes README %{_bindir}/shell-quote %{perl_vendorlib}/String -%{_mandir}/man1/* -%{_mandir}/man3/* +%{_mandir}/man1/shell-quote* +%{_mandir}/man3/String::ShellQuote* + +%files tests +%{_libexecdir}/%{name} %changelog -* Fri Mar 29 2019 Jitka Plesnikova - 1.04-24 -- Rebuild with enable hardening (bug #1636329) +* Tue Oct 29 2024 Troy Dawson - 1.04-45 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Mon Jun 24 2024 Troy Dawson - 1.04-44 +- Bump release for June 2024 mass rebuild + +* Thu Feb 08 2024 Jitka Plesnikova - 1.04-43 +- Package tests + +* Thu Jan 25 2024 Fedora Release Engineering - 1.04-42 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.04-41 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.04-40 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue May 09 2023 Michal Josef Špaček - 1.04-39 +- Update license to SPDX format + +* Fri Jan 20 2023 Fedora Release Engineering - 1.04-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.04-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon May 30 2022 Jitka Plesnikova - 1.04-36 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 1.04-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1.04-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 1.04-33 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.04-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.04-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 2020 Jitka Plesnikova - 1.04-30 +- Perl 5.32 rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 1.04-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 1.04-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu May 30 2019 Jitka Plesnikova - 1.04-27 +- Perl 5.30 rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.04-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.04-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jun 27 2018 Jitka Plesnikova - 1.04-24 +- Perl 5.28 rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.04-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources new file mode 100644 index 0000000..263d198 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (String-ShellQuote-1.04.tar.gz) = f5b472985fb9c15d5c82c03b5c6c90a3a545ada854b90a96cfb7b0f57b8a817707ed91ca0f20344a2b8d200fe365ea737a9b39b64d526310d41ac2466552236d