Skip to content

Commit

Permalink
Fix packaging, and add a changelog message
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulder committed Mar 9, 2018
1 parent 7efcc7b commit d2b371e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
7 changes: 7 additions & 0 deletions package/yast2-python-bindings.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 9 16:35:09 UTC 2018 - dmulder@suse.com

- Adapt the bindings to allow modules that will run in both python2
or python3. Also fix a py3 binary mistakenly packaged with the py2
bindings package (bsc#1074696).

-------------------------------------------------------------------
Mon Jan 29 22:44:08 UTC 2018 - dmulder@suse.com

Expand Down
12 changes: 7 additions & 5 deletions package/yast2-python-bindings.spec
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
%define python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1))")

Name: yast2-python-bindings
Version: 4.0.2
Version: 4.0.3
Release: 0
Summary: Python3 bindings for the YaST platform
Summary: Python bindings for the YaST platform
License: GPL-2.0
Group: System/YaST

Expand Down Expand Up @@ -113,7 +113,9 @@ rm %{buildroot}/%{yast_plugindir}/*.la
%__install -m 0755 %{builddir}/python3/_ycp.so* %{buildroot}/%{python3_sitearch}/
%__ln_s %{python3_sitearch}/_ycp.so.0.0.0 %{buildroot}/%{python3_sitearch}/_ycp.so.0
%__ln_s %{python3_sitearch}/_ycp.so.0.0.0 %{buildroot}/%{python3_sitearch}/_ycp.so
%__install -m 0755 %{builddir}/python3/libpy2lang_python.so* %{buildroot}/%{yast_plugindir}/
%__install -m 0755 %{builddir}/python3/libpy2lang_python.so.0.0.0 %{buildroot}/%{yast_plugindir}/libpy2lang_python3.so.0.0.0
%__ln_s %{yast_plugindir}/libpy2lang_python3.so.0.0.0 %{buildroot}/%{yast_plugindir}/libpy2lang_python3.so
%__ln_s %{yast_plugindir}/libpy2lang_python3.so.0.0.0 %{buildroot}/%{yast_plugindir}/libpy2lang_python3.so.0
%endif

%if %{with_python3}
Expand All @@ -122,8 +124,8 @@ rm %{buildroot}/%{yast_plugindir}/*.la
%doc %{yast_docdir}
%{python3_sitelib}/*.py
%{python3_sitearch}/_ycp.so*
%{yast_plugindir}/libpy2lang_python.so.*
%{yast_plugindir}/libpy2lang_python.so
%{yast_plugindir}/libpy2lang_python3.so.*
%{yast_plugindir}/libpy2lang_python3.so
%endif

%files -n yast2-python-bindings
Expand Down

0 comments on commit d2b371e

Please sign in to comment.