3 %bcond_without tests # don't perform "make test"
5 %include /usr/lib/rpm/macros.perl
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
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
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{perl_vendorlib}/String/Escape.pm