Group :: Development/Python3
RPM: python3-module-watchdog
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name watchdog
%def_with check
Name: python3-module-%pypi_name
Version: 2.3.1
Release: alt1
Summary: Filesystem events monitoring
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.org/project/watchdog/
VCS: https://github.com/gorakhargosh/watchdog.git
BuildArch: noarch
Source: %name-%version.tar
Patch0: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
%if_with check
BuildRequires: python3(flaky)
BuildRequires: python3(pytest)
BuildRequires: python3(pytest_timeout)
%endif
%add_python3_req_skip AppKit FSEvents _watchdog_fsevents
Conflicts: python-module-watchdog
%description
Python API and shell utilities to monitor file system events.
%prep
%setup
%autopatch -p1
%build
%pyproject_build
%install
%pyproject_install
%check
export NO_SUDO=YES
%pyproject_run_pytest -ra
%files
%doc AUTHORS *.rst
%_bindir/watchmedo
%python3_sitelibdir/watchdog/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Todas as alterações você pod ver aqui
%define pypi_name watchdog
%def_with check
Name: python3-module-%pypi_name
Version: 2.3.1
Release: alt1
Summary: Filesystem events monitoring
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.org/project/watchdog/
VCS: https://github.com/gorakhargosh/watchdog.git
BuildArch: noarch
Source: %name-%version.tar
Patch0: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
%if_with check
BuildRequires: python3(flaky)
BuildRequires: python3(pytest)
BuildRequires: python3(pytest_timeout)
%endif
%add_python3_req_skip AppKit FSEvents _watchdog_fsevents
Conflicts: python-module-watchdog
%description
Python API and shell utilities to monitor file system events.
%prep
%setup
%autopatch -p1
%build
%pyproject_build
%install
%pyproject_install
%check
export NO_SUDO=YES
%pyproject_run_pytest -ra
%files
%doc AUTHORS *.rst
%_bindir/watchmedo
%python3_sitelibdir/watchdog/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Todas as alterações você pod ver aqui