]>
Commit | Line | Data |
---|---|---|
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 | |
8 | Summary: CGI::Compile - Compile .cgi scripts to a code reference like ModPerl::Registry | |
9 | #Summary(pl.UTF-8): | |
10 | Name: perl-CGI-Compile | |
3d9b7143 | 11 | Version: 0.15 |
279bcb8c | 12 | Release: 1 |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: 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/ | |
20 | BuildRequires: perl-devel >= 1:5.8.0 | |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
22 | %if %{with tests} | |
23 | BuildRequires: perl(File::pushd) | |
24 | BuildRequires: perl(Test::NoWarnings) | |
25 | BuildRequires: perl-Test-Requires | |
26 | %endif | |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | CGI::Compile is an utility to compile CGI scripts into a code | |
32 | reference that can run many times on its own namespace, as long as the | |
33 | script is ready to run on a persistent environment. | |
34 | ||
3d9b7143 | 35 | NOTE: for best results, load CGI::Compile before any modules used by |
36 | your 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 | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} pure_install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %clean | |
58 | rm -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/* |