Hello community,

here is the log from the commit of package python-vdirsyncer for 
openSUSE:Leap:15.2 checked in at 2020-05-23 16:07:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-vdirsyncer (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-vdirsyncer.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-vdirsyncer"

Sat May 23 16:07:13 2020 rev:13 rq:808176 version:0.16.7

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-vdirsyncer/python-vdirsyncer.changes    
2020-05-01 20:24:36.362944753 +0200
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-vdirsyncer.new.2738/python-vdirsyncer.changes
  2020-05-23 16:07:23.229048825 +0200
@@ -1,0 +2,5 @@
+Mon May 18 09:10:46 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-vdirsyncer.spec ++++++
--- /var/tmp/diff_new_pack.ot16Ra/_old  2020-05-23 16:07:23.581049580 +0200
+++ /var/tmp/diff_new_pack.ot16Ra/_new  2020-05-23 16:07:23.581049580 +0200
@@ -35,6 +35,7 @@
 Patch1:         python-vdirsyncer-shift-deadline.patch
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  fdupes
+BuildRequires:  pkgconfig
 BuildRequires:  python-rpm-macros
 BuildRequires:  systemd-rpm-macros
 BuildRequires:  pkgconfig(systemd)
@@ -48,6 +49,8 @@
 Requires:       python-pytz
 Requires:       python-requests >= 2.4.1
 Requires:       python-requests-toolbelt >= 0.4.0
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Recommends:     python-requests-oauthlib
 BuildArch:      noarch
 # SECTION test requirements
@@ -84,6 +87,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/vdirsyncer
 %python_expand %fdupes %{buildroot}/%{$python_sitelib}
 
 mkdir -p %{buildroot}%{_userunitdir}
@@ -95,10 +99,16 @@
 # test_verbosity - click changed syntax and returns different quotes
 %pytest -k 'not test_legacy_status and not test_open_graphical_browser and not 
test_verbosity'
 
+%post
+%python_install_alternative vdirsyncer
+
+%postun
+%python_uninstall_alternative vdirsyncer
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%python3_only %{_bindir}/vdirsyncer
+%python_alternative %{_bindir}/vdirsyncer
 %{python_sitelib}/*
 %{_userunitdir}/vdirsyncer.service
 %{_userunitdir}/vdirsyncer.timer


Reply via email to