Move python dependency generation to mingw32/64_python3.attr in mingw-python3 package
This commit is contained in:
parent
03aa020c11
commit
21591ade5e
@ -359,6 +359,7 @@ echo ".so man1/pkgconf.1" > %{buildroot}%{_mandir}/man1/x86_64-w64-mingw32-pkg-c
|
||||
|
||||
%changelog
|
||||
* Thu Feb 10 2022 Sandro Mani <manisandro@gmail.com> - 131-1
|
||||
- Move python dependency generation to mingw32/64_python3.attr in mingw-python3 package
|
||||
- More generic mingw_pkg_name macros to also deduce mingw package name from native name
|
||||
|
||||
* Wed Feb 02 2022 Sandro Mani <manisandro@gmail.com> - 130-1
|
||||
|
15
mingw.req
15
mingw.req
@ -17,7 +17,6 @@ filelist=`sed "s/['\"]/\\\&/g"`
|
||||
|
||||
dlls=$(echo $filelist | tr '[:blank:]' '\n' | grep -Ei '\.(dll|exe|pyd)$')
|
||||
pkgconfig_files=$(echo $filelist | tr '[:blank:]' '\n' | grep -Ei '\.(pc)$')
|
||||
py3_files=$(echo $filelist | tr '[:blank:]' '\n' | grep -Ei '\.(pyd?)$')
|
||||
|
||||
for target in $targets; do
|
||||
dll_found=false
|
||||
@ -38,6 +37,7 @@ for target in $targets; do
|
||||
echo "${target}-crt"
|
||||
fi
|
||||
|
||||
# Add a dependency on $target-pkg-config if necessary
|
||||
pkgconfig_files_found=false
|
||||
for f in $pkgconfig_files; do
|
||||
if [[ $f =~ .*$host_triplet.* ]]; then
|
||||
@ -46,21 +46,8 @@ for target in $targets; do
|
||||
fi
|
||||
done
|
||||
|
||||
py3_files_found=false
|
||||
for f in $py3_files; do
|
||||
if [[ $f =~ .*$host_triplet.*lib/python3.* ]]; then
|
||||
py3_files_found=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Add a dependency on $target-pkg-config if necessary
|
||||
if [ $pkgconfig_files_found = true ]; then
|
||||
echo "${target}-pkg-config"
|
||||
fi
|
||||
|
||||
# Add a dependency on python if necessary
|
||||
if [ $py3_files_found = true ]; then
|
||||
echo "${target}-python3";
|
||||
fi
|
||||
done | sort -u
|
||||
|
Loading…
Reference in New Issue
Block a user