]> git.pld-linux.org Git - packages/perl-String-Escape.git/blob - perl-String-Escape.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-String-Escape.git] / perl-String-Escape.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # don't perform "make test"
4
5 %define         pdir    String
6 %define         pnam    Escape
7 Summary:        String::Escape - registry of string functions, including backslash escapes
8 Summary(pl.UTF-8):      String::Escape - zestaw funkcji do obróbki łańcuchów, w tym cytowania przy pomocy odwrotnego ukośnika
9 Name:           perl-String-Escape
10 Version:        2010.002
11 Release:        1
12 # same as perl (README says Artistic)
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  f48000fbade3f46e1a37a43f12c7f01a
17 URL:            http://search.cpan.org/dist/String-Escape/
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.090991 seconds and 4 git commands to generate.