Accepting request 621126 from zypp:Head

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/621126
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zypp-plugin?expand=0&rev=15
This commit is contained in:
Dominique Leuenberger 2018-07-13 08:15:00 +00:00 committed by Git OBS Bridge
commit 8418014cec
3 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:576569ae511e577d21c56628d4966a69dfbaaa2bd2128356a10456cae70061e5 oid sha256:10eafc38a9fd5a9688e56ad38193b591d6301232d22dff78c106a42092b402e7
size 4709 size 4727

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 13 14:51:18 CET 2018 - ma@suse.com
- Provide python3-zypp-plugin down to SLE12 (bsc#1081596)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 19 15:53:29 CET 2018 - ma@suse.com Mon Feb 19 15:53:29 CET 2018 - ma@suse.com

View File

@ -43,7 +43,7 @@ Provides: zypp-plugin-python = %{version}-%{release}
### SLE-12* and even older ### SLE-12* and even older
%else %else
%define have_python2 1 %define have_python2 1
%if ( 0%{?suse_version} == 1315 && 0%{?sle_version} == 120300 ) %if ( 0%{?suse_version} == 1315 )
%define have_python3 1 %define have_python3 1
%else %else
%define have_python3 0 %define have_python3 0
@ -64,12 +64,12 @@ and implementing the commands you want to respond to as python methods.
%install %install
%if 0%{?have_python2} %if 0%{?have_python2}
mkdir -p %{buildroot}%{python_sitelib} mkdir -p %{buildroot}%{python_sitelib}
install python/zypp_plugin.py %{buildroot}%{python_sitelib}/zypp_plugin.py install -m 0644 python/zypp_plugin.py %{buildroot}%{python_sitelib}/zypp_plugin.py
%py_compile -O %{buildroot}/%{python_sitelib} %py_compile -O %{buildroot}/%{python_sitelib}
%endif %endif
%if 0%{?have_python3} %if 0%{?have_python3}
mkdir -p %{buildroot}%{python3_sitelib} mkdir -p %{buildroot}%{python3_sitelib}
install python/zypp_plugin.py %{buildroot}%{python3_sitelib}/zypp_plugin.py install -m 0644 python/zypp_plugin.py %{buildroot}%{python3_sitelib}/zypp_plugin.py
%py3_compile -O %{buildroot}/%{python3_sitelib} %py3_compile -O %{buildroot}/%{python3_sitelib}
%endif %endif