From 08c864955ffd534f8c46002d6d0012b507785d00d6b62e338fa54a9cb45fc41d Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Wed, 10 Jun 2015 17:15:11 +0000 Subject: [PATCH] Accepting request 311436 from home:dirkmueller:branches:devel:languages:python:Factory - add __python2 compatibility macro (used by Fedora) OBS-URL: https://build.opensuse.org/request/show/311436 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=184 --- macros.python | 2 ++ python-base.changes | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/macros.python b/macros.python index 6c6b478..99a22e2 100644 --- a/macros.python +++ b/macros.python @@ -3,6 +3,8 @@ %py_libdir %{py_prefix}/%{_lib}/python%{py_ver} %py_incdir %{py_prefix}/include/python%{py_ver} %py_sitedir %{py_libdir}/site-packages +%__python2 /usr/bin/python2 + %py_compile(O) \ find %1 -name '*.pyc' -exec rm -f {} \\; \ python -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1 \ diff --git a/python-base.changes b/python-base.changes index f5e91e7..893b4a7 100644 --- a/python-base.changes +++ b/python-base.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 10 11:19:58 UTC 2015 - dmueller@suse.com + +- add __python2 compatibility macro (used by Fedora) + ------------------------------------------------------------------- Sun May 24 14:36:37 UTC 2015 - michael@stroeder.com