]>
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 |
4412f1d0 | 10 | Version: 0.78 |
00c9b8a7 | 11 | Release: 4 |
e95f322f | 12 | License: BSD-like |
f7398792 | 13 | Group: Development/Languages/Perl |
cf225177 | 14 | Source0: http://www.cpan.org/modules/by-module/FCGI/FCGI-%{version}.tar.gz |
4412f1d0 | 15 | # Source0-md5: 916cd2887b27265cd8dcfd3280135270 |
e95f322f | 16 | Source1: %{name}-acinclude.m4 |
d48981ce | 17 | Patch0: am.patch |
cf225177 | 18 | URL: http://search.cpan.org/dist/FCGI/ |
c1fc07bc JB |
19 | BuildRequires: autoconf |
20 | BuildRequires: automake | |
3ce485a3 | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
ca69e6ce | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
86f4ed51 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f7398792 | 24 | |
25 | %description | |
1e9b5247 ER |
26 | This is a FastCGI module for perl. It's based on the FCGI module that |
27 | comes with Open Market's FastCGI Developer's Kit, but does not require | |
28 | you to recompile perl. | |
f7398792 | 29 | |
d9fea757 JR |
30 | %description -l pl.UTF-8 |
31 | To jest moduł FastCGI. Jest bazowany na module FCGI dostarczanym z | |
1e9b5247 | 32 | FastCGI Developer's Kit, ale nie wymaga rekompilacji Perla. |
f7398792 | 33 | |
34 | %prep | |
1e9b5247 | 35 | %setup -q -n %{pdir}-%{version} |
d48981ce | 36 | %patch0 -p1 |
e95f322f | 37 | cp -f %{SOURCE1} acinclude.m4 |
f7398792 | 38 | |
39 | %build | |
bf901971 | 40 | %{__aclocal} |
1144a810 | 41 | %{__autoconf} |
d9b8c677 | 42 | %configure |
ca69e6ce | 43 | %{__perl} Makefile.PL \ |
8a3c4f86 | 44 | INSTALLDIRS=vendor |
1e9bd244 | 45 | %{__make} \ |
b9fd4021 | 46 | CC="%{__cc}" \ |
1e9bd244 | 47 | OPTIMIZE="%{rpmcflags}" |
48 | ||
49 | %{?with_tests:%{__make} test} | |
f7398792 | 50 | |
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
1e9b5247 | 53 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
f7398792 | 54 | |
cf225177 | 55 | %{__make} pure_install \ |
1e9bd244 | 56 | DESTDIR=$RPM_BUILD_ROOT |
f7398792 | 57 | |
349f4ca6 | 58 | install eg/*.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
1e9b5247 | 59 | |
f7398792 | 60 | %clean |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
4412f1d0 | 65 | %doc Change* README |
ca69e6ce | 66 | %{perl_vendorarch}/FCGI.pm |
67 | %dir %{perl_vendorarch}/auto/FCGI | |
ca69e6ce | 68 | %attr(755,root,root) %{perl_vendorarch}/auto/FCGI/FCGI.so |
cf225177 | 69 | %{_mandir}/man3/FCGI.3pm* |
e5823504 | 70 | %dir %{_examplesdir}/%{name}-%{version} |
349f4ca6 | 71 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl |