Hello community,

here is the log from the commit of package python-dkimpy for openSUSE:Factory 
checked in at 2020-05-28 09:18:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dkimpy (Old)
 and      /work/SRC/openSUSE:Factory/.python-dkimpy.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dkimpy"

Thu May 28 09:18:02 2020 rev:3 rq:809415 version:1.0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dkimpy/python-dkimpy.changes      
2020-04-04 12:25:45.723950932 +0200
+++ /work/SRC/openSUSE:Factory/.python-dkimpy.new.3606/python-dkimpy.changes    
2020-05-28 09:18:05.305072601 +0200
@@ -1,0 +2,5 @@
+Tue May 26 07:22:41 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-dkimpy.spec ++++++
--- /var/tmp/diff_new_pack.k4GlXm/_old  2020-05-28 09:18:05.929074073 +0200
+++ /var/tmp/diff_new_pack.k4GlXm/_new  2020-05-28 09:18:05.933074083 +0200
@@ -17,6 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define commands arcsign arcverify dkimsign dkimverify dknewkey
 %define skip_python2 1
 Name:           python-dkimpy
 Version:        1.0.3
@@ -33,6 +34,8 @@
 Requires:       python-authres
 Requires:       python-dnspython >= 1.16
 Requires:       python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module PyNaCl}
@@ -54,20 +57,38 @@
 
 %install
 %python_install
+for c in %{commands}; do
+  %python_clone -a %{buildroot}%{_mandir}/man1/$c.1
+  %python_clone -a %{buildroot}%{_bindir}/$c
+done
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest
 
+%post
+for c in %{commands}; do
+  %python_install_alternative $c $c.1
+done
+
+%postun
+for c in %{commands}; do
+  %python_uninstall_alternative $c
+done
+
 %files %{python_files}
 %doc ChangeLog README.md
 %license LICENSE
-%python3_only %{_bindir}/arcsign
-%python3_only %{_bindir}/arcverify
-%python3_only %{_bindir}/dkimsign
-%python3_only %{_bindir}/dkimverify
-%python3_only %{_bindir}/dknewkey
+%python_alternative %{_bindir}/arcsign
+%python_alternative %{_bindir}/arcverify
+%python_alternative %{_bindir}/dkimsign
+%python_alternative %{_bindir}/dkimverify
+%python_alternative %{_bindir}/dknewkey
+%python_alternative %{_mandir}/man1/arcsign.1%{?ext_man}
+%python_alternative %{_mandir}/man1/arcverify.1%{?ext_man}
+%python_alternative %{_mandir}/man1/dkimsign.1%{?ext_man}
+%python_alternative %{_mandir}/man1/dkimverify.1%{?ext_man}
+%python_alternative %{_mandir}/man1/dknewkey.1%{?ext_man}
 %{python_sitelib}/*
-%python3_only %{_mandir}/man1/*.1*
 
 %changelog


Reply via email to