]> git.pld-linux.org Git - SPECS.git/blob - perl-NCGI.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / perl-NCGI.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    NCGI
6 Summary:        NCGI - A Common Gateway Interface (CGI) Class
7 Summary(pl.UTF-8):      NCGI - klasa dla CGI (Common Gateway Interface)
8 Name:           perl-NCGI
9 Version:        0.05
10 Release:        0.1
11 License:        GPL v2
12 Group:          Development/Languages/Perl
13 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
14 # Source0-md5:  b2eba415d26650d10efb33b40d20c82c
15 URL:            http://search.cpan.org/dist/NCGI/
16 BuildRequires:  perl-devel >= 1:5.8.0
17 BuildRequires:  rpm-perlprov >= 4.1-13
18 %if %{with tests}
19 BuildRequires:  perl-Log-Delta >= 0.02
20 BuildRequires:  perl-XML-API >= 0.07
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 NCGI is an aid for authors writing CGI scripts. It has the same basic
27 function as the well known CGI module although with a completely
28 different interface.
29
30 %description -l pl.UTF-8
31 NCGI jest pomocą dla autorów piszących skrypty CGI. Ma te same funkcje
32 podstawowe co dobrze znany moduł CGI, lecz z zupełnie innym
33 interfejsem.
34
35 %prep
36 %setup -q -n %{pdir}-%{version}
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41 %{__make}
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc Changes README
57 %{perl_vendorlib}/*.pm
58 %{perl_vendorlib}/NCGI
59 %{_mandir}/man3/*
This page took 0.163826 seconds and 3 git commands to generate.