From 044a3ea1c92aec30a3cd9538df88fcc4f9530e0040acfd62d237c60782a589c1 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Wed, 15 Mar 2017 15:12:50 +0000 Subject: [PATCH] Accepting request 479711 from devel:languages:python:singlespec - update for singlespec OBS-URL: https://build.opensuse.org/request/show/479711 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wrapt?expand=0&rev=9 --- python-wrapt.changes | 5 +++++ python-wrapt.spec | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/python-wrapt.changes b/python-wrapt.changes index b743ecf..d6f270a 100644 --- a/python-wrapt.changes +++ b/python-wrapt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 27 13:54:07 UTC 2017 - jmatejek@suse.com + +- update for singlespec + ------------------------------------------------------------------- Thu Sep 1 05:30:31 UTC 2016 - tbechtold@suse.com diff --git a/python-wrapt.spec b/python-wrapt.spec index fee85c0..06de3e9 100644 --- a/python-wrapt.spec +++ b/python-wrapt.spec @@ -1,7 +1,7 @@ # # spec file for package python-wrapt # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2015 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,6 +17,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-wrapt Version: 1.10.8 Release: 0 @@ -25,12 +26,11 @@ License: BSD-2-Clause Group: Development/Languages/Python Url: https://github.com/GrahamDumpleton/wrapt Source: https://pypi.io/packages/source/w/wrapt/wrapt-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%endif +%python_subpackages %description The aim of the **wrapt** module is to provide a transparent object proxy @@ -60,12 +60,13 @@ For further information on the **wrapt** module see: %setup -q -n wrapt-%{version} %build -CFLAGS="%{optflags}" python setup.py build +export CFLAGS="%{optflags}" +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst %{python_sitearch}/*