]>
Commit | Line | Data |
---|---|---|
c09b5793 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # don't perform "make test" | |
1aae542d | 4 | |
ee9852a5 | 5 | %define pdir String |
6 | %define pnam Escape | |
1aae542d | 7 | %include /usr/lib/rpm/macros.perl |
c09b5793 | 8 | Summary: String::Escape - registry of string functions, including backslash escapes |
16d966e7 | 9 | Summary(pl.UTF-8): String::Escape - zestaw funkcji do obróbki łańcuchów, w tym cytowania przy pomocy odwrotnego ukośnika |
f12b4c23 | 10 | Name: perl-String-Escape |
e137b5d1 | 11 | Version: 2010.002 |
12 | Release: 1 | |
c09b5793 | 13 | # same as perl (README says Artistic) |
14 | License: GPL v1+ or Artistic | |
f12b4c23 | 15 | Group: Development/Languages/Perl |
159f0dd2 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
e137b5d1 | 17 | # Source0-md5: f48000fbade3f46e1a37a43f12c7f01a |
1aae542d | 18 | URL: http://search.cpan.org/dist/String-Escape/ |
29086cc4 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
056fb577 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
106398aa | 21 | BuildArch: noarch |
42b2dc62 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f12b4c23 | 23 | |
24 | %description | |
c09b5793 | 25 | The String::Escape Perl module provides a flexible calling interface |
26 | to some frequently-performed string conversion functions, including | |
27 | applying and removing C/Unix-style backslash escapes like \n and \t, | |
28 | wrapping and removing double-quotes, and truncating to fit within a | |
29 | desired length. | |
f12b4c23 | 30 | |
6c6d16f4 JR |
31 | %description -l pl.UTF-8 |
32 | Moduł Perla String::Escape udostępnia elastyczny interfejs wywołań | |
33 | pewnych często używanych funkcji konwersji łańcuchów tekstowych, | |
34 | uwzględniając funkcje do stosowania i usuwania C/uniksowych cytowań za | |
35 | pomocą odwrotnego ukośnika, jak \n i \t, dodawanie i usuwanie | |
36 | cudzysłowów i skracanie, aby zmieścić się w określonej długości. | |
f12b4c23 | 37 | |
38 | %prep | |
6658d3c4 | 39 | %setup -q -n %{pdir}-%{pnam}-%{version} |
f12b4c23 | 40 | |
41 | %build | |
056fb577 | 42 | %{__perl} Makefile.PL \ |
ef1d941b | 43 | INSTALLDIRS=vendor |
3db27591 | 44 | %{__make} |
f12b4c23 | 45 | |
c09b5793 | 46 | %{?with_tests:%{__make} test} |
47 | ||
f12b4c23 | 48 | %install |
49 | rm -rf $RPM_BUILD_ROOT | |
f12b4c23 | 50 | |
c09b5793 | 51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
f12b4c23 | 53 | |
f12b4c23 | 54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
296399a4 | 59 | %doc README |
056fb577 | 60 | %{perl_vendorlib}/String/Escape.pm |
f12b4c23 | 61 | %{_mandir}/man3/* |