forked from pool/python-watchdog
Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 736f415171 |
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Switch to pyproject macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 7 09:57:40 UTC 2025 - Adrian Schröter <adrian@suse.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,6 +17,11 @@
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-watchdog
|
||||
Version: 6.0.0
|
||||
@@ -26,15 +31,22 @@ License: Apache-2.0
|
||||
URL: https://github.com/gorakhargosh/watchdog
|
||||
Source: https://files.pythonhosted.org/packages/source/w/watchdog/watchdog-%{version}.tar.gz
|
||||
BuildRequires: %{python_module flaky}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-Sphinx
|
||||
Requires: python-PyYAML >= 3.10
|
||||
Requires: python-pathtools >= 0.1.1
|
||||
BuildArch: noarch
|
||||
%if %{with libalternatives}
|
||||
BuildRequires: alts
|
||||
Requires: alts
|
||||
%else
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pathtools >= 0.1.1}
|
||||
BuildRequires: %{python_module pytest-timeout}
|
||||
@@ -64,13 +76,13 @@ find src -name "*.py" | xargs sed -i -e '/^#!\//, 1d'
|
||||
sed -i '/^[[:space:]]\+--cov/d' pyproject.toml
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
%if 0%{?suse_version} > 1500
|
||||
cd docs && make html && rm -r build/html/.buildinfo build/html/objects.inv # Build HTML docs
|
||||
%endif
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/watchmedo
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
@@ -88,12 +100,15 @@ export LANG=en_US.UTF-8
|
||||
%postun
|
||||
%python_uninstall_alternative watchmedo
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative watchmedo
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING LICENSE
|
||||
%doc AUTHORS changelog.rst MANIFEST.in README.rst
|
||||
%python_alternative %{_bindir}/watchmedo
|
||||
%{python_sitelib}/watchdog
|
||||
%{python_sitelib}/watchdog-%{version}-py%{python_version}.egg-info
|
||||
%{python_sitelib}/watchdog-%{version}.dist-info
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%files %{python_files doc}
|
||||
|
||||
Reference in New Issue
Block a user