|
|
@ -1,17 +1,15 @@
|
|
|
|
Name: perl-String-ShellQuote
|
|
|
|
Name: perl-String-ShellQuote
|
|
|
|
Version: 1.04
|
|
|
|
Version: 1.04
|
|
|
|
Release: 45%{?dist}
|
|
|
|
Release: 34%{?dist}
|
|
|
|
Summary: Perl module for quoting strings for passing through the shell
|
|
|
|
Summary: Perl module for quoting strings for passing through the shell
|
|
|
|
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-2.0-or-later
|
|
|
|
License: (GPL+ or Artistic) and GPLv2+
|
|
|
|
URL: https://metacpan.org/release/String-ShellQuote
|
|
|
|
URL: https://metacpan.org/release/String-ShellQuote
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RO/ROSCH/String-ShellQuote-%{version}.tar.gz
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RO/ROSCH/String-ShellQuote-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
# Build
|
|
|
|
# Build
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
# Runtime
|
|
|
|
# Runtime
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
@ -20,6 +18,7 @@ BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
# Tests only
|
|
|
|
# Tests only
|
|
|
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|
|
|
Requires: perl(Carp)
|
|
|
|
Requires: perl(Carp)
|
|
|
|
Requires: perl(Getopt::Long)
|
|
|
|
Requires: perl(Getopt::Long)
|
|
|
|
|
|
|
|
|
|
|
@ -28,40 +27,17 @@ This package contains a Perl module and a command line utility which
|
|
|
|
are useful for quoting strings which are going to pass through the
|
|
|
|
are useful for quoting strings which are going to pass through the
|
|
|
|
shell or a shell-like object.
|
|
|
|
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
|
|
|
|
%prep
|
|
|
|
%setup -q -n String-ShellQuote-%{version}
|
|
|
|
%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
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
|
%{make_build}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%{make_install}
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
%{_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
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
@ -69,52 +45,16 @@ make test
|
|
|
|
%doc Changes README
|
|
|
|
%doc Changes README
|
|
|
|
%{_bindir}/shell-quote
|
|
|
|
%{_bindir}/shell-quote
|
|
|
|
%{perl_vendorlib}/String
|
|
|
|
%{perl_vendorlib}/String
|
|
|
|
%{_mandir}/man1/shell-quote*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man3/String::ShellQuote*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.04-45
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.04-34
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.04-44
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1.04-43
|
|
|
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-42
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-41
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-40
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 09 2023 Michal Josef Špaček <mspacek@redhat.com> - 1.04-39
|
|
|
|
|
|
|
|
- Update license to SPDX format
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-38
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-37
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.04-36
|
|
|
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-35
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-34
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.04-33
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.04-33
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-32
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-32
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|