From 1944599260d34b49654bb7113fa3f117d882807be58db01e698bd72837106cfc Mon Sep 17 00:00:00 2001 From: Hans-Peter Jansen Date: Wed, 19 Apr 2017 05:57:22 +0000 Subject: [PATCH 1/2] Accepting request 489198 from home:TheBlackCat:branches:devel:languages:python - Implement single-spec version. OBS-URL: https://build.opensuse.org/request/show/489198 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PasteDeploy?expand=0&rev=18 --- python-PasteDeploy.changes | 5 +++++ python-PasteDeploy.spec | 29 ++++++++++++++--------------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/python-PasteDeploy.changes b/python-PasteDeploy.changes index dd02960..a18ee84 100644 --- a/python-PasteDeploy.changes +++ b/python-PasteDeploy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-PasteDeploy.spec b/python-PasteDeploy.spec index 3a600ad..fb821e1 100644 --- a/python-PasteDeploy.spec +++ b/python-PasteDeploy.spec @@ -1,7 +1,7 @@ # # spec file for package python-PasteDeploy # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -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: http://files.pythonhosted.org/packages/source/P/PasteDeploy/PasteDeploy-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} 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 From 339bb74523da7272b604b33e9fed93beaf7b217949bdd5096b6eb3f675b266d2 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Thu, 20 Apr 2017 05:38:39 +0000 Subject: [PATCH 2/2] Accepting request 489247 from home:frispete:python - fix source url OBS-URL: https://build.opensuse.org/request/show/489247 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PasteDeploy?expand=0&rev=19 --- python-PasteDeploy.changes | 5 +++++ python-PasteDeploy.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python-PasteDeploy.changes b/python-PasteDeploy.changes index a18ee84..53ca978 100644 --- a/python-PasteDeploy.changes +++ b/python-PasteDeploy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-PasteDeploy.spec b/python-PasteDeploy.spec index fb821e1..e98a6bd 100644 --- a/python-PasteDeploy.spec +++ b/python-PasteDeploy.spec @@ -1,7 +1,7 @@ # # spec file for package python-PasteDeploy # -# Copyright (c) 2017 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 @@ -24,12 +24,12 @@ Url: http://pythonpaste.org/deploy/ Summary: Load, configure, and compose WSGI applications and servers License: MIT Group: Development/Languages/Python -Source: http://files.pythonhosted.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: fdupes -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-Paste Requires: python-setuptools Provides: python-pastedeploy = %{version}