Commit 1a99973e authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: improve onlyoffice install

parent a2ce44c4
......@@ -10,3 +10,25 @@ SPEC="$2"
REQUIRES="fonts-ttf-liberation, fonts-ttf-dejavu"
subst "s|^\(Name: .*\)$|# Converted from original package requires\nRequires:$REQUIRES\n\1|g" $SPEC
# ignore embedded libs
for i in $BUILDROOT/opt/onlyoffice/desktopeditors/lib* ; do
di=$(basename $i)
echo "Filter out $di ..."
subst "1i%filter_from_requires /^$di.*/d" $SPEC
done
epm assure patchelf || exit
for i in $BUILDROOT/opt/onlyoffice/desktopeditors/{libQt5Core.so.*,libicui18n.so,libicui18n.so.*,libicuuc.so,libicuuc.so.*} ; do
a= patchelf --set-rpath '$ORIGIN/' $i || continue
done
for i in $BUILDROOT/opt/onlyoffice/desktopeditors/converter/*.so ; do
a= patchelf --set-rpath '$ORIGIN/../' $i || continue
done
subst '1iAutoReq:no' $SPEC
subst '1iAutoProv:no' $SPEC
epm install --skip-installed bzlib fontconfig libalsa libcairo libcups libdrm libfreetype /usr/bin/perl zlib libXv glib2 libatk libcairo-gobject libEGL libgdk-pixbuf libgio libGL libgst-plugins1.0 libgstreamer1.0 libgtk+2 libgtk+3 libpango libpulseaudio libsqlite3 libX11 libxcb libxcb-render-util libXcomposite libXext libXfixes libxkbcommon libxkbcommon-x11 libXrender
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