3 %bcond_with tests # perform "make test" (one test fails)
5 %include /usr/lib/rpm/macros.perl
6 Summary: A persistent Perl interpreter system, designed to speed up Perl scripts
7 Summary(pl): Trwa³y system interpretera Perla s³u¿±cy do przyspieszenia skryptów
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/%{name}-%{version}.tar.gz
15 # Source0-md5: 32c94d7154494e292241a3d629eed4ea
16 BuildRequires: gdbm-devel
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 PPerl provides a persistent environment for Perl scripts. It makes
23 converting a useful old script into a persistent daemon process a
26 Simply change your shebang line to "#!/usr/bin/pperl", rather than
27 "perl", and you'll find your old slow scripts that take ages to start
28 up, running like they were brand spanking new again. Well, that's the
32 PPerl dostarcza trwa³e ¶rodowisko dla skryptów perlowych. Znacznie
33 u³atwia zamianê starego, przydatnego skryptu na stale dzia³aj±cego
36 Wystarczy zmieniæ pierwsz± liniê na "#!/usr/bin/pperl" zamiast "perl",
37 a stare, wolne skrypty, wcze¶niej potrzebuj±ce wieków na uruchomienie,
38 zaczn± dzia³aæ jakby znowu by³y nowe. A przynajmniej taki jest plan.
44 %{__perl} Makefile.PL \
48 OPTIMIZE="%{rpmcflags}"
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{_examplesdir}
57 DESTDIR=$RPM_BUILD_ROOT
59 cp -r examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %doc Changes README TODO examples
67 %attr(755,root,root) %{_bindir}/pperl
68 %{perl_vendorarch}/%{name}.pm
69 %dir %{perl_vendorarch}/auto/%{name}
70 %{perl_vendorarch}/auto/%{name}/%{name}.bs
71 %attr(755,root,root) %{perl_vendorarch}/auto/%{name}/%{name}.so
74 %{_examplesdir}/%{name}-%{version}