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