rpms/mod_scgi/F-10 mod_scgi.spec, NONE, 1.1 scgi.conf, NONE, 1.1 sources, 1.1, 1.2

Marek Mahut mmahut at fedoraproject.org
Thu Jan 8 10:04:20 UTC 2009


Author: mmahut

Update of /cvs/pkgs/rpms/mod_scgi/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7577

Modified Files:
	sources 
Added Files:
	mod_scgi.spec scgi.conf 
Log Message:
inital import



--- NEW FILE mod_scgi.spec ---
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name:           mod_scgi
Version:        1.13
Release:        1%{?dist}
Summary:        Python implementation of the SCGI protocol

Group:          Applications/Internet
License:        CNRI
URL:            http://python.ca/scgi/
Source0:        http://python.ca/scgi/releases/scgi-%{version}.tar.gz
Source1:	scgi.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  httpd-devel, python-devel, pcre-devel
Requires:       httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing)

%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.

%prep
%setup -q -n scgi-%{version}


%build
CFLAGS="%{optflags}" %{__python} setup.py build
%{_sbindir}/apxs -c apache2/mod_scgi.c

%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --root $RPM_BUILD_ROOT 
install -D -m 0755 apache2/.libs/mod_scgi.so  $RPM_BUILD_ROOT/%{_libdir}/httpd/modules/mod_scgi.so
install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/scgi.conf
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mv $RPM_BUILD_ROOT%{python_sitearch}/scgi/scgi_server.py $RPM_BUILD_ROOT%{_bindir}/scgi_server
mv $RPM_BUILD_ROOT%{python_sitearch}/scgi/quixote_handler.py $RPM_BUILD_ROOT%{_bindir}/quixote_handler


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc CHANGES.txt LICENSE.txt README.txt doc/* scgi/test_passfd.py
%config(noreplace) %{_sysconfdir}/httpd/conf.d/scgi.conf
%if 0%{?fedora} > 8 
%{python_sitearch}/*egg-info
%endif 
%{python_sitearch}/scgi
%exclude %{python_sitearch}/scgi/test_passfd.py*
%{_bindir}/scgi_server
%{_bindir}/quixote_handler
%{_libdir}/httpd/modules/mod_scgi.so


%changelog
* Wed Nov 12 2008 Marek Mahut <mmahut at fedoraproject.org> - 1.13-1
- Initial build


--- NEW FILE scgi.conf ---
# (This actually better set up permanently with the command line
# "a2enmod scgi" but shown here for completeness)
LoadModule scgi_module modules/mod_scgi.so

# Set up a location to be served by an SCGI server process

# uncomment next line to serve SCGI process under /dynamic/
# SCGIMount /dynamic/ 127.0.0.1:4000


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mod_scgi/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	23 Dec 2008 02:41:27 -0000	1.1
+++ sources	8 Jan 2009 10:03:49 -0000	1.2
@@ -0,0 +1 @@
+5cc79e59130ae9efc20388cc8ce906ba  scgi-1.13.tar.gz




More information about the fedora-extras-commits mailing list