File python-cherrypy.spec of Package python-cherrypy

#
# spec file for package python-cherrypy
#
# Copyright (c) 2011 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 CherryPy

Name:           python-cherrypy
Url:            http://www.cherrypy.org/
Summary:        A pythonic, object-oriented web development framework
Version:        3.1.1
Release:        1
License:        BSD
Group:          Development/Libraries/Python
Source:         %{modname}-%{version}.tar.bz2
Patch:          py26-formatwarning.diff
Patch1:         py26-deprecations.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{py_requires}
BuildRequires:  python-devel
BuildRequires:  dos2unix

%description
CherryPy is a pythonic, object-oriented web development framework.

CherryPy allows developers to build web applications in much the same way they
would build any other object-oriented Python program. This usually results in
smaller source code developed in less time.

CherryPy is now more than three years old and it is has proven very fast and
stable. It is being used in production by many sites, from the simplest ones
to the most demanding ones.

Oh, and most importantly: CherryPy is fun to work with :-)

Authors:
--------
    CherryPy Team <team@cherrypy.org>
    Remi Delon
    Carlos Ribeiro
    Remco Boerma
    Jesir Vargas
    Pawel Maczewski
    Peter Hunt
    Elvelind Grandin <elvelind@gmail.com>
    Sylvain Hellegouarch
    Michael Robinson
    Robert Brewer
    John P. Speno

%prep
%setup -q -n %{modname}-%{version}
%patch -p1
%patch1 -p1
dos2unix cherrypy/tutorial/* README.txt

%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc cherrypy/tutorial README.txt

%changelog
openSUSE Build Service is sponsored by