LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-scgi.spec of Package python-scgi (Project home:eltorio)

# spec file for package python-scgi (Version 1.12)
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via http://bugs.opensuse.org/

# norootforbuild
# usedforbuild    aaa_base acl apache2 apache2-devel apache2-prefork apache2-utils attr audit-libs autoconf automake bash binutils bzip2 coreutils cpio cpp cpp42 cracklib cvs cyrus-sasl diffutils file filesystem fillup findutils gawk gcc gcc42 gdbm gettext gettext-devel glibc glibc-devel glibc-locale grep groff gzip info insserv less libacl libapr-util1 libapr-util1-devel libapr1 libapr1-devel libattr libbz2-1 libbz2-devel libdb-4_5 libexpat-devel libexpat1 libgcc42 libgomp42 libltdl-3 libmudflap42 libnscd libopenssl0_9_8 libreadline5 libstdc++-devel libstdc++42 libstdc++42-devel libtool libuuid1 libvolume_id libxcrypt libzio linux-kernel-headers m4 make man mktemp ncurses net-tools netcfg openldap2-client openssl-certs pam pam-modules patch pcre pcre-devel perl perl-base permissions popt pwdutils python python-devel rpm sed sqlite sysvinit tar texinfo timezone util-linux zlib

Name:           python-scgi
BuildRequires:  apache2-devel pcre-devel python-devel
%define	apxs	/usr/sbin/apxs2
%define	apache_libexecdir	%(%{apxs} -q LIBEXECDIR)
%define apache_mmn        %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
Version:        1.12
Release:        20
Group:          Development/Libraries/Python
License:        Other uncritical OpenSource License
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.mems-exchange.org/software/scgi/
# repacked from http://quixote.python.ca/releases/scgi-%{version}.tar.gz
Source:         scgi-%{version}.tar.bz2
Summary:        Python implementation of the SCGI protocol

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

This package contains the python bindings.

    Neil Schemenauer <nas@mems-exchange.org>

%package -n apache2-mod_scgi
Group:          Development/Libraries/Python
Requires:       apache2 %{apache_mmn} 
Summary:        Apache module named mod_scgi that implements the client side of the protocol

%description -n apache2-mod_scgi
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

This package contains the apache2 module.

To load mod_python into Apache, run the command "a2enmod scgi" as root.

    Neil Schemenauer <nas@mems-exchange.org>

%setup -n scgi-%{version}

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

%{__python} setup.py install --prefix=%{_prefix} --root %{buildroot} --record-rpm %{name}.files
%{__install} -D -m 0755 apache2/.libs/mod_scgi.so  %{buildroot}%{apache_libexecdir}/mod_scgi.so
%{__cp} apache2/README.txt README.apache2.txt

%{__rm} -rf %{buildroot}

%files -f %{name}.files
%doc README.txt cgi2scgi.c CHANGES.txt LICENSE.txt

%files -n apache2-mod_scgi
%doc README.txt cgi2scgi.c CHANGES.txt LICENSE.txt README.apache2.txt
* Sun Jul 27 2008 - Ronan
- Minor changes for openSUSE BuildService
* Fri Apr 13 2007 - mrueckert@suse.de
- update to version 1.12:
  - Provide a new overridable method in SCGIHandler, produce(), as
  a more user-friendly alternative to handle_connection().
  Another new alternative is produce_cgilike() which receives the
  request payload on standard input and is expected to write its
  results to standard output.
  (Jeroen T. Vermeulen <jtv@thaiopensource.org>)
  - Define the CMSG_LEN and CMSG_SPACE macros if the platform
  doesn't provide them. (Neil Schemenauer <nas@arctrix.com>)
  - Add guide.html document.
  (Jeroen T. Vermeulen <jtv@thaiopensource.org>)
* Fri Sep 22 2006 - poeml@suse.de
- remove libapr-util1-devel from Buildrequires, since the correct
  one comes with apache2-devel
* Wed Aug 30 2006 - mrueckert@suse.de
- Update to version 1.11:
  o Allow SCGIServer to use an open socket if provided by the
  calling procedure. The existing serve() method remains the same.
  o Improve portability of the passfd module (solves at least one
  bug on AMD64 machines).
  o Fix a mod_scgi bug that caused a segfault (due to a NULL pointer
  dereference) with certain configurations.
  o Don't send duplicated headers for SCRIPT_NAME and HTTPS.
- removed apache2-mod_scgi-1.9_apache-2.2.0.patch:
  Patch was applied upstream in 1.10 (only change in 1.10)
- install docs with the apache module too
* Sat Mar 04 2006 - aj@suse.de
- updated to reflect python changes due to #149809
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006 - mrueckert@suse.de
- update the patch so it works with apache 2.0 again
* Sun Jan 15 2006 - mrueckert@suse.de
- added apache2-mod_scgi-1.9_apache-2.2.0.patch
* Thu Dec 15 2005 - mrueckert@suse.de
- Update to version 1.9
  + removed all patches. they are upstream now.
* Mon Nov 21 2005 - mrueckert@suse.de
- Initial package of version 1.8