forked from pool/python-cymem
- Fix fdupes macro, files are installed to sitearch.
- Actually run the test suite. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cymem?expand=0&rev=9
This commit is contained in:
@@ -69,9 +69,16 @@ expires.
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
# Avoid the topdir, which means we can't import cymem.cymem
|
||||
tmpdir=$(mktemp -d)
|
||||
cp cymem/tests/* $tmpdir
|
||||
pushd $tmpdir
|
||||
%pytest_arch
|
||||
popd
|
||||
rm -r $tmpdir
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
|
||||
Reference in New Issue
Block a user