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