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