]> git.pld-linux.org Git - packages/perl-String-Format.git/blob - perl-String-Format.spec
- use the __perl macro
[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:        2
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 BuildRequires:  perl >= 5.6
16 BuildRequires:  rpm-perlprov >= 3.0.3-26
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 String::Format lets you define arbitrary printf-like format
22 sequences to be expanded.  This module would be most useful
23 in configuration files and reporting tools, where the results
24 of a query need to be formatted in a particular way.  It was
25 inspired by mutt's index_format and related directives (see
26 <http://www.mutt.org/doc/manual/manual-6.html#index_format>).
27
28 %description -l pl
29 Modu³ String::Format pozwala na definiowanie dowolnych sekwencji
30 formatuj±cych w stylu printf. Jest najbardziej u¿yteczny w plikach
31 konfiguracyjnych i narzêdziach raportuj±cych, gdzie wyniki zapytañ
32 musz± byæ sformatowane w okre¶lony sposób. Jest zainspirowany
33 index_format z mutta i powi±zanymi dyrektywami (wiêcej pod adresem
34 <http://www.mutt.org/doc/manual/manual-6.html#index_format>).
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL
41 %{__make}
42
43 %{!?_without_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %{perl_sitelib}/%{pdir}/*.pm
56 %{_mandir}/man3/*
This page took 0.253629 seconds and 4 git commands to generate.