From c6addfe503e4d1fec1061343bac7559ba440cc2a752372e70ceaa167dbed2428 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 14 Jan 2013 09:31:20 +0000 Subject: [PATCH] - Simplify macro usage - Drop requires on "python(abi)", RPM does that automatically OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bsddb3?expand=0&rev=17 --- python-bsddb3.changes | 5 +++++ python-bsddb3.spec | 7 ++++--- python3-bsddb3.changes | 5 +++++ python3-bsddb3.spec | 1 - 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/python-bsddb3.changes b/python-bsddb3.changes index b306465..e07f34c 100644 --- a/python-bsddb3.changes +++ b/python-bsddb3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 14 09:29:26 UTC 2013 - saschpe@suse.de + +- Simplify macro usage + ------------------------------------------------------------------- Fri Jan 11 14:41:24 UTC 2013 - p.drouand@gmail.com diff --git a/python-bsddb3.spec b/python-bsddb3.spec index 7553957..abaa8fd 100644 --- a/python-bsddb3.spec +++ b/python-bsddb3.spec @@ -27,10 +27,11 @@ Source: http://pypi.python.org/packages/source/b/bsddb3/bsddb3-%{version BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: db-devel BuildRequires: python-devel -%if 0%{?suse_version} -%py_requires +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else +BuildArch: noarch %endif -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %description This module provides a nearly complete wrapping of the Oracle/Sleepycat C API diff --git a/python3-bsddb3.changes b/python3-bsddb3.changes index 310493c..8ac694e 100644 --- a/python3-bsddb3.changes +++ b/python3-bsddb3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 14 09:29:32 UTC 2013 - saschpe@suse.de + +- Drop requires on "python(abi)", RPM does that automatically + ------------------------------------------------------------------- Fri Jan 11 14:41:40 UTC 2013 - p.drouand@gmail.com diff --git a/python3-bsddb3.spec b/python3-bsddb3.spec index 90c3ce4..95044cc 100644 --- a/python3-bsddb3.spec +++ b/python3-bsddb3.spec @@ -29,7 +29,6 @@ BuildRequires: db-devel BuildRequires: python3 BuildRequires: python3-devel BuildRequires: python3-distribute -Requires: python(abi) = %{py3_ver} %description This module provides a nearly complete wrapping of the Oracle/Sleepycat C API