Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
python-mpservlets
python-mpservlets.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-mpservlets.spec of Package python-mpservlets
# # spec file for package python-mpservlets (Version 1.1.6) # # Copyright (c) 2008 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/ # Name: python-mpservlets Summary: Mod_python Servlets - a mod_python handler License: The Apache Software License Group: Development/Libraries/Python Version: 1.1.6 Release: 2 Url: http://home.comcast.net/~d.popowich/mpservlets/ BuildRequires: python-devel BuildRequires: apache2-devel %if 0%{?suse_version} > 1020 BuildRequires: fdupes %endif Source: mpservlets-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %define apache_serverroot %(/usr/sbin/apxs2 -q DATADIR) %define apache_sysconfdir %(/usr/sbin/apxs2 -q SYSCONFDIR) %py_requires %description A mod_python handler that uses instances of subclasses of class Servlet (thus its name) to respond to HTTP GET and POST requests. For each request a series of methods are called on the instance, the output of such being sent to the client as the response. This handler was inspired by WebWare. Authors: -------- Daniel J. Popowich %package doc License: The Apache Software License Summary: API Reference in HTML and PDF Group: Documentation/Other Requires: %name = %version %description doc This documentation is generated using epydoc (http://epydoc.sourceforge.net) which uses simple, special markup in python doc strings, so the source code is well documented as well. Authors: -------- Daniel J. Popowich %package tutorial License: The Apache Software License Summary: A tutorial on developing web applications using servlets Group: Documentation/Other Requires: %name = %version %description tutorial This package contains a tutorial on developing web applications using python-mpservlets. Authors: -------- Daniel J. Popowich %prep %setup -q -n mpservlets-%{version} %build %install python setup.py install --root=%{buildroot} \ --record-rpm=INSTALLED_FILES --prefix=%{_prefix} # # install documentation mkdir -p %{buildroot}/%_defaultdocdir/%{name} install -m644 README LICENSE %{buildroot}/%_defaultdocdir/%{name}/ cp -r Doc %{buildroot}/%_defaultdocdir/%{name}/ # # install the tutorial mkdir -p %{buildroot}/%{apache_serverroot}/%{name}-tutorial cp -r tutorial/* %{buildroot}/%{apache_serverroot}/%{name}-tutorial/ # # install an apache config mkdir -p %{buildroot}/%{apache_sysconfdir}/conf.d/ cat > %{buildroot}/%{apache_sysconfdir}/conf.d/%{name}-tutorial.conf << EOF Alias /mps_tutorial %{apache_serverroot}/%{name}-tutorial <Directory %{apache_serverroot}/%{name}-tutorial> <IfModule mod_python.c> SetHandler mod_python PythonHandler mod_python.servlet PythonDebug on </IfModule> order allow,deny allow from all </Directory> EOF %if 0%{?suse_version} > 1020 %fdupes -s %{buildroot}/%_defaultdocdir %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root) %dir %_defaultdocdir/%{name} %doc %_defaultdocdir/%{name}/README %doc %_defaultdocdir/%{name}/LICENSE %{py_sitedir}/* %files doc %defattr(-,root,root) %_defaultdocdir/%{name}/Doc %files tutorial %defattr(-,root,root) %config(noreplace) %{apache_sysconfdir}/conf.d/%{name}-tutorial.conf %{apache_serverroot}/%{name}-tutorial %changelog * Wed Aug 13 2008 lrupp@suse.de - initial version 1.1.6
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