From 68e4f986648b3b2ef7d7912f5328e3d7a2adeda3 Mon Sep 17 00:00:00 2001 From: Artem Baleevskih Date: Sat, 13 Jun 2026 23:47:23 +0300 Subject: [PATCH] epm play wps-office: rename scripts for consistent sorting Rename WPS Office play scripts to the wps-office naming style so related scripts sort together in play.d. --- play.d/{wpsoffice-cn.sh => wps-office-cn.sh} | 3 ++- play.d/{wpsoffice.sh => wps-office.sh} | 5 +++-- repack.d/wps-office.sh | 9 ++++++++- 3 files changed, 13 insertions(+), 4 deletions(-) rename play.d/{wpsoffice-cn.sh => wps-office-cn.sh} (86%) rename play.d/{wpsoffice.sh => wps-office.sh} (81%) diff --git a/play.d/wpsoffice-cn.sh b/play.d/wps-office-cn.sh similarity index 86% rename from play.d/wpsoffice-cn.sh rename to play.d/wps-office-cn.sh index 718ffc42d..540ba337b 100755 --- a/play.d/wpsoffice-cn.sh +++ b/play.d/wps-office-cn.sh @@ -20,4 +20,5 @@ md5hash=$(printf '%s%s%s' "$secrityKey" "$uri" "$timestamp10" | md5sum | cut -d' PKGURL="$CHN_DEB_URL?t=${timestamp10}&k=${md5hash}" export EPM_REPACK_SCRIPT="$PKGNAME" -install_pkgurl +# repack always, even for deb system (remove bundled/broken libraries and fix desktop integration) +install_pkgurl --repack diff --git a/play.d/wpsoffice.sh b/play.d/wps-office.sh similarity index 81% rename from play.d/wpsoffice.sh rename to play.d/wps-office.sh index e27f2e62b..9e6bb6012 100755 --- a/play.d/wpsoffice.sh +++ b/play.d/wps-office.sh @@ -6,7 +6,7 @@ VERSION="$2" RELEASE="$3" DESCRIPTION="WPS Office for Linux from the official site" URL="https://www.wps.cn/product/wpslinux" -TIPS="Run epm play wpsoffice= to install some specific version" +TIPS="Run epm play wps-office= to install some specific version" . $(dirname $0)/common.sh @@ -28,4 +28,5 @@ case $pkgtype in ;; esac -install_pkgurl +# repack always, even for deb system (remove bundled/broken libraries and fix desktop integration) +install_pkgurl --repack diff --git a/repack.d/wps-office.sh b/repack.d/wps-office.sh index eeda08d89..e3a7db511 100755 --- a/repack.d/wps-office.sh +++ b/repack.d/wps-office.sh @@ -52,6 +52,14 @@ remove_file $PRODUCTDIR/office6/librpcetapi.so ignore_lib_requires "libuof.so" # Optional distribution-specific libraries +# libtiff.so.5 - required only by the bundled Qt TIFF imageformats plugin; +# Fedora 43 no longer provides this SONAME and WPS works without TIFF plugin support. +case $(epm print info -d) in + Fedora) + ignore_lib_requires 'libtiff.so.5*' + ;; +esac + # libmysqlclient.so.18 - required by libFontWatermark.so for database connectivity in font watermarking features # libpeony.so.3 - required by libpeony-wpsprint-menu-plugin.so for Peony file manager print menu integration ignore_lib_requires "libmysqlclient.so.18" @@ -116,4 +124,3 @@ for f in wps et wpp wpspdf; do [ -f "$bin_file" ] || fatal "Missing $bin_file" sed -i '2i . /opt/kingsoft/wps-office/office6/init-wps-config.sh' "$bin_file" done -