Hello community,

here is the log from the commit of package python-libsass for openSUSE:Factory 
checked in at 2020-05-26 17:22:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libsass (Old)
 and      /work/SRC/openSUSE:Factory/.python-libsass.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-libsass"

Tue May 26 17:22:29 2020 rev:6 rq:808657 version:0.19.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-libsass/python-libsass.changes    
2020-04-15 19:57:05.233689966 +0200
+++ /work/SRC/openSUSE:Factory/.python-libsass.new.2738/python-libsass.changes  
2020-05-26 17:22:52.756433873 +0200
@@ -1,0 +2,5 @@
+Mon May 25 06:50:36 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-libsass.spec ++++++
--- /var/tmp/diff_new_pack.fkecjz/_old  2020-05-26 17:22:53.468435403 +0200
+++ /var/tmp/diff_new_pack.fkecjz/_new  2020-05-26 17:22:53.472435412 +0200
@@ -36,6 +36,8 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-setuptools
 Requires:       python-six
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 # Both are providing sassc binary with different parameters
 Conflicts:      sassc
 # SECTION test requirements
@@ -58,14 +60,24 @@
 %install
 export SYSTEM_SASS=true
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/sassc
+%python_clone -a %{buildroot}%{_bindir}/pysassc
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %check
 %pytest_arch sasstests.py
 
+%post
+%python_install_alternative sassc
+%python_install_alternative pysassc
+
+%postun
+%python_uninstall_alternative sassc
+%python_uninstall_alternative pysassc
+
 %files %{python_files}
-%python3_only %{_bindir}/pysassc
-%python3_only %{_bindir}/sassc
+%python_alternative %{_bindir}/pysassc
+%python_alternative %{_bindir}/sassc
 %{python_sitearch}/*
 
 %changelog


Reply via email to