Commit 5f14496a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack zoom: drop embedded libs from reqs

parent 6a5a6db3
......@@ -7,9 +7,17 @@ SPEC="$2"
# TODO: s/freetype/libfreetype/
# see https://bugzilla.altlinux.org/show_bug.cgi?id=38892
test -f /lib64/ld-linux-x86-64.so.2 && exit
if [ ! -f /lib64/ld-linux-x86-64.so.2 ] ; then
# drop x86_64 req from 32 bit binary
sed -E -i -e "s@/lib64/ld-linux-x86-64.so.2@/lib/ld-linux.so.2\x0________@" $BUILDROOT/opt/zoom/libQt5Core.so.*
fi
# drop x86_64 req from 32 bit binary
sed -E -i -e "s@/lib64/ld-linux-x86-64.so.2@/lib/ld-linux.so.2\x0________@" $BUILDROOT/opt/zoom/libQt5Core.so.*
# TODO: add all subdirs
subst 's|%files|%files\n%dir /opt/zoom|' $SPEC
subst '1i%filter_from_requires /^mesa-dri-drivers(x86-32)/d' $SPEC
# ignore embedded libs
for i in libQt5 libav libfdkaac libmpg123 libquazip libturbojpeg libicu ; do
subst "1i%filter_from_requires /^$i.*/d" $SPEC
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment