%global pypi_name filelock Name: python-%{pypi_name} Version: 3.20.0 Release: 1 Summary: A platform independent file lock Group: Development/Python License: Unlicense URL: https://pypi.org/project/filelock Source0: https://files.pythonhosted.org/packages/source/f/filelock/filelock-%{version}.tar.gz BuildArch: noarch BuildRequires: pkgconfig(python) BuildRequires: python-pip BuildRequires: python%{pyver}dist(wheel) BuildRequires: python%{pyver}dist(setuptools) BuildRequires: python%{pyver}dist(setuptools-scm) BuildRequires: python%{pyver}dist(tomli) BuildRequires: python%{pyver}dist(hatchling) BuildRequires: python%{pyver}dist(hatch-vcs) %rename python3-%{pypi_name} %description This package contains a single module, which implements a platform independent file locking mechanism for Python. The lock includes a lock counter and is thread safe. This means, when locking the same lock object twice, it will not block. %prep %autosetup -n %{pypi_name}-%{version} %build mkdir wheels pip wheel --wheel-dir wheels --no-deps --no-build-isolation --verbose . %install pip install --root=%{buildroot} --no-deps --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links wheels wheels/*.whl %files %license LICENSE %doc README.md %{python_sitelib}/%{pypi_name} %{python_sitelib}/%{pypi_name}-%{version}*info