From 8d10b46cb5d7de6a8b17f2ce6614fe54451c0b8c13c7de764dd53304241d6d36 Mon Sep 17 00:00:00 2001 From: Todd R Date: Sun, 25 Nov 2012 11:21:45 +0000 Subject: [PATCH] Accepting request 142810 from devel:languages:python3 Removed openSUSE 11.4 spec file workarounds (forwarded request 142805 from TheBlackCat) OBS-URL: https://build.opensuse.org/request/show/142810 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-decorator?expand=0&rev=18 --- python3-decorator.changes | 5 +++++ python3-decorator.spec | 10 +--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/python3-decorator.changes b/python3-decorator.changes index 7c0b9ed..8c737a9 100644 --- a/python3-decorator.changes +++ b/python3-decorator.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 22 13:47:34 UTC 2012 - toddrme2178@gmail.com + +- Removed openSUSE 11.4 spec file workarounds + ------------------------------------------------------------------- Thu Jun 14 12:06:48 UTC 2012 - toddrme2178@gmail.com diff --git a/python3-decorator.spec b/python3-decorator.spec index d4a9621..5d0a98d 100644 --- a/python3-decorator.spec +++ b/python3-decorator.spec @@ -25,16 +25,11 @@ License: BSD-2-Clause Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/d/decorator/decorator-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python3 BuildRequires: python3-2to3 BuildRequires: python3-devel BuildRequires: python3-distribute BuildRequires: python3-nose -%if 0%{?suse_version} && 0%{?suse_version} <= 1140 -%{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%{!?py3_ver: %global py3_ver %(python3 -c "import sys; version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)} -%else -BuildRequires: python3-base -%endif Requires: python(abi) = %{py3_ver} BuildArch: noarch @@ -66,8 +61,5 @@ rm -rf %{buildroot}%{python3_sitelib}/__pycache__/ %doc README.txt %{python3_sitelib}/decorator.py* %{python3_sitelib}/decorator-%{version}-py%{py3_ver}.egg-info -%if 0%{?suse_version} <= 1140 -%dir %{_prefix}/lib/python%{py3_ver} -%endif %changelog