1 %include /usr/lib/rpm/macros.perl
2 Summary: Embedded perl - building dynamic Websites with Perl
3 Summary(pl): Osadzony perl - budowanie dynamicznych stron przy u¿yciu Perla
8 Group: Networking/Daemons
9 Source0: ftp://ftp.dev.ecos.de/pub/perl/embperl/HTML-Embperl-%{version}.tar.gz
10 Patch0: %{name}-makefile.patch
11 BuildRequires: rpm-perlprov >= 4.1-13
12 BuildRequires: apache-devel
13 BuildRequires: apache-mod_perl
14 BuildRequires: apache-mod_actions
15 BuildRequires: perl-devel
16 BuildRequires: perl(Apache::Session)
17 BuildRequires: perl(CGI)
18 BuildRequires: perl(HTML::HeadParser)
19 BuildRequires: perl(LWP::UserAgent)
20 BuildRequires: perl(File::Spec)
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Embperl gives you the power to embed Perl code in your HTML documents
25 and the ability to build your Web site out of small reusable objects
26 in a OO-style. You can also take advantage all available Perl modules,
27 (including DBI for database access) use their functionality and easily
28 include their output into your web pages.
31 Embperl daje moc zagnie¿d¿ania kodu Perla w dokumentach HTML i
32 mo¿liwo¶æ budowania stron WWW z ma³ych obiektów. Mo¿na wykorzystaæ
33 wszystkie dostêpne modu³y Perla (w tym DBI do dostêpu do baz danych).
36 %setup -q -n HTML-Embperl-%{version}
40 %{__perl} Makefile.PL \
42 %{__make} CFLAGS="%{rpmcflags}"
45 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_examplesdir}
48 %{__make} install DESTDIR=$RPM_BUILD_ROOT
50 cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc README TODO eg/README
58 %attr(755,root,root) %{_bindir}/*.pl
59 %{perl_vendorarch}/HTML/Embperl*
60 %dir %{perl_vendorarch}/auto/HTML/Embperl
61 %{perl_vendorarch}/auto/HTML/Embperl/Embperl.bs
62 %attr(755,root,root) %{perl_vendorarch}/auto/HTML/Embperl/Embperl.so
65 %{_examplesdir}/%{name}-%{version}