Hello community,

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

Package is "python-ldaptor"

Tue May 26 17:23:33 2020 rev:3 rq:808687 version:19.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ldaptor/python-ldaptor.changes    
2020-04-15 19:56:54.437681861 +0200
+++ /work/SRC/openSUSE:Factory/.python-ldaptor.new.2738/python-ldaptor.changes  
2020-05-26 17:23:36.268527417 +0200
@@ -1,0 +2,5 @@
+Mon May 25 06:50:34 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-ldaptor.spec ++++++
--- /var/tmp/diff_new_pack.A3sBO6/_old  2020-05-26 17:23:37.176529368 +0200
+++ /var/tmp/diff_new_pack.A3sBO6/_new  2020-05-26 17:23:37.184529386 +0200
@@ -16,6 +16,7 @@
 #
 
 
+%define binaries ldaptor-fetchschema ldaptor-find-server ldaptor-getfreenumber 
ldaptor-ldap2dhcpconf ldaptor-ldap2dnszones ldaptor-ldap2maradns 
ldaptor-ldap2passwd ldaptor-ldap2pdns ldaptor-ldifdiff ldaptor-ldifpatch 
ldaptor-namingcontexts ldaptor-passwd ldaptor-rename ldaptor-search 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-ldaptor
 Version:        19.1.0
@@ -37,6 +38,8 @@
 Requires:       python-passlib
 Requires:       python-pyparsing
 Requires:       python-zope.interface
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -57,15 +60,28 @@
 
 %install
 %python_install
+for b in %{binaries}; do
+  %python_clone -a %{buildroot}%{_bindir}/$b
+done
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest
 
+%post
+for b in %{binaries}; do
+  %python_install_alternative $b
+done
+
+%postun
+for b in %{binaries}; do
+  %python_uninstall_alternative $b
+done
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE
 %{python_sitelib}/*
-%python3_only %{_bindir}/ldaptor-*
+%python_alternative %{_bindir}/ldaptor-*
 
 %changelog


Reply via email to