%define module String-Format %define name perl-%{module} %define version 1.14 %define release %mkrel 5 Name: %{name} Version: %{version} Release: %{release} Summary: Sprintf-like string formatting capabilities with arbitrary format definitions License: GPL or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{module} Source: http://www.cpan.org/modules/by-module/String/%{module}-%{version}.tar.bz2 %if %{mdkversion} < 1010 Buildrequires: perl-devel %endif BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description String::Format lets you define arbitrary printf-like format sequences to be expanded. This module would be most useful in configuration files and reporting tools, where the results of a query need to be formatted in a particular way. It was inspired by mutt's index_format and related directives (see <URL:http://www.mutt.org/doc/manual/manual-6.html#index_format>). %prep %setup -q -n %{module}-%{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 Changes README %{perl_vendorlib}/String %{_mandir}/*/* %changelog * Wed Jul 23 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.14-5mdv2009.0 + Revision: 241907 - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Sat Sep 15 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.14-3mdv2008.0 + Revision: 86922 - rebuild * Tue Aug 29 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.14-2mdv2007.0 - Rebuild * Thu Dec 29 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.14-1mdk - New release 1.14 * Thu Nov 24 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.13-1mdk - first mdk release