5fd0441
Name:           perl-Text-ParseWords
3aaa256
Version:        3.31
e28ed16
Release:        489%{?dist}
5fd0441
Summary:        Parse text into an array of tokens or array of arrays
5fd0441
License:        GPL+ or Artistic
f318378
URL:            https://metacpan.org/release/Text-ParseWords
3aaa256
Source0:        https://cpan.metacpan.org/authors/id/N/NE/NEILB/Text-ParseWords-%{version}.tar.gz
5fd0441
BuildArch:      noarch
3aaa256
BuildRequires:  coreutils
3aaa256
BuildRequires:  make
e3a8eca
BuildRequires:  perl-generators
3aaa256
BuildRequires:  perl-interpreter
ab1058e
BuildRequires:  perl(Config)
3aaa256
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
5fd0441
# Run-time:
5fd0441
BuildRequires:  perl(Carp)
5fd0441
BuildRequires:  perl(Exporter)
5fd0441
BuildRequires:  perl(strict)
3aaa256
BuildRequires:  perl(warnings)
5fd0441
# Tests:
5fd0441
BuildRequires:  perl(Scalar::Util)
5fd0441
BuildRequires:  perl(Test::More)
5fd0441
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
5fd0441
Requires:       perl(Carp)
5fd0441
5fd0441
%description
5fd0441
The nested_quotewords() and quotewords() functions accept a delimiter (which
5fd0441
can be a regular expression) and a list of lines and then breaks those lines
5fd0441
up into a list of words ignoring delimiters that appear inside quotes.
5fd0441
quotewords() returns all of the tokens in a single long list, while
5fd0441
nested_quotewords() returns a list of token lists corresponding to the
5fd0441
elements of @lines. parse_line() does tokenizing on a single string. The
3aaa256
quotewords() functions simply call parse_line(), so if you're only splitting
5fd0441
one line you can call parse_line() directly and save a function call.
5fd0441
ab1058e
%package tests
ab1058e
Summary:        Tests for %{name}
ab1058e
Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
ab1058e
Requires:       perl-Test-Harness
ab1058e
ab1058e
%description tests
ab1058e
Tests from %{name}. Execute them
ab1058e
with "%{_libexecdir}/%{name}/test".
ab1058e
5fd0441
%prep
5fd0441
%setup -q -n Text-ParseWords-%{version}
5fd0441
ab1058e
# Help generators to recognize Perl scripts
ab1058e
for F in t/*.t; do
ab1058e
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
ab1058e
    chmod +x "$F"
ab1058e
done
ab1058e
5fd0441
%build
3aaa256
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
3aaa256
%{make_build}
5fd0441
5fd0441
%install
3aaa256
%{make_install}
ab1058e
%{_fixperms} %{buildroot}/*
ab1058e
ab1058e
# Install tests
ab1058e
mkdir -p %{buildroot}%{_libexecdir}/%{name}
ab1058e
cp -a t %{buildroot}%{_libexecdir}/%{name}
ab1058e
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
ab1058e
#!/bin/sh
ab1058e
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
ab1058e
EOF
ab1058e
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
5fd0441
5fd0441
%check
ab1058e
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
5fd0441
make test
5fd0441
5fd0441
%files
e6e3247
%doc CHANGES README
5fd0441
%{perl_vendorlib}/*
5fd0441
%{_mandir}/man3/*
5fd0441
ab1058e
%files tests
ab1058e
%{_libexecdir}/%{name}
ab1058e
5fd0441
%changelog
e28ed16
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.31-489
e28ed16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
e28ed16
8b555df
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 3.31-488
8b555df
- Increase release to favour standalone package
8b555df
3aaa256
* Wed Apr 13 2022 Jitka Plesnikova <jplesnik@redhat.com> - 3.31-1
3aaa256
- 3.31 bump
ab1058e
- Package tests
3aaa256
2c4f15d
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-479
2c4f15d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2c4f15d
e6bdbdf
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-478
e6bdbdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
e6bdbdf
e9f2459
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 3.30-477
e9f2459
- Increase release to favour standalone package
e9f2459
b140648
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-458
b140648
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b140648
f5f3a39
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-457
f5f3a39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f5f3a39
2fb48e9
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.30-456
2fb48e9
- Increase release to favour standalone package
2fb48e9
a152282
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-440
a152282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a152282
43424b5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-439
43424b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
43424b5
4e3336b
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.30-438
4e3336b
- Increase release to favour standalone package
4e3336b
af2de74
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-418
af2de74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
af2de74
22f8c85
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-417
22f8c85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
22f8c85
3c989d7
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 3.30-416
3c989d7
- Increase release to favour standalone package
3c989d7
809c9bd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-395
809c9bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
809c9bd
f732971
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-394
f732971
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f732971
4d35a5f
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.30-393
4d35a5f
- Perl 5.26 rebuild
4d35a5f
1c120cf
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-366
1c120cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1c120cf
3fab9db
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.30-365
3fab9db
- Increase release to favour standalone package
3fab9db
09cc0db
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-347
09cc0db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
09cc0db
968c751
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.30-346
968c751
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
968c751
cc774fc
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.30-345
cc774fc
- Increase release to favour standalone package
cc774fc
a55bb98
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.30-2
a55bb98
- Perl 5.22 rebuild
a55bb98
e6e3247
* Fri Mar 13 2015 Petr Pisar <ppisar@redhat.com> - 3.30-1
e6e3247
- 3.30 bump
e6e3247
cd0c3c0
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.29-310
cd0c3c0
- Increase release to favour standalone package
cd0c3c0
6af7686
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.29-7
6af7686
- Perl 5.20 rebuild
6af7686
8947a89
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.29-6
8947a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8947a89
3777aa3
* Tue Nov 19 2013 Marcela Mašláňová <mmaslano@redhat.com> 3.29-5
3777aa3
- According to guidelines must be email statement added as new source.
3777aa3
f898b33
* Tue Nov 19 2013 Marcela Mašláňová <mmaslano@redhat.com> 3.29-4
f898b33
- Add licence statement from the upstream ticket
f898b33
- Resolves: rhbz#1030808
f898b33
3ec3460
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.29-3
3ec3460
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3ec3460
cbdbbf2
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 3.29-2
cbdbbf2
- Link minimal build-root packages against libperl.so explicitly
cbdbbf2
5fd0441
* Mon Mar 18 2013 Petr Pisar <ppisar@redhat.com> 3.29-1
5fd0441
- Specfile autogenerated by cpanspec 1.78.