]>
Commit | Line | Data |
---|---|---|
1e9bd244 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
15d5e3c9 | 5 | %include /usr/lib/rpm/macros.perl |
1e9b5247 | 6 | %define pdir FCGI |
72c273e8 | 7 | Summary: FCGI - Fast CGI module |
83984e6b | 8 | Summary(pl.UTF-8): FCGI - szybki moduł CGI |
f7398792 | 9 | Name: perl-FCGI |
951fed5d | 10 | Version: 0.67 |
e5823504 | 11 | Release: 4 |
e95f322f | 12 | License: BSD-like |
f7398792 | 13 | Group: Development/Languages/Perl |
1e9b5247 | 14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/FCGI-%{version}.tar.gz |
f7a74095 | 15 | # Source0-md5: 2e9b5bd1f74290fd9788555e8108a3d2 |
e95f322f | 16 | Source1: %{name}-acinclude.m4 |
845c4a8d | 17 | URL: http://www.fastcgi.com/ |
c1fc07bc JB |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
3ce485a3 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
ca69e6ce | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
86f4ed51 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f7398792 | 23 | |
24 | %description | |
1e9b5247 ER |
25 | This is a FastCGI module for perl. It's based on the FCGI module that |
26 | comes with Open Market's FastCGI Developer's Kit, but does not require | |
27 | you to recompile perl. | |
f7398792 | 28 | |
d9fea757 JR |
29 | %description -l pl.UTF-8 |
30 | To jest moduł FastCGI. Jest bazowany na module FCGI dostarczanym z | |
1e9b5247 | 31 | FastCGI Developer's Kit, ale nie wymaga rekompilacji Perla. |
f7398792 | 32 | |
33 | %prep | |
1e9b5247 | 34 | %setup -q -n %{pdir}-%{version} |
e95f322f | 35 | cp -f %{SOURCE1} acinclude.m4 |
f7398792 | 36 | |
37 | %build | |
bf901971 | 38 | %{__aclocal} |
1144a810 | 39 | %{__autoconf} |
d9b8c677 | 40 | %configure |
ca69e6ce | 41 | %{__perl} Makefile.PL \ |
8a3c4f86 | 42 | INSTALLDIRS=vendor |
1e9bd244 | 43 | %{__make} \ |
44 | OPTIMIZE="%{rpmcflags}" | |
45 | ||
46 | %{?with_tests:%{__make} test} | |
f7398792 | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
1e9b5247 | 50 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
f7398792 | 51 | |
1e9bd244 | 52 | %{__make} install \ |
53 | DESTDIR=$RPM_BUILD_ROOT | |
f7398792 | 54 | |
1e9b5247 ER |
55 | install *.fpl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
56 | ||
57 | rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod | |
58 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/%{pdir}/.packlist | |
59 | ||
f7398792 | 60 | %clean |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
1e9b5247 | 65 | %doc Change* LICENSE.TERMS README |
ca69e6ce | 66 | %{perl_vendorarch}/FCGI.pm |
67 | %dir %{perl_vendorarch}/auto/FCGI | |
68 | %{perl_vendorarch}/auto/FCGI/FCGI.bs | |
69 | %attr(755,root,root) %{perl_vendorarch}/auto/FCGI/FCGI.so | |
f7398792 | 70 | %{_mandir}/man3/* |
e5823504 ER |
71 | %dir %{_examplesdir}/%{name}-%{version} |
72 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.fpl |