]>
Commit | Line | Data |
---|---|---|
b64ada21 | 1 | # |
2 | # Conditional build: | |
66196761 | 3 | %bcond_without tests # do not perform "make test" |
4 | # | |
b64ada21 | 5 | %include /usr/lib/rpm/macros.perl |
c5d487ef | 6 | %define pdir String |
7 | %define pnam Format | |
b64ada21 | 8 | Summary: String::Format - sprintf-like string formatting capabilities |
82f510fd | 9 | Summary(pl.UTF-8): String::Format - możliwości formatowania podobne do sprintf |
b64ada21 | 10 | Name: perl-String-Format |
c7553b0b | 11 | Version: 1.18 |
c5d12bb4 | 12 | Release: 1 |
b64ada21 | 13 | License: GPL v2 |
14 | Group: Development/Languages/Perl | |
56f065b0 | 15 | Source0: http://www.cpan.org/modules/by-module/String/%{pdir}-%{pnam}-%{version}.tar.gz |
c7553b0b | 16 | # Source0-md5: 64174b4fac230228cadfa2be4410ef1a |
56f065b0 | 17 | URL: http://search.cpan.org/dist/String-Format/ |
54f18da0 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
ce531a7e | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
b64ada21 | 20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
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>). | |
30 | ||
05f9b3cd JR |
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 | |
d00ed4ec | 37 | <http://www.mutt.org/doc/manual/manual-6.html#index_format>). |
b64ada21 | 38 | |
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
ce531a7e | 43 | %{__perl} Makefile.PL \ |
235d75d1 | 44 | INSTALLDIRS=vendor |
b64ada21 | 45 | %{__make} |
d00ed4ec | 46 | |
66196761 | 47 | %{?with_tests:%{__make} test} |
b64ada21 | 48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
66196761 | 52 | %{__make} install \ |
53 | DESTDIR=$RPM_BUILD_ROOT | |
b64ada21 | 54 | |
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
56f065b0 | 60 | %doc Changes |
77f16b77 JB |
61 | %{perl_vendorlib}/String/Format.pm |
62 | %{_mandir}/man3/String::Format.3pm* |