2011-07-08 13:21:12 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-gunicorn
|
|
|
|
#
|
|
|
|
# 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.
|
2011-07-09 14:12:53 +00:00
|
|
|
|
2011-07-08 13:21:12 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-07-09 14:12:53 +00:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
2011-07-08 13:21:12 +00:00
|
|
|
|
2011-07-06 10:36:04 +00:00
|
|
|
%define mod gunicorn
|
|
|
|
Name: python-gunicorn
|
2011-09-23 12:04:39 +00:00
|
|
|
Version: 0.13.3
|
2011-07-06 10:36:04 +00:00
|
|
|
Release: 1
|
|
|
|
License: MIT
|
2011-07-09 14:12:53 +00:00
|
|
|
Summary: WSGI HTTP Server for UNIX
|
2011-07-06 10:36:04 +00:00
|
|
|
Group: Productivity/Networking/Web/Servers
|
2011-09-23 12:04:39 +00:00
|
|
|
Source: http://pypi.python.org/packages/source/g/%{mod}/%{mod}-%{version}.tar.gz
|
2011-07-09 14:12:53 +00:00
|
|
|
BuildRequires: python-base
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
%if 0%{?suse_version} > 1120
|
2011-07-08 13:21:12 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2011-07-06 10:36:04 +00:00
|
|
|
Url: http://gunicorn.org
|
|
|
|
Provides: %{mod} = %{version}
|
2011-07-09 14:12:53 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%py_requires
|
2011-07-06 10:36:04 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork
|
|
|
|
worker model ported from Ruby's Unicorn_ project. The Gunicorn server is broadly
|
|
|
|
compatible with various web frameworks, simply implemented, light on server
|
|
|
|
resource usage, and fairly speedy.
|
|
|
|
|
|
|
|
%package doc
|
2011-07-09 14:12:53 +00:00
|
|
|
License: MIT
|
2011-07-06 10:36:04 +00:00
|
|
|
Summary: Documentation for %{mod}
|
|
|
|
Group: Documentation/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains Gunicorn documentation in reST and HTML formats.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{mod}-%{version}
|
|
|
|
|
|
|
|
%build
|
2011-07-09 14:12:53 +00:00
|
|
|
python setup.py build
|
2011-07-06 10:36:04 +00:00
|
|
|
|
|
|
|
%install
|
2011-07-09 14:12:53 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record=INSTALLED_FILES
|
2011-07-06 10:36:04 +00:00
|
|
|
|
|
|
|
%clean
|
2011-07-09 14:12:53 +00:00
|
|
|
rm -rf %{buildroot}
|
2011-07-06 10:36:04 +00:00
|
|
|
|
|
|
|
%files -f INSTALLED_FILES
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{python_sitelib}/gunicorn
|
|
|
|
%dir %{python_sitelib}/gunicorn/app
|
|
|
|
%dir %{python_sitelib}/gunicorn/http
|
|
|
|
%dir %{python_sitelib}/gunicorn/management
|
|
|
|
%dir %{python_sitelib}/gunicorn/management/commands
|
|
|
|
%dir %{python_sitelib}/gunicorn/workers
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc
|
|
|
|
|
|
|
|
%changelog
|