adapt to python-3.3, which no longer looks at XXXmodule.so

OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=307
This commit is contained in:
Michael Schröder 2013-11-20 13:40:58 +00:00 committed by Git OBS Bridge
parent 1e0c9ffdb8
commit 0e4b13cd04
2 changed files with 8 additions and 1 deletions

View File

@ -59,7 +59,9 @@ mkdir -p %{buildroot}%{_prefix}/lib
%make_install
find %{buildroot} -not -type d -and -not -path %{buildroot}%{_libdir}/python3*/site-packages/rpm/\* -print0 | xargs -0 rm
pushd %{buildroot}/%{_libdir}/python3*/site-packages/rpm
rm -f _rpmmodule.a _rpmmodule.la
rm -f _rpm*.la _rpm*.a
# python3 no longer looks at "XXXmodule.so"
for i in _rpm*module.so ; do mv $i ${i%module.so}.so; done
python3 %{_libdir}/python3*/py_compile.py *.py
python3 -O %{_libdir}/python3*/py_compile.py *.py
popd

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Nov 20 14:41:34 CET 2013 - mls@suse.de
- adapt to python-3.3, which no longer looks at XXXmodule.so
-------------------------------------------------------------------
Fri Jul 12 15:36:43 CEST 2013 - mls@suse.de