|
|
5fd0441 |
Name: perl-Text-ParseWords
|
|
|
6cb587a |
Version: 3.30
|
|
|
6cb587a |
Release: 1%{?dist}
|
|
|
5fd0441 |
Summary: Parse text into an array of tokens or array of arrays
|
|
|
5fd0441 |
License: GPL+ or Artistic
|
|
|
5fd0441 |
Group: Development/Libraries
|
|
|
5fd0441 |
URL: http://search.cpan.org/dist/Text-ParseWords/
|
|
|
5fd0441 |
Source0: http://www.cpan.org/authors/id/C/CH/CHORNY/Text-ParseWords-%{version}.tar.gz
|
|
|
5fd0441 |
BuildArch: noarch
|
|
|
5fd0441 |
BuildRequires: perl
|
|
|
5fd0441 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
5fd0441 |
# Run-time:
|
|
|
5fd0441 |
BuildRequires: perl(Carp)
|
|
|
5fd0441 |
BuildRequires: perl(Exporter)
|
|
|
5fd0441 |
BuildRequires: perl(strict)
|
|
|
5fd0441 |
# Tests:
|
|
|
5fd0441 |
# Config not used
|
|
|
5fd0441 |
BuildRequires: perl(Scalar::Util)
|
|
|
5fd0441 |
BuildRequires: perl(Test::More)
|
|
|
5fd0441 |
BuildRequires: perl(warnings)
|
|
|
5fd0441 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
5fd0441 |
Requires: perl(Carp)
|
|
|
5fd0441 |
|
|
|
5fd0441 |
%description
|
|
|
5fd0441 |
The nested_quotewords() and quotewords() functions accept a delimiter (which
|
|
|
5fd0441 |
can be a regular expression) and a list of lines and then breaks those lines
|
|
|
5fd0441 |
up into a list of words ignoring delimiters that appear inside quotes.
|
|
|
5fd0441 |
quotewords() returns all of the tokens in a single long list, while
|
|
|
5fd0441 |
nested_quotewords() returns a list of token lists corresponding to the
|
|
|
5fd0441 |
elements of @lines. parse_line() does tokenizing on a single string. The
|
|
|
5fd0441 |
quotewords() functions simply call &parse_line(), so if you're only splitting
|
|
|
5fd0441 |
one line you can call parse_line() directly and save a function call.
|
|
|
5fd0441 |
|
|
|
5fd0441 |
%prep
|
|
|
5fd0441 |
%setup -q -n Text-ParseWords-%{version}
|
|
|
5fd0441 |
for F in CHANGES README; do
|
|
|
5fd0441 |
tr -d "\r" < "$F" > "${F}.unix"
|
|
|
5fd0441 |
touch -r "$F" "${F}.unix"
|
|
|
5fd0441 |
mv "${F}.unix" "$F"
|
|
|
5fd0441 |
done
|
|
|
5fd0441 |
|
|
|
5fd0441 |
%build
|
|
|
5fd0441 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
5fd0441 |
make %{?_smp_mflags}
|
|
|
5fd0441 |
|
|
|
5fd0441 |
%install
|
|
|
5fd0441 |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
5fd0441 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
5fd0441 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
5fd0441 |
|
|
|
5fd0441 |
%check
|
|
|
5fd0441 |
make test
|
|
|
5fd0441 |
|
|
|
5fd0441 |
%files
|
|
|
5fd0441 |
%doc CHANGES README
|
|
|
5fd0441 |
%{perl_vendorlib}/*
|
|
|
5fd0441 |
%{_mandir}/man3/*
|
|
|
5fd0441 |
|
|
|
5fd0441 |
%changelog
|
|
|
6cb587a |
* Fri Mar 13 2015 Petr Pisar <ppisar@redhat.com> - 3.30-1
|
|
|
6cb587a |
- 3.30 bump
|
|
|
6cb587a |
|
|
|
3ec3460 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.29-3
|
|
|
3ec3460 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
3ec3460 |
|
|
|
cbdbbf2 |
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 3.29-2
|
|
|
cbdbbf2 |
- Link minimal build-root packages against libperl.so explicitly
|
|
|
cbdbbf2 |
|
|
|
5fd0441 |
* Mon Mar 18 2013 Petr Pisar <ppisar@redhat.com> 3.29-1
|
|
|
5fd0441 |
- Specfile autogenerated by cpanspec 1.78.
|