3 %bcond_without tests # do not perform "make test"
7 Summary: CGI::Compile - Compile .cgi scripts to a code reference like ModPerl::Registry
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/CGI/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: a6b364e8f3eb45f63d69ae6d5602eb21
16 URL: http://search.cpan.org/dist/CGI-Compile/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl(File::pushd)
21 BuildRequires: perl(Test::NoWarnings)
22 BuildRequires: perl-Test-Requires
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 CGI::Compile is an utility to compile CGI scripts into a code
29 reference that can run many times on its own namespace, as long as the
30 script is ready to run on a persistent environment.
32 NOTE: for best results, load CGI::Compile before any modules used by
36 %setup -q -n %{pdir}-%{pnam}-%{version}
40 --destdir=$RPM_BUILD_ROOT \
44 %{?with_tests:./Build test}
47 rm -rf $RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{perl_vendorlib}/CGI/*.pm