Let qt5_install_tests macro to handle mangling python shebangs
Resolves: bz#1969433
This commit is contained in:
parent
e0e5006340
commit
239c811977
37
macros.qt5
37
macros.qt5
@ -38,19 +38,24 @@
|
|||||||
make sub-tests %{?_smp_mflags} -k ||:
|
make sub-tests %{?_smp_mflags} -k ||:
|
||||||
|
|
||||||
%qt5_install_tests \
|
%qt5_install_tests \
|
||||||
mkdir -p %{buildroot}%{_qt5_libdir}/qt5 \
|
mkdir -p %{buildroot}%{_qt5_libdir}/qt5 \
|
||||||
find ./tests -not -path '*/\.*' -type d | while read LINE \
|
find ./tests -not -path '*/\.*' -type d | while read LINE \
|
||||||
do \
|
do \
|
||||||
mkdir -p "%{buildroot}%{_qt5_libdir}/qt5/$LINE" \
|
mkdir -p "%{buildroot}%{_qt5_libdir}/qt5/$LINE" \
|
||||||
done \
|
done \
|
||||||
find ./tests -not -path '*/\.*' \\\
|
find ./tests -not -path '*/\.*' \\\
|
||||||
-not -name '*.h' \\\
|
-not -name '*.h' \\\
|
||||||
-not -name '*.cpp' \\\
|
-not -name '*.cpp' \\\
|
||||||
-not -name '*.pro' \\\
|
-not -name '*.pro' \\\
|
||||||
-not -name 'uic_wrapper.sh' \\\
|
-not -name 'uic_wrapper.sh' \\\
|
||||||
-not -name 'target_wrapper.sh' \\\
|
-not -name 'target_wrapper.sh' \\\
|
||||||
-not -name 'Makefile' \\\
|
-not -name 'Makefile' \\\
|
||||||
-type f | while read LINE \
|
-type f | while read LINE \
|
||||||
do \
|
do \
|
||||||
cp -r --parents "$LINE" %{buildroot}%{_qt5_libdir}/qt5/ \
|
if grep --quiet "#\\!/usr/bin/env\\ python\\|#\\!/usr/bin/python" "$LINE" \
|
||||||
done \
|
then \
|
||||||
|
sed -i s@\\/usr\\/bin\\/python@\\/usr\\/bin\\/python3@ "$LINE" \
|
||||||
|
sed -i s@\\/usr\\/bin\\/env\\ python@\\/usr\\/bin\\/python3@ "$LINE" \
|
||||||
|
fi \
|
||||||
|
cp -r --parents "$LINE" %{buildroot}%{_qt5_libdir}/qt5/ \
|
||||||
|
done \
|
||||||
|
6
qt5.spec
6
qt5.spec
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: qt5
|
Name: qt5
|
||||||
Version: 5.15.2
|
Version: 5.15.2
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Qt5 meta package
|
Summary: Qt5 meta package
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: https://getfedora.org/
|
URL: https://getfedora.org/
|
||||||
@ -141,6 +141,10 @@ echo "- Qt5 devel meta package" > %{buildroot}%{_docdir}/qt5-devel/README
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 10 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-5
|
||||||
|
- Let qt5_install_tests macro to handle mangling python shebangs
|
||||||
|
Resolves: bz#1969433
|
||||||
|
|
||||||
* Tue Jun 08 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-4
|
* Tue Jun 08 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-4
|
||||||
- Add support for building upstream tests for gating
|
- Add support for building upstream tests for gating
|
||||||
Resolves: bz#1969433
|
Resolves: bz#1969433
|
||||||
|
Loading…
Reference in New Issue
Block a user