]> git.pld-linux.org Git - packages/perl-FCGI.git/blame_incremental - perl-FCGI.spec
- removed zero-sized .bs file
[packages/perl-FCGI.git] / perl-FCGI.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir FCGI
7Summary: FCGI - Fast CGI module
8Summary(pl.UTF-8): FCGI - szybki moduł CGI
9Name: perl-FCGI
10Version: 0.74
11Release: 4
12License: BSD-like
13Group: Development/Languages/Perl
14Source0: http://www.cpan.org/modules/by-module/FCGI/FCGI-%{version}.tar.gz
15# Source0-md5: 462a77a0072480fea791a4d3095eb486
16Source1: %{name}-acinclude.m4
17Patch0: am.patch
18URL: http://search.cpan.org/dist/FCGI/
19BuildRequires: autoconf
20BuildRequires: automake
21BuildRequires: perl-devel >= 1:5.8.0
22BuildRequires: rpm-perlprov >= 4.1-13
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26This is a FastCGI module for perl. It's based on the FCGI module that
27comes with Open Market's FastCGI Developer's Kit, but does not require
28you to recompile perl.
29
30%description -l pl.UTF-8
31To jest moduł FastCGI. Jest bazowany na module FCGI dostarczanym z
32FastCGI Developer's Kit, ale nie wymaga rekompilacji Perla.
33
34%prep
35%setup -q -n %{pdir}-%{version}
36%patch0 -p1
37cp -f %{SOURCE1} acinclude.m4
38
39%build
40%{__aclocal}
41%{__autoconf}
42%configure
43%{__perl} Makefile.PL \
44 INSTALLDIRS=vendor
45%{__make} \
46 CC="%{__cc}" \
47 OPTIMIZE="%{rpmcflags}"
48
49%{?with_tests:%{__make} test}
50
51%install
52rm -rf $RPM_BUILD_ROOT
53install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54
55%{__make} pure_install \
56 DESTDIR=$RPM_BUILD_ROOT
57
58install *.fpl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc Change* LICENSE.TERMS README
66%{perl_vendorarch}/FCGI.pm
67%dir %{perl_vendorarch}/auto/FCGI
68%attr(755,root,root) %{perl_vendorarch}/auto/FCGI/FCGI.so
69%{_mandir}/man3/FCGI.3pm*
70%dir %{_examplesdir}/%{name}-%{version}
71%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.fpl
This page took 0.059483 seconds and 4 git commands to generate.