Blob Blame History Raw
Name:           perl-String-Truncate
Version:        1.100602
Release:        2%{?dist}
Summary:        Simply truncate long strings
License:        GPL+ or Artistic
URL:            http://search.cpan.org/dist/String-Truncate/
Source0:        http://www.cpan.org/authors/id/R/RJ/RJBS/String-Truncate-%{version}.tar.gz
BuildArch:      noarch
# Build
BuildRequires:  perl
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Runtime
BuildRequires:  perl(Carp)
BuildRequires:  perl(Sub::Exporter) >= 0.953
BuildRequires:  perl(Sub::Exporter::Util)
BuildRequires:  perl(Sub::Install) >= 0.03
# Tests only
BuildRequires:  perl(Test::More) >= 0.88
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))

%description
This module handles the simple but common problem of long strings and
finite terminal width.

%prep
%setup -q -n String-Truncate-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.100602-2
- Perl 5.22 rebuild

* Thu Nov 27 2014 Petr Ĺ abata <contyk@redhat.com> 1.100602-1
- Initial packaging