From 3c0ef127f4f72feb941f9207229b0a6a543f160ae32f3401e7d821ee7940f78a Mon Sep 17 00:00:00 2001 From: ZYpp Developers Date: Wed, 24 Apr 2013 09:39:51 +0000 Subject: [PATCH] Update to last successful build OBS-URL: https://build.opensuse.org/package/show/zypp:Head/zypp-plugin?expand=0&rev=10 --- zypp-plugin-0.3.tar.bz2 | 4 ++-- zypp-plugin.spec | 14 ++++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/zypp-plugin-0.3.tar.bz2 b/zypp-plugin-0.3.tar.bz2 index 0128640..41630bf 100644 --- a/zypp-plugin-0.3.tar.bz2 +++ b/zypp-plugin-0.3.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a2fb665be74035aa08d919c6e2d8b3877fe4b6ced9761db117c747ad1141f2e2 -size 3923 +oid sha256:3239d4b9dffc913601fabfcde75ef1f0bc07d720d4dc44614d8b100c68e2b5ed +size 4049 diff --git a/zypp-plugin.spec b/zypp-plugin.spec index d56eb50..07862c2 100644 --- a/zypp-plugin.spec +++ b/zypp-plugin.spec @@ -30,7 +30,7 @@ Source0: %{name}-%{version}.tar.bz2 BuildRequires: python-devel Requires: python -%{?!py_sitedir: %global py_sitedir %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib()')} +%{?!py_sitearch: %global py_sitearch %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(True)')} %description Empty main package. Helper for different languages reside in subpackages. @@ -50,9 +50,15 @@ and implementing the commands you want to respond to as python methods. %build %install -%{__mkdir_p} %{buildroot}%{py_sitedir} -%{__install} python/zypp_plugin.py %{buildroot}%{py_sitedir}/zypp_plugin.py +%{__mkdir_p} %{buildroot}%{py_sitearch} +%{__install} python/zypp_plugin.py %{buildroot}%{py_sitearch}/zypp_plugin.py +%if 0%{?suse_version} +pushd $RPM_BUILD_ROOT/%{python_sitearch} +python %py_libdir/py_compile.py *.py +python -O %py_libdir/py_compile.py *.py +popd +%endif %files python %defattr(-,root,root) -%{py_sitedir}/zypp_plugin.py +%{py_sitearch}/*