1
0
Marcel Gmür 2011-07-09 14:12:53 +00:00 committed by Git OBS Bridge
parent b4532b35c0
commit c167b6117b

View File

@ -11,29 +11,30 @@
# case the license is the MIT License). An "Open Source License" is a # case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?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))")} %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%define mod gunicorn %define mod gunicorn
Name: python-gunicorn Name: python-gunicorn
Version: 0.12.2 Version: 0.12.2
Release: 1 Release: 1
Summary: WSGI HTTP Server for UNIX
License: MIT License: MIT
Summary: WSGI HTTP Server for UNIX
Group: Productivity/Networking/Web/Servers Group: Productivity/Networking/Web/Servers
Source: http://pypi.python.org/packages/source/g/%{mod}/%{mod}-%{version}.tar.bz2 Source: http://pypi.python.org/packages/source/g/%{mod}/%{mod}-%{version}.tar.bz2
BuildRequires: python-setuptools python-base BuildRequires: python-base
%if %{suse_version} > 1120 BuildRequires: python-setuptools
%if 0%{?suse_version} > 1120
BuildArch: noarch BuildArch: noarch
%endif %endif
%py_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://gunicorn.org Url: http://gunicorn.org
Provides: %{mod} = %{version} Provides: %{mod} = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%description %description
Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork
@ -41,11 +42,10 @@ worker model ported from Ruby's Unicorn_ project. The Gunicorn server is broadly
compatible with various web frameworks, simply implemented, light on server compatible with various web frameworks, simply implemented, light on server
resource usage, and fairly speedy. resource usage, and fairly speedy.
%package doc %package doc
License: MIT
Summary: Documentation for %{mod} Summary: Documentation for %{mod}
Group: Documentation/Other Group: Documentation/Other
License: MIT
Requires: %{name} = %{version} Requires: %{name} = %{version}
%description doc %description doc
@ -55,13 +55,13 @@ This package contains Gunicorn documentation in reST and HTML formats.
%setup -q -n %{mod}-%{version} %setup -q -n %{mod}-%{version}
%build %build
%{__python} setup.py build python setup.py build
%install %install
%{__python} setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record=INSTALLED_FILES
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf %{buildroot}
%files -f INSTALLED_FILES %files -f INSTALLED_FILES
%defattr(-,root,root) %defattr(-,root,root)