f2153e
Name:           perl-Text-ParseWords
f2153e
Version:        3.29
f2153e
Release:        3%{?dist}
f2153e
Summary:        Parse text into an array of tokens or array of arrays
f2153e
License:        GPL+ or Artistic
f2153e
Group:          Development/Libraries
f2153e
URL:            http://search.cpan.org/dist/Text-ParseWords/
f2153e
Source0:        http://www.cpan.org/authors/id/C/CH/CHORNY/Text-ParseWords-%{version}.tar.gz
f2153e
Source1:        license.email
f2153e
BuildArch:      noarch
f2153e
BuildRequires:  perl
f2153e
BuildRequires:  perl(ExtUtils::MakeMaker)
f2153e
# Run-time:
f2153e
BuildRequires:  perl(Carp)
f2153e
BuildRequires:  perl(Exporter)
f2153e
BuildRequires:  perl(strict)
f2153e
# Tests:
f2153e
# Config not used
f2153e
BuildRequires:  perl(Scalar::Util)
f2153e
BuildRequires:  perl(Test::More)
f2153e
BuildRequires:  perl(warnings)
f2153e
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
f2153e
Requires:       perl(Carp)
f2153e
f2153e
%description
f2153e
The nested_quotewords() and quotewords() functions accept a delimiter (which
f2153e
can be a regular expression) and a list of lines and then breaks those lines
f2153e
up into a list of words ignoring delimiters that appear inside quotes.
f2153e
quotewords() returns all of the tokens in a single long list, while
f2153e
nested_quotewords() returns a list of token lists corresponding to the
f2153e
elements of @lines. parse_line() does tokenizing on a single string. The
f2153e
quotewords() functions simply call &parse_line(), so if you're only splitting
f2153e
one line you can call parse_line() directly and save a function call.
f2153e
f2153e
%prep
f2153e
%setup -q -n Text-ParseWords-%{version}
f2153e
for F in CHANGES README; do
f2153e
    tr -d "\r" < "$F" > "${F}.unix"
f2153e
    touch -r "$F" "${F}.unix"
f2153e
    mv "${F}.unix" "$F"
f2153e
done
f2153e
cp %{SOURCE1} ./
f2153e
f2153e
%build
f2153e
perl Makefile.PL INSTALLDIRS=vendor
f2153e
make %{?_smp_mflags}
f2153e
f2153e
%install
f2153e
make pure_install DESTDIR=$RPM_BUILD_ROOT
f2153e
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
f2153e
%{_fixperms} $RPM_BUILD_ROOT/*
f2153e
f2153e
%check
f2153e
make test
f2153e
f2153e
%files
f2153e
%doc CHANGES README license.email
f2153e
%{perl_vendorlib}/*
f2153e
%{_mandir}/man3/*
f2153e
f2153e
%changelog
f2153e
* Tue Nov 19 2013 Marcela Mašláňová <mmaslano@redhat.com> 3.29-3
f2153e
- According to guidelines must be email statement added as new source.
f2153e
- Related: rhbz#1030808
f2153e
f2153e
* Tue Nov 19 2013 Marcela Mašláňová <mmaslano@redhat.com> 3.29-2
f2153e
- Add licence statement from the upstream ticket
f2153e
- Resolves: rhbz#1030808
f2153e
f2153e
* Mon Mar 18 2013 Petr Pisar <ppisar@redhat.com> 3.29-1
f2153e
- Specfile autogenerated by cpanspec 1.78.