%define upstream_name Text-Truncate %define upstream_version 1.04 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Perl module with simple string truncating routine License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Carp) BuildRequires: perl(Test::More) BuildRequires: perl(Module::Build::Compat) BuildArch: noarch %description This is a simple, no-brainer subroutine to truncate a string and add an optional cutoff marker (defaults to ``...''). (Yes, this is a really brain-dead sort of thing to make a module out of, but then again, I use it so often that it might as well be in a module.) The synopsis gives examples of how to use it. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install rm -rf %buildroot %makeinstall_std %clean rm -rf %buildroot %files %defattr(-,root,root) %doc README Changes META.yml %{_mandir}/man3/* %perl_vendorlib/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 1.40.0-2.mga3 + Revision: 374245 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Jan 18 2011 jquelin <jquelin> 1.40.0-1.mga1 + Revision: 22973 - cleaning spec file - imported package perl-Text-Truncate