14
0
forked from pool/python-wrapt

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
This commit is contained in:
Jan Matejek
2017-03-15 15:12:50 +00:00
committed by Git OBS Bridge
parent 73d08d378a
commit 044a3ea1c9
2 changed files with 15 additions and 9 deletions

View File

@@ -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 Thu Sep 1 05:30:31 UTC 2016 - tbechtold@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-wrapt # 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. # Copyright (c) 2015 LISA GmbH, Bingen, Germany.
# #
# All modifications and additions to the file contributed by third parties # 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 Name: python-wrapt
Version: 1.10.8 Version: 1.10.8
Release: 0 Release: 0
@@ -25,12 +26,11 @@ License: BSD-2-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/GrahamDumpleton/wrapt Url: https://github.com/GrahamDumpleton/wrapt
Source: https://pypi.io/packages/source/w/wrapt/wrapt-%{version}.tar.gz Source: https://pypi.io/packages/source/w/wrapt/wrapt-%{version}.tar.gz
BuildRequires: python-devel BuildRequires: %{python_module devel}
BuildRequires: python-setuptools BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 %python_subpackages
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif
%description %description
The aim of the **wrapt** module is to provide a transparent object proxy 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} %setup -q -n wrapt-%{version}
%build %build
CFLAGS="%{optflags}" python setup.py build export CFLAGS="%{optflags}"
%python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc LICENSE README.rst %doc LICENSE README.rst
%{python_sitearch}/* %{python_sitearch}/*