File python-django-cpserver.spec of Package python-django-cpserver

# norootforbuild

Name:           python-django-cpserver
Version:        1.1
Release:        1
Summary:        Django runserver-like commands to run CherryPy web server
License:        BSD License
Group:          Development/Libraries/Python
Source:         django-cpserver-%{version}.tar.gz
URL:            http://hg.piranha.org.ua/cpserver
BuildRequires:  python-devel, python-setuptools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python-django
%{py_requires}
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif


%description
cpserver is a Django application, which is intended to solve simple, yet useful task: run your Django
project under CherryPy webserver. It contains two commands:
    - runcpdebug, which outputs information about each request (in format, similar to Apache's
      access_log). It is useful as replacement for regular runserver command.
    - runcpserver, which is quite silent (it only tells you configuration after starting). It is
      useful for running as backend for Nginx or HAProxy or whatever you'd like to use.

Author:
--------
    Alexander Solovyov <piranha@piranha.org.ua>


%prep
%setup -q -n django-cpserver-%{version}


%build
%{__python} setup.py build


%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES


%files -f INSTALLED_FILES
%defattr(-,root,root)
openSUSE Build Service is sponsored by