forked from pool/python-py3c
Accepting request 989335 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/989335 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-py3c?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 14 20:42:53 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Fix test build paths for setuptools 63
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Mar 20 20:59:07 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
Sat Mar 20 20:59:07 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-py3c
|
# spec file for package python-py3c
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -62,26 +62,27 @@ rm -r %{buildroot}%{_includedir}/*
|
|||||||
%check
|
%check
|
||||||
pushd test
|
pushd test
|
||||||
# Test C extension
|
# Test C extension
|
||||||
%python_exec setup.py build
|
%python_build
|
||||||
%{python_expand # copy the lib and run the test
|
%{python_expand # copy the lib and run the test
|
||||||
cp ./build/lib.linux*-%{$python_bin_suffix}/test_py3c* ./
|
cp ./build/lib.linux*/test_py3c* ./
|
||||||
$python __main__.py -v
|
$python __main__.py -v
|
||||||
|
rm -f test_py3c*.so
|
||||||
|
rm -rf build
|
||||||
}
|
}
|
||||||
# Test Cpp extension
|
# Test Cpp extension
|
||||||
rm -f test_py3c*.so
|
|
||||||
rm -rf build*
|
|
||||||
export TEST_USE_CPP="yes"
|
export TEST_USE_CPP="yes"
|
||||||
%python_exec setup.py build
|
%python_build
|
||||||
%{python_expand # copy the lib and run the test
|
%{python_expand # copy the lib and run the test
|
||||||
cp ./build/lib.linux*-%{$python_bin_suffix}/test_py3c* ./
|
cp ./build/lib.linux*/test_py3c* ./
|
||||||
$python __main__.py -v
|
$python __main__.py -v
|
||||||
|
rm -f test_py3c*.so
|
||||||
}
|
}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE.MIT
|
%license LICENSE.MIT
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/py3c-%{version}*-info
|
||||||
|
|
||||||
%files -n py3c-devel
|
%files -n py3c-devel
|
||||||
%{_includedir}/py3c.h
|
%{_includedir}/py3c.h
|
||||||
|
Reference in New Issue
Block a user