]> git.pld-linux.org Git - packages/perl-String-Format.git/blob - perl-String-Format.spec
dcfec36de60995b2825ccd51af416bb9d99c14a8
[packages/perl-String-Format.git] / perl-String-Format.spec
1 #
2 # Conditional build:
3 # _without_tests - do not perform "make test"
4 %include        /usr/lib/rpm/macros.perl
5 %define pdir    String
6 %define pnam    Format
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
10 Version:        1.13
11 Release:        3
12 License:        GPL v2
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
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
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>).
28
29 %description -l pl
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>).
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor 
43 %{__make}
44
45 %{!?_without_tests:%{__make} test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} install DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %{perl_vendorlib}/%{pdir}/*.pm
58 %{_mandir}/man3/*
This page took 0.133467 seconds and 3 git commands to generate.