#Module-Specific definitions %define apache_version 2.0.54 %define mod_version 2.4.2 %define mod_name mod_fastcgi %define mod_conf 92_%{mod_name}.conf %define mod_so %{mod_name}.so %define sourcename %{mod_name}-%{mod_version} # Standard Module Definitions %define name apache-%{mod_name} %define version %{apache_version}_%{mod_version} Summary: Mod_fastcgi is a DSO module for the apache Web server Name: %{name} Version: %{version} Release: %mkrel 3 Group: System/Servers License: BSD-style URL: http://www.fastcgi.com/ Source0: %{sourcename}.tar.bz2 Source1: %{mod_conf}.bz2 # a possible enhancement? http://www.3skel.com/fastcgi/fastcgisa-2.4.0_0.1.tar.gz Requires(pre): rpm-helper Requires(postun): rpm-helper Requires(pre): apache-conf >= 2.0.54 Requires(pre): apache >= %{apache_version} Requires: apache-conf >= 2.0.54 Requires: apache >= %{apache_version} BuildRequires: apache-devel >= %{apache_version} Provides: apache2-mod_fastcgi Obsoletes: apache2-mod_fastcgi BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description mod_fastcgi provides FastCGI support for the apache web server. FastCGI is a language independent, scalable, open extension to CGI that provides high performance and persistence without the limitations of server specific APIs. %prep %setup -q -n %{mod_name}-%{mod_version} %build %{_sbindir}/apxs -c mod_fastcgi.c f*.c %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}/var/www/fcgi-bin install -d %{buildroot}%{_libdir}/apache-extramodules install -d %{buildroot}%{_sysconfdir}/httpd/modules.d install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/ bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf} install -d %{buildroot}%{_var}/www/html/addon-modules ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version} %post if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2; fi %postun if [ "$1" = "0" ]; then if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2 fi fi %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc docs/* CHANGES %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf} %attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so} %{_var}/www/html/addon-modules/* %dir /var/www/fcgi-bin %changelog * Fri Jul 29 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54_2.4.2-3mdk - added another work around for a rpm bug * Fri Jul 29 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54_2.4.2-2mdk - added a work around for a rpm bug, "Requires(foo,bar)" don't work * Thu May 26 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54_2.4.2-1mdk - rename the package - the conf.d directory is renamed to modules.d - use new rpm-4.4.x pre,post magic * Thu Mar 17 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53_2.4.2-6mdk - use the %%mkrel macro * Sun Feb 27 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53_2.4.2-5mdk - fix %%post and %%postun to prevent double restarts * Wed Feb 16 2005 Stefan van der Eijk <stefan@eijk.nu> 2.0.53_2.4.2-4mdk - fix bug #6574 * Wed Feb 16 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53_2.4.2-3mdk - fix deps * Tue Feb 15 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53_2.4.2-2mdk - spec file cleanups, remove the ADVX-build stuff * Tue Feb 8 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53_2.4.2-1mdk - rebuilt for apache 2.0.53 * Tue Sep 28 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52_2.4.2-1mdk - built for apache 2.0.52 * Thu Sep 16 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.51_2.4.2-1mdk - built for apache 2.0.51 * Mon Jul 12 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.50_2.4.2-1mdk - built for apache 2.0.50 - remove redundant provides * Mon Jun 14 2004 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.49_2.4.2-1mdk - 2.4.2 - built for apache 2.0.49 * Wed Nov 05 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.48_2.4.0-1mdk - built for apache 2.0.48 * Thu Jul 10 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.47_2.4.0-1mdk - rebuilt against latest apache2, requires and buildrequires * Sat May 31 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.46_2.4.0-1mdk - rebuilt for apache v2.0.46 - buildprereq ADVX-build >= 9.2 * Sat Apr 12 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.45_2.4.0-1mdk - initial cooker contrib