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