Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rdsq:rdsq2010
apache2-mod_python
apache2-mod_python.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File apache2-mod_python.spec of Package apache2-mod_python
# # spec file for package apache2-mod_python # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define modname mod_python Name: apache2-mod_python Version: 3.5.0 Release: 0 Summary: A Python Module for the Apache 2 Web Server License: Apache-2.0 Group: Productivity/Networking/Web/Servers Url: http://www.modpython.org/ Source: %{modname}-%{version}.tar.bz2 BuildRequires: apache2-devel BuildRequires: apache-rpm-macros BuildRequires: autoconf BuildRequires: bison BuildRequires: flex BuildRequires: gcc BuildRequires: glibc-devel BuildRequires: make BuildRequires: pcre-devel Requires: %{apache_mmn} Requires: %{apache_suse_maintenance_mmn} Requires: apache2 BuildRoot: %{_tmppath}/%{name}-%{version}-build Conflicts: mod_python BuildRequires: python-devel %py_requires %description mod_python allows embedding Python within the Apache HTTP server for a considerable boost in performance and added flexibility in designing Web-based applications. Apache processes requests in stages (for example: read the request, parse headers, check access, and so on). These stages can be implemented by functions called handlers. Traditionally, handlers are written in C and compiled into Apache modules. mod_python provides a way to extend Apache functionality by writing Apache handlers in Python. For a detailed description of the Apache request processing process, see the Apache API notes. For most programmers, the request and the authentication handlers provide everything required. To ease migration from CGI and Httpdapy, two handlers are provided that simulate these environments, allowing a user to run scripts under mod_python with (for the most part) no changes to the code. mod_python originated from a project called Httpdapy. For a long time, Httpdapy was not called mod_python because Httpdapy was not meant to be Apache-specific. Httpdapy was designed to be cross-platform and was initially written for the Netscape server. Usage Hints: To load mod_python into Apache, add it to APACHE_MODULES in %{_sysconfdir}/sysconfig/apache2. The configuration is described in %{_docdir}/apache2-mod_python/doc-html/index.html. %prep %setup -q -n %{modname}-%{version} case %{_lib} in lib) ;; *) mv lib %{_lib};; esac sed -i 's@lib/python@%{_lib}/python@' configure.in sed -i " s@setup.py install@setup.py install --prefix=%{_prefix} --root=%{buildroot}@ ; s@/lib@/%{_lib}@ " dist/Makefile.in sed -i " s@setup.py install@setup.py install --prefix=%{_prefix} --root=%{buildroot}@ ; s@'lib'@'%{_lib}'@ " dist/setup.py.in sed -i 's@GIT.*$@GIT=none@' dist/version.sh %build autoconf # RPM_OPT_FLAGS come from apxs2 %configure \ --with-apxs=`which %{apache_apxs}` \ --libdir="%{_libdir}" \ --with-python="python" make OPT="%{apache_cflags}" %{?_smp_mflags} %install install -d %{buildroot}/%{_bindir} make DESTDIR=%{buildroot} install %{?_smp_mflags} %files %defattr(-,root,root) %doc COPYRIGHT CREDITS NEWS doc-html %{apache_libexecdir}/%{modname}.so %{python_sitearch}/* %{_bindir}/mod_python %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor