]> git.pld-linux.org Git - packages/PPerl.git/blame - PPerl.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/PPerl.git] / PPerl.spec
CommitLineData
1e4467cc
JB
1#
2# Conditional build:
3%bcond_with tests # perform "make test" (one test fails)
4#
8cccf292 5Summary: A persistent Perl interpreter system, designed to speed up Perl scripts
ed87e484 6Summary(pl.UTF-8): Trwały system interpretera Perla służący do przyspieszenia skryptów
8cccf292 7Name: PPerl
c3918abc 8Version: 0.25
9Release: 1
10# same as perl
11License: GPL v1+ or Artistic
8cccf292
PG
12Group: Development/Languages/Perl
13Source0: http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/%{name}-%{version}.tar.gz
c3918abc 14# Source0-md5: 32c94d7154494e292241a3d629eed4ea
ac9771c3 15BuildRequires: gdbm-devel
1e4467cc
JB
16BuildRequires: perl-devel >= 1:5.8.0
17BuildRequires: rpm-perlprov >= 4.1-13
8cccf292
PG
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
1e4467cc 21PPerl provides a persistent environment for Perl scripts. It makes
8cccf292
PG
22converting a useful old script into a persistent daemon process a
23breeze.
24
1e4467cc 25Simply change your shebang line to "#!/usr/bin/pperl", rather than
8cccf292
PG
26"perl", and you'll find your old slow scripts that take ages to start
27up, running like they were brand spanking new again. Well, that's the
28plan at least!
29
d5649bf9
JR
30%description -l pl.UTF-8
31PPerl dostarcza trwałe środowisko dla skryptów perlowych. Znacznie
32ułatwia zamianę starego, przydatnego skryptu na stale działającego
1e4467cc
JB
33demona.
34
d5649bf9
JR
35Wystarczy zmienić pierwszą linię na "#!/usr/bin/pperl" zamiast "perl",
36a stare, wolne skrypty, wcześniej potrzebujące wieków na uruchomienie,
37zaczną działać jakby znowu były nowe. A przynajmniej taki jest plan.
1e4467cc 38
8cccf292
PG
39%prep
40%setup -q
41
42%build
1e4467cc 43%{__perl} Makefile.PL \
c3918abc 44 PERL_PATH=%{__perl} \
1e4467cc
JB
45 INSTALLDIRS=vendor
46%{__make} \
47 OPTIMIZE="%{rpmcflags}"
8cccf292
PG
48
49%{?with_tests:%{__make} test}
50
51%install
52rm -rf $RPM_BUILD_ROOT
c3918abc 53install -d $RPM_BUILD_ROOT%{_examplesdir}
8cccf292
PG
54
55%{__make} install \
56 DESTDIR=$RPM_BUILD_ROOT
57
c3918abc 58cp -r examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59
8cccf292
PG
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc Changes README TODO examples
66%attr(755,root,root) %{_bindir}/pperl
1e4467cc
JB
67%{perl_vendorarch}/%{name}.pm
68%dir %{perl_vendorarch}/auto/%{name}
69%{perl_vendorarch}/auto/%{name}/%{name}.bs
70%attr(755,root,root) %{perl_vendorarch}/auto/%{name}/%{name}.so
8cccf292
PG
71%{_mandir}/man1/*
72%{_mandir}/man3/*
c3918abc 73%{_examplesdir}/%{name}-%{version}
This page took 0.080685 seconds and 4 git commands to generate.