]> git.pld-linux.org Git - packages/perl-String-Escape.git/blobdiff - perl-String-Escape.spec
- up to 2010.002
[packages/perl-String-Escape.git] / perl-String-Escape.spec
index bb27341025c8c53497bddda61bda973cd3a37203..18aad53897e3fff73e95f762cd94e5b29ef46d79 100644 (file)
@@ -1,51 +1,60 @@
+#
+# Conditional build:
+%bcond_without tests   # don't perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
-Summary:       String-Escape perl module
-Summary(pl):   Modu³ perla String-Escape
+%define                pdir    String
+%define                pnam    Escape
+Summary:       String::Escape - registry of string functions, including backslash escapes
+Summary(pl.UTF-8):     String::Escape - zestaw funkcji do obróbki łańcuchów, w tym cytowania przy pomocy odwrotnego ukośnika
 Name:          perl-String-Escape
-Version:       1998.1204
-Release:       6
-License:       GPL
+Version:       2010.002
+Release:       1
+# same as perl (README says Artistic)
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(cs):     Vývojové prostøedky/Programovací jazyky/Perl
-Group(de):     Entwicklung/Sprachen/Perl
-Group(es):     Desarrollo/Lenguajes/Perl
-Group(fr):     Development/Langues/Perl
-Group(ja):     ³«È¯/¸À¸ì/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Group(pt):     Desenvolvimento/Linguagens/Perl
-Group(ru):     òÁÚÒÁÂÏÔËÁ/ñÚÙËÉ/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/String/String-Escape-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: f48000fbade3f46e1a37a43f12c7f01a
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-String-Escape - Registry of string functions, including backslash
-escapes.
-
-%description -l pl
-Modu³ perla String-Escape.
+The String::Escape Perl module provides a flexible calling interface
+to some frequently-performed string conversion functions, including
+applying and removing C/Unix-style backslash escapes like \n and \t,
+wrapping and removing double-quotes, and truncating to fit within a
+desired length.
+
+%description -l pl.UTF-8
+Moduł Perla String::Escape udostępnia elastyczny interfejs wywołań
+pewnych często używanych funkcji konwersji łańcuchów tekstowych,
+uwzględniając funkcje do stosowania i usuwania C/uniksowych cytowań za
+pomocą odwrotnego ukośnika, jak \n i \t, dodawanie i usuwanie
+cudzysłowów i skracanie, aby zmieścić się w określonej długości.
 
 %prep
-%setup -q -n String-Escape-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-gzip -9nf README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/String/Escape.pm
+%doc README
+%{perl_vendorlib}/String/Escape.pm
 %{_mandir}/man3/*
This page took 0.091065 seconds and 4 git commands to generate.