]>
Commit | Line | Data |
---|---|---|
01fdcea8 | 1 | # |
2 | # Conditional build: | |
e5bb3429 | 3 | %bcond_without tests # do not perform "make test" |
b50f79d5 | 4 | |
27eb0a46 | 5 | %define pdir CGI |
b50f79d5 | 6 | %include /usr/lib/rpm/macros.perl |
e5bb3429 | 7 | Summary: CGI Perl module - simple CGI interface class |
a04d2b9a | 8 | Summary(pl.UTF-8): Moduł Perla CGI - prosta klasa interfejsu do CGI |
99c5db2f | 9 | Name: perl-CGI |
ee6e47f9 | 10 | Version: 4.41 |
22f2b605 | 11 | Release: 1 |
99c5db2f | 12 | Epoch: 1 |
e5bb3429 JB |
13 | # same as perl |
14 | License: GPL or Artistic | |
99c5db2f | 15 | Group: Development/Languages/Perl |
81352e2d | 16 | Source0: http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/CGI-%{version}.tar.gz |
ee6e47f9 | 17 | # Source0-md5: 62cdd64cca1710bbe29f60c73e6ac51c |
81352e2d | 18 | URL: http://search.cpan.org/dist/CGI/ |
addb71f0 | 19 | BuildRequires: perl-devel >= 1:5.8.1 |
22f2b605 | 20 | BuildRequires: rpm-perlprov >= 4.3-0.20030610.20.2 |
addb71f0 | 21 | BuildRequires: rpmbuild(macros) >= 1.654 |
22f2b605 | 22 | BuildRequires: sed >= 4.0 |
b00972b0 | 23 | %if %{with tests} |
854b3da3 | 24 | BuildRequires: perl(File::Spec) >= 0.82 |
6fccbaff | 25 | BuildRequires: perl-Encode |
ec81c95c | 26 | BuildRequires: perl-FCGI >= 0.67 |
addb71f0 JB |
27 | BuildRequires: perl-HTML-Parser >= 3.69 |
28 | BuildRequires: perl-Test-Deep >= 0.11 | |
29 | BuildRequires: perl-Test-NoWarnings >= 1.04 | |
ec81c95c | 30 | BuildRequires: perl-Test-Simple >= 0.98 |
addb71f0 | 31 | BuildRequires: perl-Test-Warn >= 0.30 |
b00972b0 | 32 | %endif |
addb71f0 JB |
33 | Requires: perl(File::Spec) >= 0.82 |
34 | Requires: perl-HTML-Parser >= 3.69 | |
99c5db2f | 35 | BuildArch: noarch |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
b50f79d5 | 38 | %define _noautoreq_perl FCGI |
99c5db2f | 39 | |
40 | %description | |
41 | CGI is an easy-to-use Perl5 library for writing World Wide Web CGI | |
42 | scripts. This is replacement for usually outdated CGI module from perl | |
43 | distribution. | |
44 | ||
d8ad4e4a JR |
45 | %description -l pl.UTF-8 |
46 | CGI jest modułem do prostego i szybkiego pisania aplikacji dla WWW - | |
47 | skryptów CGI. Pakiet ten zawiera zamiennik dla zazwyczaj starej wersji | |
48 | modułu CGI która jest dostarczana razem z perlem. | |
99c5db2f | 49 | |
01fdcea8 | 50 | %package examples |
51 | Summary: Examples for the CGI module | |
a04d2b9a | 52 | Summary(pl.UTF-8): Przykłady użycia modułu CGI |
01fdcea8 | 53 | Group: Development/Languages/Perl |
427abc7f | 54 | Requires: %{name} = %{epoch}:%{version}-%{release} |
01fdcea8 | 55 | |
56 | %description examples | |
57 | Examples for the CGI module. | |
58 | ||
d8ad4e4a JR |
59 | %description examples -l pl.UTF-8 |
60 | Przykłady użycia modułu CGI. | |
01fdcea8 | 61 | |
99c5db2f | 62 | %prep |
81352e2d | 63 | %setup -q -n %{pdir}-%{version} |
99c5db2f | 64 | |
427abc7f | 65 | %{__sed} -i -e 's|/usr/local/bin/perl|/usr/bin/perl|g' examples/*.{cgi,pl} |
864536b1 | 66 | |
99c5db2f | 67 | %build |
51e9068e | 68 | %{__perl} Makefile.PL \ |
bab75d06 | 69 | INSTALLDIRS=vendor |
99c5db2f | 70 | %{__make} |
01fdcea8 | 71 | |
e5bb3429 | 72 | %{?with_tests:%{__make} test} |
99c5db2f | 73 | |
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
58184eb3 | 76 | install -d $RPM_BUILD_ROOT%{_examplesdir} |
99c5db2f | 77 | |
6977263c | 78 | %{__make} install \ |
79 | DESTDIR=$RPM_BUILD_ROOT | |
99c5db2f | 80 | |
01fdcea8 | 81 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
82 | ||
a6077d68 JB |
83 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/CGI.pod \ |
84 | $RPM_BUILD_ROOT%{perl_vendorlib}/CGI/HTML/Functions.pod | |
dbef80d1 | 85 | |
99c5db2f | 86 | %clean |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
99c5db2f | 89 | %files |
90 | %defattr(644,root,root,755) | |
854b3da3 | 91 | %doc Changes README.md |
e5bb3429 | 92 | %{perl_vendorlib}/CGI.pm |
37390be7 | 93 | %{perl_vendorlib}/Fh.pm |
427abc7f | 94 | %{perl_vendorlib}/CGI/*.pm |
37390be7 | 95 | %{perl_vendorlib}/CGI/File |
9ae9c14f | 96 | %{perl_vendorlib}/CGI/HTML |
427abc7f | 97 | %{_mandir}/man3/CGI*.3pm* |
01fdcea8 | 98 | |
99 | %files examples | |
100 | %defattr(644,root,root,755) | |
101 | %dir %{_examplesdir}/%{name}-%{version} | |
102 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.cgi | |
427abc7f JB |
103 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl |
104 | %{_examplesdir}/%{name}-%{version}/*.gif |