]> git.pld-linux.org Git - packages/perl-CGI-Compile.git/blame - perl-CGI-Compile.spec
- up to 0.15
[packages/perl-CGI-Compile.git] / perl-CGI-Compile.spec
CommitLineData
279bcb8c 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir CGI
6%define pnam Compile
7%include /usr/lib/rpm/macros.perl
8Summary: CGI::Compile - Compile .cgi scripts to a code reference like ModPerl::Registry
9#Summary(pl.UTF-8):
10Name: perl-CGI-Compile
3d9b7143 11Version: 0.15
279bcb8c 12Release: 1
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/CGI/%{pdir}-%{pnam}-%{version}.tar.gz
3d9b7143 17# Source0-md5: 2fcf4bc473107130229f4e0a98c756ce
279bcb8c 18# generic URL, check or change before uncommenting
19#URL: http://search.cpan.org/dist/CGI-Compile/
20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
22%if %{with tests}
23BuildRequires: perl(File::pushd)
24BuildRequires: perl(Test::NoWarnings)
25BuildRequires: perl-Test-Requires
26%endif
27BuildArch: noarch
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31CGI::Compile is an utility to compile CGI scripts into a code
32reference that can run many times on its own namespace, as long as the
33script is ready to run on a persistent environment.
34
3d9b7143 35NOTE: for best results, load CGI::Compile before any modules used by
36your CGIs.
279bcb8c 37
38# %description -l pl.UTF-8
39# TODO
40
41%prep
42%setup -q -n %{pdir}-%{pnam}-%{version}
43
44%build
45%{__perl} Makefile.PL \
46 INSTALLDIRS=vendor
47%{__make}
48
49%{?with_tests:%{__make} test}
50
51%install
52rm -rf $RPM_BUILD_ROOT
53
54%{__make} pure_install \
55 DESTDIR=$RPM_BUILD_ROOT
56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%files
61%defattr(644,root,root,755)
62%doc Changes README
63%{perl_vendorlib}/CGI/*.pm
64%{_mandir}/man3/*
This page took 0.058598 seconds and 4 git commands to generate.