diff --git a/python-hexdump.spec b/python-hexdump.spec index 0011e60..f78d592 100644 --- a/python-hexdump.spec +++ b/python-hexdump.spec @@ -51,18 +51,17 @@ cp %{SOURCE1} . %install %pyproject_install -# Copy the data directory ourselves to the correct location -%python_expand cp -av data %{buildroot}%{$python_sitelib} -# and remove the other +# this folder is needed only for tests rm -rf %{buildroot}%{_prefix}/data %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand $python %{buildroot}%{$python_sitelib}/hexdump.py --test +%python_expand $python hexdump.py --test %files %{python_files} -%{python_sitelib}/hexdump +%{python_sitelib}/hexdump.py %{python_sitelib}/hexdump-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/hexdump* %doc README.txt %license UNLICENSE