]> git.pld-linux.org Git - packages/perl-Regexp-Tr.git/blame - perl-Regexp-Tr.spec
use generic url
[packages/perl-Regexp-Tr.git] / perl-Regexp-Tr.spec
CommitLineData
6ab2eed0
JB
1#
2# Conditional build:
36b2a9e2 3%bcond_without tests # do not perform "make test"
08cece21 4
c377e3a0 5%define pdir Regexp
6%define pnam Tr
08cece21 7%include /usr/lib/rpm/macros.perl
6ab2eed0 8Summary: Regexp::Tr - run-time-compiled tr/// objects
06151760 9Summary(pl.UTF-8): Regexp::Tr - obiekty tr/// kompilowane w czasie wykonywania
6ab2eed0
JB
10Name: perl-Regexp-Tr
11Version: 0.05
0374dc24 12Release: 2
c02e2e01 13# same as perl
6ab2eed0
JB
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17# Source0-md5: 1c01cb427ae8cfeba5d92fb392336510
08cece21 18URL: http://search.cpan.org/dist/Regexp-Tr/
ff56397d 19BuildRequires: perl-devel >= 1:5.8.0
6ab2eed0
JB
20BuildRequires: rpm-perlprov >= 4.1-13
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25One very useful ability of Perl is to do relatively cheap
26transliteration via the tr/// regex operator. Unfortunately, Perl
27requires tr/// to be known at compile-time. The common solution has
28been to put an eval around any dynamic tr/// operations, but that is
29very expensive to be used often (for instance, within a loop). This
30module solves that problem by compiling the tr/// a single time and
31allowing the user to use it repeatedly and delete it when it it no
32longer useful.
33
63a59b0b
JR
34%description -l pl.UTF-8
35Jedna z bardzo przydatnych możliwości Perla to w miarę tania zamiana
36znaków przez operator tr///. Niestety Perl wymaga, aby tr/// było
37znane w czasie kompilacji. Popularne rozwiązanie to otoczenie przez
38eval wszystkich dynamicznych operacji tr///, ale ma to bardzo duży
39narzut czasowy, jeśli jest używane często (na przykład w pętli). Ten
40moduł rozwiązuje problem poprzez kompilowanie wyrażenia tr/// jeden
08cece21
ER
41raz, a następnie pozwolenie użytkownikowi na wielokrotne używanie go i
42usunięcie, kiedy przestaje być potrzebne.
6ab2eed0
JB
43
44%prep
45%setup -q -n %{pdir}-%{pnam}-%{version}
46
47%build
48%{__perl} Makefile.PL \
49 INSTALLDIRS=vendor
6ab2eed0
JB
50%{__make}
51
36b2a9e2 52%{?with_tests:%{__make} test}
6ab2eed0
JB
53
54%install
55rm -rf $RPM_BUILD_ROOT
56
57%{__make} install \
58 DESTDIR=$RPM_BUILD_ROOT
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc README
66%{perl_vendorlib}/Regexp/Tr.pm
67%{_mandir}/man3/*
This page took 0.073947 seconds and 4 git commands to generate.