diff --git a/.gitignore b/.gitignore index e69de29..229f1ae 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/String-Truncate-1.100602.tar.gz diff --git a/perl-String-Truncate.spec b/perl-String-Truncate.spec new file mode 100644 index 0000000..1769dc0 --- /dev/null +++ b/perl-String-Truncate.spec @@ -0,0 +1,49 @@ +Name: perl-String-Truncate +Version: 1.100602 +Release: 1%{?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 +* Thu Nov 27 2014 Petr Ĺ abata 1.100602-1 +- Initial packaging diff --git a/sources b/sources index e69de29..6acce49 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +77cfc678607a7d84008b117f3991bbfa String-Truncate-1.100602.tar.gz