3 %bcond_without tests # do not perform "make test"
7 Summary: String::Format - sprintf-like string formatting capabilities
8 Summary(pl.UTF-8): String::Format - możliwości formatowania podobne do sprintf
9 Name: perl-String-Format
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/String/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 64174b4fac230228cadfa2be4410ef1a
16 URL: http://search.cpan.org/dist/String-Format/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 String::Format lets you define arbitrary printf-like format
24 sequences to be expanded. This module would be most useful
25 in configuration files and reporting tools, where the results
26 of a query need to be formatted in a particular way. It was
27 inspired by mutt's index_format and related directives (see
28 <http://www.mutt.org/doc/manual/manual-6.html#index_format>).
30 %description -l pl.UTF-8
31 Moduł String::Format pozwala na definiowanie dowolnych sekwencji
32 formatujących w stylu printf. Jest najbardziej użyteczny w plikach
33 konfiguracyjnych i narzędziach raportujących, gdzie wyniki zapytań
34 muszą być sformatowane w określony sposób. Jest zainspirowany
35 index_format z mutta i powiązanymi dyrektywami (więcej pod adresem
36 <http://www.mutt.org/doc/manual/manual-6.html#index_format>).
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/String/Format.pm
61 %{_mandir}/man3/String::Format.3pm*