]> git.pld-linux.org Git - packages/perl-String-Format.git/blob - perl-String-Format.spec
- formatting
[packages/perl-String-Format.git] / perl-String-Format.spec
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):    String::Format - mo¿liwo¶ci formatowania podobne do sprintf
10 Name:           perl-String-Format
11 Version:        1.13
12 Release:        3
13 License:        GPL v2
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  7a01414e59bc40c44652c921b4793f6f
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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>).
29
30 %description -l pl
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>).
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %{perl_vendorlib}/%{pdir}/*.pm
60 %{_mandir}/man3/*
This page took 0.068745 seconds and 4 git commands to generate.