3 # _without_tests - do not perform "make test"
4 %include /usr/lib/rpm/macros.perl
7 Summary: String::Format - sprintf-like string formatting capabilities
8 Summary(pl): 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/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 7a01414e59bc40c44652c921b4793f6f
16 BuildRequires: perl-devel >= 5.6
17 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 String::Format lets you define arbitrary printf-like format
23 sequences to be expanded. This module would be most useful
24 in configuration files and reporting tools, where the results
25 of a query need to be formatted in a particular way. It was
26 inspired by mutt's index_format and related directives (see
27 <http://www.mutt.org/doc/manual/manual-6.html#index_format>).
30 Modu³ String::Format pozwala na definiowanie dowolnych sekwencji
31 formatuj±cych w stylu printf. Jest najbardziej u¿yteczny w plikach
32 konfiguracyjnych i narzêdziach raportuj±cych, gdzie wyniki zapytañ
33 musz± byæ sformatowane w okre¶lony sposób. Jest zainspirowany
34 index_format z mutta i powi±zanymi dyrektywami (wiêcej pod adresem
35 <http://www.mutt.org/doc/manual/manual-6.html#index_format>).
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{!?_without_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
50 %{__make} install DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %{perl_vendorlib}/%{pdir}/*.pm