Hello community,
here is the log from the commit of package python-mautrix-telegram for
openSUSE:Factory checked in at 2020-05-26 17:23:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mautrix-telegram (Old)
and /work/SRC/openSUSE:Factory/.python-mautrix-telegram.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mautrix-telegram"
Tue May 26 17:23:16 2020 rev:3 rq:808680 version:0.7.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-mautrix-telegram/python-mautrix-telegram.changes
2020-04-15 19:57:20.317701290 +0200
+++
/work/SRC/openSUSE:Factory/.python-mautrix-telegram.new.2738/python-mautrix-telegram.changes
2020-05-26 17:23:20.340493174 +0200
@@ -1,0 +2,5 @@
+Mon May 25 06:50:45 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-mautrix-telegram.spec ++++++
--- /var/tmp/diff_new_pack.kqFVEG/_old 2020-05-26 17:23:20.884494343 +0200
+++ /var/tmp/diff_new_pack.kqFVEG/_new 2020-05-26 17:23:20.884494343 +0200
@@ -38,7 +38,6 @@
BuildRequires: systemd-rpm-macros
Requires: python-SQLAlchemy >= 1.2.3
Requires: python-Telethon >= 1.10
-Requires: python-Telethon >= 1.10
Requires: python-aiohttp >= 3.0.1
Requires: python-alembic >= 1.0.0
Requires: python-commonmark >= 0.8.1
@@ -46,6 +45,8 @@
Requires: python-python-magic >= 0.4.15
Requires: python-ruamel.yaml >= 0.15.35
Requires: python-telethon-session-sqlalchemy >= 0.2.14
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
Recommends: python-Brotli
Recommends: python-Pillow >= 4.3.0
Recommends: python-aiodns
@@ -59,7 +60,6 @@
# SECTION test requirements
BuildRequires: %{python_module SQLAlchemy >= 1.2.3}
BuildRequires: %{python_module Telethon >= 1.10}
-BuildRequires: %{python_module Telethon >= 1.10}
BuildRequires: %{python_module aiohttp >= 3.0.1}
BuildRequires: %{python_module alembic >= 1.0.0}
BuildRequires: %{python_module commonmark >= 0.8.1}
@@ -93,6 +93,7 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/mautrix-telegram
%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -115,6 +116,12 @@
%check
%pytest
+%post
+%python_install_alternative mautrix-telegram
+
+%postun
+%python_uninstall_alternative mautrix-telegram
+
%files -n mautrix-telegram-server
%{_sysconfdir}/mautrix-telegram/
%config %{_sysconfdir}/mautrix-telegram/example-config.yaml
@@ -129,7 +136,7 @@
%files %{python_files}
%license LICENSE
%doc README.md
-%python3_only %{_bindir}/mautrix-telegram
+%python_alternative %{_bindir}/mautrix-telegram
%{python_sitelib}/*
%changelog