]> git.pld-linux.org Git - packages/perl-CGI.git/blame - perl-CGI.spec
- updated to 4.41
[packages/perl-CGI.git] / perl-CGI.spec
CommitLineData
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 7Summary: CGI Perl module - simple CGI interface class
a04d2b9a 8Summary(pl.UTF-8): Moduł Perla CGI - prosta klasa interfejsu do CGI
99c5db2f 9Name: perl-CGI
ee6e47f9 10Version: 4.41
22f2b605 11Release: 1
99c5db2f 12Epoch: 1
e5bb3429
JB
13# same as perl
14License: GPL or Artistic
99c5db2f 15Group: Development/Languages/Perl
81352e2d 16Source0: http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/CGI-%{version}.tar.gz
ee6e47f9 17# Source0-md5: 62cdd64cca1710bbe29f60c73e6ac51c
81352e2d 18URL: http://search.cpan.org/dist/CGI/
addb71f0 19BuildRequires: perl-devel >= 1:5.8.1
22f2b605 20BuildRequires: rpm-perlprov >= 4.3-0.20030610.20.2
addb71f0 21BuildRequires: rpmbuild(macros) >= 1.654
22f2b605 22BuildRequires: sed >= 4.0
b00972b0 23%if %{with tests}
854b3da3 24BuildRequires: perl(File::Spec) >= 0.82
6fccbaff 25BuildRequires: perl-Encode
ec81c95c 26BuildRequires: perl-FCGI >= 0.67
addb71f0
JB
27BuildRequires: perl-HTML-Parser >= 3.69
28BuildRequires: perl-Test-Deep >= 0.11
29BuildRequires: perl-Test-NoWarnings >= 1.04
ec81c95c 30BuildRequires: perl-Test-Simple >= 0.98
addb71f0 31BuildRequires: perl-Test-Warn >= 0.30
b00972b0 32%endif
addb71f0
JB
33Requires: perl(File::Spec) >= 0.82
34Requires: perl-HTML-Parser >= 3.69
99c5db2f 35BuildArch: noarch
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
b50f79d5 38%define _noautoreq_perl FCGI
99c5db2f 39
40%description
41CGI is an easy-to-use Perl5 library for writing World Wide Web CGI
42scripts. This is replacement for usually outdated CGI module from perl
43distribution.
44
d8ad4e4a
JR
45%description -l pl.UTF-8
46CGI jest modułem do prostego i szybkiego pisania aplikacji dla WWW -
47skryptów CGI. Pakiet ten zawiera zamiennik dla zazwyczaj starej wersji
48modułu CGI która jest dostarczana razem z perlem.
99c5db2f 49
01fdcea8 50%package examples
51Summary: Examples for the CGI module
a04d2b9a 52Summary(pl.UTF-8): Przykłady użycia modułu CGI
01fdcea8 53Group: Development/Languages/Perl
427abc7f 54Requires: %{name} = %{epoch}:%{version}-%{release}
01fdcea8 55
56%description examples
57Examples for the CGI module.
58
d8ad4e4a
JR
59%description examples -l pl.UTF-8
60Przykł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
75rm -rf $RPM_BUILD_ROOT
58184eb3 76install -d $RPM_BUILD_ROOT%{_examplesdir}
99c5db2f 77
6977263c 78%{__make} install \
79 DESTDIR=$RPM_BUILD_ROOT
99c5db2f 80
01fdcea8 81cp -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
87rm -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
This page took 0.174548 seconds and 4 git commands to generate.