]> git.pld-linux.org Git - packages/perl-String-Escape.git/blob - perl-String-Escape.spec
18aad53897e3fff73e95f762cd94e5b29ef46d79
[packages/perl-String-Escape.git] / perl-String-Escape.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # don't perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    String
7 %define         pnam    Escape
8 Summary:        String::Escape - registry of string functions, including backslash escapes
9 Summary(pl.UTF-8):      String::Escape - zestaw funkcji do obróbki łańcuchów, w tym cytowania przy pomocy odwrotnego ukośnika
10 Name:           perl-String-Escape
11 Version:        2010.002
12 Release:        1
13 # same as perl (README says Artistic)
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  f48000fbade3f46e1a37a43f12c7f01a
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 The String::Escape Perl module provides a flexible calling interface
25 to some frequently-performed string conversion functions, including
26 applying and removing C/Unix-style backslash escapes like \n and \t,
27 wrapping and removing double-quotes, and truncating to fit within a
28 desired length.
29
30 %description -l pl.UTF-8
31 Moduł Perla String::Escape udostępnia elastyczny interfejs wywołań
32 pewnych często używanych funkcji konwersji łańcuchów tekstowych,
33 uwzględniając funkcje do stosowania i usuwania C/uniksowych cytowań za
34 pomocą odwrotnego ukośnika, jak \n i \t, dodawanie i usuwanie
35 cudzysłowów i skracanie, aby zmieścić się w określonej długości.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43 %{__make}
44
45 %{?with_tests:%{__make} test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc README
59 %{perl_vendorlib}/String/Escape.pm
60 %{_mandir}/man3/*
This page took 0.072084 seconds and 2 git commands to generate.