diff --git a/README.md b/README.md new file mode 100644 index 0000000..25ef30e --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# python-fastcache + +[Fastcache](https://github.com/pbrady/fastcache) contains a C implementation of +the python 3 `lru_cache`. It passes all tests in the standard library for +`functools.lru_cache`. diff --git a/python-fastcache.rpmlintrc b/python-fastcache.rpmlintrc deleted file mode 100644 index a38c518..0000000 --- a/python-fastcache.rpmlintrc +++ /dev/null @@ -1,5 +0,0 @@ -# THIS FILE IS FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON -# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors - -# The dictionary is missing some technical terms -addFilter(r'W: spelling-error .* (functools|lru)') diff --git a/python-fastcache.spec b/python-fastcache.spec index b8a4927..3d55189 100644 --- a/python-fastcache.spec +++ b/python-fastcache.spec @@ -11,9 +11,11 @@ Source0: https://github.com/pbrady/%{srcname}/archive/v%{version}/%{srcna BuildRequires: gcc BuildRequires: python3-devel +BuildRequires: %{py3_dist pip} BuildRequires: %{py3_dist pycmd} BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist setuptools} +BuildRequires: %{py3_dist wheel} %description This package contains a C implementation of the python 3 lru_cache. It @@ -30,10 +32,11 @@ passes all tests in the standard library for functools.lru_cache. %autosetup -n %{srcname}-%{version} %build -%py3_build "--define=WITH_THREAD" +export CFLAGS="%{build_cflags} -DWITH_THREAD" +%pyproject_wheel %install -%py3_install +%pyproject_install chmod 0755 %{buildroot}%{python3_sitearch}/%{srcname}/*.so %check @@ -51,7 +54,7 @@ cd - %doc CHANGELOG README.md %license LICENSE %{python3_sitearch}/%{srcname}/ -%{python3_sitearch}/%{srcname}*.egg-info/ +%{python3_sitearch}/%{srcname}*.dist-info/ %exclude %{python3_sitearch}/%{srcname}/tests %changelog