Accepting request 489510 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/489510
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PasteDeploy?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2017-05-03 13:55:24 +00:00 committed by Git OBS Bridge
commit 671f46871f
2 changed files with 24 additions and 15 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Apr 19 08:16:47 UTC 2017 - hpj@urpla.net
- fix source url
-------------------------------------------------------------------
Wed Apr 19 02:26:16 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version.
-------------------------------------------------------------------
Fri Feb 6 10:54:44 UTC 2015 - hpj@urpla.net

View File

@ -1,7 +1,7 @@
#
# spec file for package python-PasteDeploy
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-PasteDeploy
Version: 1.5.2
Release: 0
@ -23,21 +24,18 @@ Url: http://pythonpaste.org/deploy/
Summary: Load, configure, and compose WSGI applications and servers
License: MIT
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/P/PasteDeploy/PasteDeploy-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/P/PasteDeploy/PasteDeploy-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Paste
Requires: python-setuptools
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%endif
Provides: python-pastedeploy = %{version}
Obsoletes: python-pastedeploy < %{version}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
BuildArch: noarch
%python_subpackages
%description
This tool provides code to load WSGI applications and servers from URIs; these
@ -48,14 +46,15 @@ provides commands to serve applications based on this configuration file.
%setup -q -n PasteDeploy-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc docs/*
%doc README docs/license.txt docs/news.txt docs/index.txt
%{python_sitelib}/*
%changelog