Package python-module-scgi: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | %define modulename scgi Name: python-module-%modulename Version: 1.13 Release: alt2 Summary: Python implementation of the server side of the SCGI protocol License: CNRI OPEN SOURCE LICENSE Group: Development/Python Url: http://www.python.ca/scgi Source: %name-%version.tar BuildRequires(pre): rpm-macros-apache rpm-macros-apache2 # Automatically added by buildreq on Tue Mar 31 2009 BuildRequires: apache-devel apache2-devel apache2-httpd-worker python-devel %setup_python_module %modulename %add_findreq_skiplist %python_sitelibdir/%modulename/quixote_handler.py %description The SCGI protocol is a replacement for the Common Gateway Interface (CGI) protocol. It is a standard for applications to interface with HTTP servers. It is similar to FastCGI but is designed to be easier to implement. %package -n apache-mod_%modulename Summary: An Apache 1.3 module that implements the client side of the SCGI protocol Group: System/Servers Requires: apache %description -n apache-mod_%modulename %summary %package -n apache2-mod_%modulename Summary: An Apache 2.0 module that implements the client side of the SCGI protocol Group: System/Servers Requires: apache2 %description -n apache2-mod_%modulename %summary %prep %setup %build %python_build # build module for apache1 pushd apache1 %apache_apxs -c mod_scgi.c popd # build module for apache2 pushd apache2 %apache2_apxs -c mod_scgi.c popd %install %python_install # install apache modules install -pD apache1/mod_scgi.so %buildroot%apache_moduledir/mod_scgi.so install -pD apache2/.libs/mod_scgi.so %buildroot%apache2_moduledir/mod_scgi.so # apache configs install -pDm0644 apache.conf %buildroot%apache_modconfdir/mod_scgi.conf install -pDm0644 apache.conf %buildroot%apache2_mods_available/scgi.load %post -n apache-mod_%modulename %_initdir/httpd condrestart >/dev/null %postun -n apache-mod_%modulename %_initdir/httpd condrestart >/dev/null %post -n apache2-mod_%modulename if [ $1 -eq 1 ]; then a2enmod scgi >/dev/null fi %_initdir/httpd2 condreload >/dev/null %postun -n apache2-mod_%modulename if [ $1 -eq 0 ]; then a2dismod scgi %_initdir/httpd2 condreload >/dev/null fi %files %python_sitelibdir/%modulename/ %python_sitelibdir/*.egg-info %doc doc README.txt LICENSE.txt %files -n apache-mod_%modulename %apache_moduledir/* %config(noreplace) %apache_modconfdir/mod_scgi.conf %doc apache1/README.txt %files -n apache2-mod_%modulename %apache2_moduledir/* %config(noreplace) %apache2_mods_available/scgi.load %doc apache2/README.txt %changelog * Thu May 06 2010 Vladimir V. Kamarzin <vvk@altlinux.org> 1.13-alt2 - Skip findreq for uixote_handler.py (Closes: #23441) * Wed Nov 18 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.13-alt1.1 - Rebuilt with python 2.6 * Tue Mar 31 2009 Vladimir V. Kamarzin <vvk@altlinux.org> 1.13-alt1 - Initial build for Sisyphus |