Accepting request 493094 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/493094
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Paste?expand=0&rev=14
This commit is contained in:
Dominique Leuenberger 2017-05-17 08:50:59 +00:00 committed by Git OBS Bridge
commit 2b86f933ba
2 changed files with 46 additions and 23 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri May 5 21:59:21 UTC 2017 - toddrme2178@gmail.com
- Fix Provides/Obsoletes.
-------------------------------------------------------------------
Wed Apr 19 02:23:02 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jun 3 15:31:42 UTC 2016 - tbechtold@suse.com Fri Jun 3 15:31:42 UTC 2016 - tbechtold@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-Paste # spec file for package python-Paste
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,6 +16,10 @@
# #
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-Paste Name: python-Paste
Version: 2.0.3 Version: 2.0.3
Release: 0 Release: 0
@ -23,27 +27,32 @@ Url: http://pythonpaste.org
Summary: Tools for using a Web Server Gateway Interface stack Summary: Tools for using a Web Server Gateway Interface stack
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Source: https://pypi.io/packages/source/P/Paste/Paste-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: fdupes
BuildRequires: python-setuptools BuildRequires: python-rpm-macros
# Documentation build requirements: BuildRequires: %{python_module devel}
BuildRequires: python-Sphinx BuildRequires: %{python_module setuptools}
# Test build requirements: BuildRequires: %{python_module flup}
BuildRequires: python-flup
BuildRequires: python-nose
BuildRequires: python-python-openid BuildRequires: python-python-openid
BuildRequires: python-six BuildRequires: python3-python3-openid
BuildRequires: %{python_module six > 1.4.0}
# Documentation build requirements:
BuildRequires: python3-Sphinx
# Test build requirements:
BuildRequires: %{python_module nose}
Requires: python-flup Requires: python-flup
Requires: python-python-openid
Requires: python-six > 1.4.0 Requires: python-six > 1.4.0
Provides: python-paste = %{version} %ifpython2
Obsoletes: python-paste < %{version} Requires: python-python-openid
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 Provides: %{oldpython}-paste = %{version}
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Obsoletes: %{oldpython}-paste < %{version}
%else
BuildArch: noarch
%endif %endif
%ifpython3
Requires: python3-python3-openid
%endif
BuildArch: noarch
%python_subpackages
%description %description
These provide several pieces of "middleware" (or filters) that can be nested These provide several pieces of "middleware" (or filters) that can be nested
@ -61,18 +70,22 @@ rm paste/httpserver.py.orig
rm paste/util/template.py.orig rm paste/util/template.py.orig
%build %build
python setup.py build %python_build
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with tests}
%check %check
python setup.py -q test %python_exec setup.py -q test
%endif
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc build/sphinx/html docs/license.txt %doc docs/license.txt
%doc build/sphinx/html/
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog