Summary: The FastCGI development kit Name: fcgi Version: 2.4.0 Release: 2.n0i.2%{?dist} Group: System Environment/Daemons License: BSD-style URL: http://www.fastcgi.com/ Source0: http://www.fastcgi.com/dist/%{name}-%{version}.tar.bz2 Patch0: fcgi-no-libs.patch.bz2 Requires: %{name}-libs = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libtool %description FastCGI is an open extension to CGI that provides high performance for all Internet applications without the penalties of Web server APIs. FastCGI is designed to be layered on top of existing Web server APIs. For instance, the mod_fastcgi Apache module adds FastCGI support to the Apache server. FastCGI can also be used, with reduced functionality and reduced performance, on any Web server that supports CGI. This FastCGI Developer's Kit is designed to make developing FastCGI applications easy. The kit currently supports FastCGI applications written in C/C++, Perl, Tcl, and Java. This package contains only shared libraries used by programs developed using FastCGI Developer's Kit and cgi-fcgi (bridge from CGI to FastCGI). %package libs Summary: Libraries for %{name} Group: System Environment/Libraries %description libs This package contains the %{name} library files. %package libs-devel Summary: Development headers and libraries for %{name} Group: Development/Libraries Requires: %{name}-libs = %{version} %description libs-devel This package contains FastCGI Developer's Kit, which is designed to make developing FastCGI applications easy. The kit currently supports FastCGI applications written in C/C++, Perl, Tcl, and Java. %prep %setup %patch -p1 %{__sed} -i 's/\\r//g' doc/fastcgi-prog-guide/ch2c.htm %build touch INSTALL NEWS AUTHORS ChangeLog COPYING libtoolize --copy --force && aclocal && autoconf && automake --add-missing --copy %configure \ --with-global \ --with-nodebug \ --with-noassert \ --with-notest make %install %{__rm} -rf $RPM_BUILD_ROOT %makeinstall install -d $RPM_BUILD_ROOT%{_datadir}/fastcgi %{__cp} -a examples/{Makefile*,*.c} $RPM_BUILD_ROOT%{_datadir}/fastcgi/ # install the built examples (should we require apache here?) %{__install} -d $RPM_BUILD_ROOT/var/www/fcgi-bin pushd examples/.libs/ %{__install} -m755 authorizer $RPM_BUILD_ROOT/var/www/fcgi-bin/ %{__install} -m755 echo $RPM_BUILD_ROOT/var/www/fcgi-bin/ %{__install} -m755 echo-cpp $RPM_BUILD_ROOT/var/www/fcgi-bin/ %{__install} -m755 echo-x $RPM_BUILD_ROOT/var/www/fcgi-bin/ %{__install} -m755 log-dump $RPM_BUILD_ROOT/var/www/fcgi-bin/ %{__install} -m755 size $RPM_BUILD_ROOT/var/www/fcgi-bin/ %{__install} -m755 threaded $RPM_BUILD_ROOT/var/www/fcgi-bin/ popd %clean %{__rm} -rf $RPM_BUILD_ROOT %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %post libs-devel -p /sbin/ldconfig %postun libs-devel -p /sbin/ldconfig %files %defattr(0644,root,root,0755) %doc doc/*.1 LICENSE.TERMS README %attr(0755,root,root) %{_bindir}/cgi-fcgi %attr(0755,root,root) /var/www/fcgi-bin/authorizer %attr(0755,root,root) /var/www/fcgi-bin/echo %attr(0755,root,root) /var/www/fcgi-bin/echo-cpp %attr(0755,root,root) /var/www/fcgi-bin/echo-x %attr(0755,root,root) /var/www/fcgi-bin/log-dump %attr(0755,root,root) /var/www/fcgi-bin/size %attr(0755,root,root) /var/www/fcgi-bin/threaded %files libs %defattr(0644,root,root,0755) %attr(0755,root,root) %{_libdir}/libfcgi++.so.0* %attr(0755,root,root) %{_libdir}/libfcgi.so.0* %files libs-devel %defattr(0644,root,root,0755) %doc doc/*.htm* doc/*.gif doc/fastcgi-* doc/*.3 %attr(0755,root,root) %{_libdir}/libfcgi++.so %attr(0755,root,root) %{_libdir}/libfcgi.so %attr(0755,root,root) %{_libdir}/libfcgi++.la %attr(0755,root,root) %{_libdir}/libfcgi.la %{_libdir}/libfcgi++.a %{_libdir}/libfcgi.a %{_includedir}/*.h %{_datadir}/fastcgi/* %changelog * Mon Aug 21 2006 Marius FERARU - 2.4.0-2.n0i.2 - Dist macro - fixed devel group - fixed EOL for DOSish files * Thu Jan 19 2006 Marius FERARU 2.4.0-1.n0i.1 - twisted Mandriva's pkg (2.4.0-7mdk) into this Fedorization. * Tue May 10 2005 Oden Eriksson 2.4.0-7mdk - added P0 by PLD - make ite compile cleanly on x86_64 * Fri Jun 04 2004 Oden Eriksson 2.4.0-6mdk - rebuilt against new deps and with gcc v3.4.x - fix deps * Wed Aug 20 2003 Oden Eriksson 2.4.0-5mdk - put headers in %%{_includedir}/ * Wed Aug 20 2003 Oden Eriksson 2.4.0-4mdk - use macros - use spec file magic to make it compile... * Sun Apr 13 2003 Oden Eriksson 2.4.0-3mdk - rebuilt to have rpm v4.2 pick up provides * Sun Apr 13 2003 Oden Eriksson 2.4.0-2mdk - argh!!!, license is not GPL but BSD-style (darn templates...) - clean up the spec file... (darn templates...) * Sun Apr 13 2003 Oden Eriksson 2.4.0-1mdk - initial cooker contrib, ripped from PLD, adapted for ML