forked from pool/python-hexdump
Accepting request 1280663 from home:mcalabkova:branches:devel:languages:python
fix packaging OBS-URL: https://build.opensuse.org/request/show/1280663 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hexdump?expand=0&rev=8
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user