# Created by pyp2rpm-3.3.2 %global pypi_name filelock Name: python-%{pypi_name} Version: 3.0.12 Release: 1 Summary: A platform independent file lock Group: Development/Python License: Unlicense URL: https://github.com/benediktschmitt/py-filelock Source0: https://files.pythonhosted.org/packages/14/ec/6ee2168387ce0154632f856d5cc5592328e9cf93127c5c9aeca92c8c16cb/filelock-3.0.12.tar.gz BuildArch: noarch BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(python2) BuildRequires: python3dist(setuptools) BuildRequires: python2dist(setuptools) %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. %package -n python2-%{pypi_name} Summary: %{summary} %description -n python2-%{pypi_name} 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. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} 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} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %py2_build %install %py3_install %py2_install %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python2-%{pypi_name} %license LICENSE %doc README.md %{python2_sitelib}/%{pypi_name}.py* %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info