From c40e1411e0059edc9ddf17569bf414fcf91f818ed11f2da203d157e10de3803b Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 11 Jun 2023 11:26:21 +0000 Subject: [PATCH] Accepting request 1092185 from home:ecsos:python - Add %{?sle15_python_module_pythons} - Fix build error for Leap Generate doc only for Leap because it rise up an syntax error in version.py OBS-URL: https://build.opensuse.org/request/show/1092185 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-watchdog?expand=0&rev=43 --- python-watchdog.changes | 8 ++++++++ python-watchdog.spec | 9 ++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/python-watchdog.changes b/python-watchdog.changes index 3bb66dc..1295cf2 100644 --- a/python-watchdog.changes +++ b/python-watchdog.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sun Jun 11 09:16:06 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} +- Fix build error for Leap + Generate doc only for Leap because it rise up an syntax error in + version.py + ------------------------------------------------------------------- Mon Mar 20 12:17:42 UTC 2023 - Dirk Müller diff --git a/python-watchdog.spec b/python-watchdog.spec index b42da22..611b4c4 100644 --- a/python-watchdog.spec +++ b/python-watchdog.spec @@ -16,8 +16,8 @@ # -%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-watchdog Version: 3.0.0 Release: 0 @@ -45,11 +45,14 @@ BuildRequires: %{python_module pytest} %description Python API and shell utilities to monitor file system events. +# doc only for Tumblweed because Leap rise up an systax error in version.py +%if 0%{?suse_version} > 1500 %package doc Summary: Documentation and examples for %{name} %description doc This package contains documentation and examples for %{name}. +%endif %prep %setup -q -n watchdog-%{version} @@ -59,7 +62,9 @@ find src -name "*.py" | xargs sed -i -e '/^#!\//, 1d' %build %python_build +%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 @@ -86,7 +91,9 @@ export LANG=en_US.UTF-8 %{python_sitelib}/watchdog %{python_sitelib}/watchdog-%{version}-py%{python_version}.egg-info +%if 0%{?suse_version} > 1500 %files %{python_files doc} %doc docs/build/html +%endif %changelog