in the check section,using the cp -a instead of install

This commit is contained in:
shirely16 2021-06-21 11:09:03 +08:00
parent f06c2897ac
commit e558bd9ec9

View File

@ -5,7 +5,7 @@
Name: python-pillow Name: python-pillow
Version: 8.1.1 Version: 8.1.1
Release: 3 Release: 4
Summary: Python image processing library Summary: Python image processing library
License: MIT License: MIT
URL: http://python-pillow.github.io/ URL: http://python-pillow.github.io/
@ -108,7 +108,7 @@ install -m 644 src/libImaging/*.h %{buildroot}/%{py3_incdir}/Imaging
%check %check
ln -s $PWD/Images $PWD/build/%py3_libbuilddir/Images ln -s $PWD/Images $PWD/build/%py3_libbuilddir/Images
cp -R $PWD/Tests $PWD/build/%py3_libbuilddir/Tests cp -R $PWD/Tests $PWD/build/%py3_libbuilddir/Tests
install $PWD/selftest.py $PWD/build/%py3_libbuilddir/selftest.py cp -a $PWD/selftest.py $PWD/build/%py3_libbuilddir/selftest.py
pushd build/%py3_libbuilddir pushd build/%py3_libbuilddir
PYTHONPATH=$PWD %{__python3} selftest.py PYTHONPATH=$PWD %{__python3} selftest.py
popd popd
@ -146,6 +146,9 @@ popd
%{python3_sitearch}/PIL/__pycache__/ImageQt* %{python3_sitearch}/PIL/__pycache__/ImageQt*
%changelog %changelog
* Mon Jun 21 2021 hanhui <hanhui15@huawei.com> - 8.1.1-4
- DESC: in the check section,using the cp -a instead of install
* Mon Jun 15 2021 hanhui <hanhui15@huawei.com> - 8.1.1-3 * Mon Jun 15 2021 hanhui <hanhui15@huawei.com> - 8.1.1-3
- DESC: add buildrequire gcc - DESC: add buildrequire gcc