Hello community,
here is the log from the commit of package python-restructuredtext_lint for
openSUSE:Factory checked in at 2020-05-19 14:57:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-restructuredtext_lint (Old)
and /work/SRC/openSUSE:Factory/.python-restructuredtext_lint.new.2738
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-restructuredtext_lint"
Tue May 19 14:57:39 2020 rev:6 rq:807275 version:1.3.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-restructuredtext_lint/python-restructuredtext_lint.changes
2019-03-26 15:44:22.744152859 +0100
+++
/work/SRC/openSUSE:Factory/.python-restructuredtext_lint.new.2738/python-restructuredtext_lint.changes
2020-05-19 14:57:42.881298283 +0200
@@ -1,0 +2,5 @@
+Tue May 19 09:27:43 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-restructuredtext_lint.spec ++++++
--- /var/tmp/diff_new_pack.Rd24Jf/_old 2020-05-19 14:57:45.153303321 +0200
+++ /var/tmp/diff_new_pack.Rd24Jf/_new 2020-05-19 14:57:45.157303330 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-restructuredtext_lint
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,17 +23,18 @@
Summary: Linter for reStructuredText
License: Unlicense
Group: Development/Languages/Python
-Url: https://github.com/twolfson/restructuredtext-lint
+URL: https://github.com/twolfson/restructuredtext-lint
Source:
https://files.pythonhosted.org/packages/source/r/restructuredtext_lint/restructuredtext_lint-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires: python-docutils >= 0.11
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module docutils >= 0.11}
# /SECTION
-Requires: python-docutils >= 0.11
-BuildArch: noarch
-
%python_subpackages
%description
@@ -52,6 +53,8 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/rst-lint
+%python_clone -a %{buildroot}%{_bindir}/restructuredtext-lint
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -59,11 +62,19 @@
$python -m unittest discover
}
+%post
+%python_install_alternative rst-lint
+%python_install_alternative restructuredtext-lint
+
+%postun
+%python_uninstall_alternative rst-lint
+%python_uninstall_alternative restructuredtext-lint
+
%files %{python_files}
%doc CHANGELOG.rst README.rst
%license UNLICENSE
-%python3_only %{_bindir}/restructuredtext-lint
-%python3_only %{_bindir}/rst-lint
+%python_alternative %{_bindir}/restructuredtext-lint
+%python_alternative %{_bindir}/rst-lint
%{python_sitelib}/*
%changelog