%{?scl:%scl_package perl-Text-Tabs+Wrap}
Name: %{?scl_prefix}perl-Text-Tabs+Wrap
Version: 2013.0523
Release: 366%{?dist}
Summary: Expand tabs and do simple line wrapping
License: TTWL
Group: Development/Libraries
URL: http://search.cpan.org/dist/Text-Tabs%2BWrap/
Source0: http://www.cpan.org/authors/id/M/MU/MUIR/modules/Text-Tabs+Wrap-%{version}.tar.gz
# Work around CPAN RT#103116
Patch0: Text-Tabs+Wrap-2013.0523-Build-from-lib.patch
BuildArch: noarch
BuildRequires: %{?scl_prefix}perl
BuildRequires: %{?scl_prefix}perl-generators
BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires: %{?scl_prefix}perl(Exporter)
BuildRequires: %{?scl_prefix}perl(re)
BuildRequires: %{?scl_prefix}perl(strict)
BuildRequires: %{?scl_prefix}perl(vars)
BuildRequires: %{?scl_prefix}perl(warnings::register)
# Tests:
BuildRequires: %{?scl_prefix}perl(bytes)
BuildRequires: %{?scl_prefix}perl(Test::More)
BuildRequires: %{?scl_prefix}perl(warnings)
# Optional tests:
# Benchmark not used
Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
# Sub-packaged from perl.spec, it would conflicted on manual pages
Conflicts: %{?scl_prefix}perl < 4:5.20.2-325
%description
Text::Tabs performs the same job that the UNIX expand(1) and unexpand(1)
commands do: adding or removing tabs from a document.
Text::Wrap::wrap() will reformat lines into paragraphs. All it does is break
up long lines, it will not join short lines together.
%prep
%setup -q -n Text-Tabs+Wrap-%{version}
%patch0 -p1
%build
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'}
%install
%{?scl:scl enable %{scl} '}make pure_install DESTDIR=%{buildroot}%{?scl:'}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}/*
%check
%{?scl:scl enable %{scl} '}make test%{?scl:'}
%files
%doc CHANGELOG README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Mon Jul 11 2016 Petr Pisar <ppisar@redhat.com> - 2013.0523-366
- SCL
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2013.0523-365
- Increase release to favour standalone package
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2013.0523-347
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2013.0523-346
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2013.0523-345
- Increase release to favour standalone package
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2013.0523-327
- Perl 5.22 rebuild
* Wed Mar 25 2015 Petr Pisar <ppisar@redhat.com> - 2013.0523-326
- Increase release number to compete with perl's sub-package
- Fix manual pages names
* Wed Feb 13 2013 Petr Pisar <ppisar@redhat.com> - 2013.0523-1
- Version 2013.0523 packaged