forked from pool/python-watchdog
- Convert to libalternatives on SLE-16-based and newer systems
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-watchdog?expand=0&rev=55
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 26 09:33:09 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 13 02:42:43 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
Fri Jun 13 02:42:43 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-watchdog
|
# spec file for package python-watchdog
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,6 +17,11 @@
|
|||||||
|
|
||||||
|
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-watchdog
|
Name: python-watchdog
|
||||||
Version: 6.0.0
|
Version: 6.0.0
|
||||||
@@ -34,9 +39,14 @@ BuildRequires: python-rpm-macros
|
|||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
Requires: python-PyYAML >= 3.10
|
Requires: python-PyYAML >= 3.10
|
||||||
Requires: python-pathtools >= 0.1.1
|
Requires: python-pathtools >= 0.1.1
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
%endif
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pathtools >= 0.1.1}
|
BuildRequires: %{python_module pathtools >= 0.1.1}
|
||||||
BuildRequires: %{python_module pytest-timeout}
|
BuildRequires: %{python_module pytest-timeout}
|
||||||
@@ -90,6 +100,9 @@ export LANG=en_US.UTF-8
|
|||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative watchmedo
|
%python_uninstall_alternative watchmedo
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative watchmedo
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING LICENSE
|
%license COPYING LICENSE
|
||||||
%doc AUTHORS changelog.rst MANIFEST.in README.rst
|
%doc AUTHORS changelog.rst MANIFEST.in README.rst
|
||||||
|
|||||||
Reference in New Issue
Block a user