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