b7bd4a
Name:           perl-Text-ParseWords
b7bd4a
Version:        3.30
90bee3
Release:        396%{?dist}
b7bd4a
Summary:        Parse text into an array of tokens or array of arrays
b7bd4a
License:        GPL+ or Artistic
b7bd4a
Group:          Development/Libraries
b7bd4a
URL:            http://search.cpan.org/dist/Text-ParseWords/
b7bd4a
Source0:        http://www.cpan.org/authors/id/C/CH/CHORNY/Text-ParseWords-%{version}.tar.gz
b7bd4a
BuildArch:      noarch
b7bd4a
BuildRequires:  perl-interpreter
b7bd4a
BuildRequires:  perl-generators
b7bd4a
BuildRequires:  perl(ExtUtils::MakeMaker)
b7bd4a
# Run-time:
b7bd4a
BuildRequires:  perl(Carp)
b7bd4a
BuildRequires:  perl(Exporter)
b7bd4a
BuildRequires:  perl(strict)
b7bd4a
# Tests:
b7bd4a
# Config not used
b7bd4a
BuildRequires:  perl(Scalar::Util)
b7bd4a
BuildRequires:  perl(Test::More)
b7bd4a
BuildRequires:  perl(warnings)
b7bd4a
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
b7bd4a
Requires:       perl(Carp)
b7bd4a
b7bd4a
%description
b7bd4a
The nested_quotewords() and quotewords() functions accept a delimiter (which
b7bd4a
can be a regular expression) and a list of lines and then breaks those lines
b7bd4a
up into a list of words ignoring delimiters that appear inside quotes.
b7bd4a
quotewords() returns all of the tokens in a single long list, while
b7bd4a
nested_quotewords() returns a list of token lists corresponding to the
b7bd4a
elements of @lines. parse_line() does tokenizing on a single string. The
b7bd4a
quotewords() functions simply call &parse_line(), so if you're only splitting
b7bd4a
one line you can call parse_line() directly and save a function call.
b7bd4a
b7bd4a
%prep
b7bd4a
%setup -q -n Text-ParseWords-%{version}
b7bd4a
for F in CHANGES README; do
b7bd4a
    tr -d "\r" < "$F" > "${F}.unix"
b7bd4a
    touch -r "$F" "${F}.unix"
b7bd4a
    mv "${F}.unix" "$F"
b7bd4a
done
b7bd4a
b7bd4a
%build
b7bd4a
perl Makefile.PL INSTALLDIRS=vendor
b7bd4a
make %{?_smp_mflags}
b7bd4a
b7bd4a
%install
b7bd4a
make pure_install DESTDIR=$RPM_BUILD_ROOT
b7bd4a
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
b7bd4a
%{_fixperms} $RPM_BUILD_ROOT/*
b7bd4a
b7bd4a
%check
b7bd4a
make test
b7bd4a
b7bd4a
%files
b7bd4a
%doc CHANGES README
b7bd4a
%{perl_vendorlib}/*
b7bd4a
%{_mandir}/man3/*
b7bd4a
b7bd4a
%changelog
90bee3
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.30-396
90bee3
- Rebuild with enable hardening (bug #1636329)
90bee3
b7bd4a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-395
b7bd4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b7bd4a
b7bd4a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-394
b7bd4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b7bd4a
b7bd4a
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.30-393
b7bd4a
- Perl 5.26 rebuild
b7bd4a
b7bd4a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-366
b7bd4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b7bd4a
b7bd4a
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.30-365
b7bd4a
- Increase release to favour standalone package
b7bd4a
b7bd4a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.30-347
b7bd4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b7bd4a
b7bd4a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.30-346
b7bd4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b7bd4a
b7bd4a
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.30-345
b7bd4a
- Increase release to favour standalone package
b7bd4a
b7bd4a
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.30-2
b7bd4a
- Perl 5.22 rebuild
b7bd4a
b7bd4a
* Fri Mar 13 2015 Petr Pisar <ppisar@redhat.com> - 3.30-1
b7bd4a
- 3.30 bump
b7bd4a
b7bd4a
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.29-310
b7bd4a
- Increase release to favour standalone package
b7bd4a
b7bd4a
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.29-7
b7bd4a
- Perl 5.20 rebuild
b7bd4a
b7bd4a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.29-6
b7bd4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b7bd4a
b7bd4a
* Tue Nov 19 2013 Marcela Mašláňová <mmaslano@redhat.com> 3.29-5
b7bd4a
- According to guidelines must be email statement added as new source.
b7bd4a
b7bd4a
* Tue Nov 19 2013 Marcela Mašláňová <mmaslano@redhat.com> 3.29-4
b7bd4a
- Add licence statement from the upstream ticket
b7bd4a
- Resolves: rhbz#1030808
b7bd4a
b7bd4a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.29-3
b7bd4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b7bd4a
b7bd4a
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 3.29-2
b7bd4a
- Link minimal build-root packages against libperl.so explicitly
b7bd4a
b7bd4a
* Mon Mar 18 2013 Petr Pisar <ppisar@redhat.com> 3.29-1
b7bd4a
- Specfile autogenerated by cpanspec 1.78.