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