Hello community,
here is the log from the commit of package python-vdirsyncer for
openSUSE:Factory checked in at 2020-05-19 14:48:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-vdirsyncer (Old)
and /work/SRC/openSUSE:Factory/.python-vdirsyncer.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-vdirsyncer"
Tue May 19 14:48:08 2020 rev:10 rq:806957 version:0.16.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-vdirsyncer/python-vdirsyncer.changes
2020-04-29 20:54:46.333326332 +0200
+++
/work/SRC/openSUSE:Factory/.python-vdirsyncer.new.2738/python-vdirsyncer.changes
2020-05-19 14:48:09.960029529 +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.V3Q7I1/_old 2020-05-19 14:48:10.732031179 +0200
+++ /var/tmp/diff_new_pack.V3Q7I1/_new 2020-05-19 14:48:10.736031187 +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