]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir String | |
7 | %define pnam Format | |
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 | |
11 | Version: 1.18 | |
12 | Release: 1 | |
13 | License: GPL v2 | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/String/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: 64174b4fac230228cadfa2be4410ef1a | |
17 | URL: http://search.cpan.org/dist/String-Format/ | |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
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 | ||
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>). | |
38 | ||
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
43 | %{__perl} Makefile.PL \ | |
44 | INSTALLDIRS=vendor | |
45 | %{__make} | |
46 | ||
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc Changes | |
61 | %{perl_vendorlib}/String/Format.pm | |
62 | %{_mandir}/man3/String::Format.3pm* |