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:
committed by
Git OBS Bridge
parent
73d08d378a
commit
044a3ea1c9
@@ -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}/*
|
||||
|
Reference in New Issue
Block a user