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
This commit is contained in:
Jan Matejek 2015-06-10 17:15:11 +00:00 committed by Git OBS Bridge
parent 216e03b9de
commit 08c864955f
2 changed files with 7 additions and 0 deletions

View File

@ -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 \

View File

@ -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