RPM packaging: update brp-check-trinity for opensuse >= 42.1

pull/3/head
François Andriot 8 years ago
parent 0467a02187
commit 56bee759ee

@ -66,9 +66,11 @@ for i in \
brp-desktop.data/xdg_menu \
brp-suse.d/brp-25-symlink \
brp-suse.d/brp-72-extract-appdata \
map-desktop-category.sh \
suse_update_desktop_file.sh \
; do
echo "Patching file '/usr/lib/rpm/${i}' ..."
[ -r "/usr/lib/rpm/${i}" ] || continue
install -D "/usr/lib/rpm/${i}" "/usr/lib/rpm.orig/${i}"
sed -i "/usr/lib/rpm/${i}" \
-e "s|opt/kde3|opt/trinity|g" \
@ -78,7 +80,8 @@ for i in \
-e "s|doc/kde|doc/tde|g" \
-e "s|kde_xdgdata|tde_xdgdata|g" \
-e "s|applications/kde|applications/tde|g" \
-e "s|KDE|TDE|g"
-e "s|KDE|TDE|g" \
-e "s|kde-|tde-|g"
done
@ -89,8 +92,10 @@ for i in \
brp-desktop.data/xdg_menu \
brp-suse.d/brp-25-symlink \
brp-suse.d/brp-72-extract-appdata \
map-desktop-category.sh \
suse_update_desktop_file.sh \
; do
[ -r "/usr/lib/rpm.orig/${i}" ] || continue
echo "Restoring file '/usr/lib/rpm/${i}' ..."
install "/usr/lib/rpm.orig/${i}" "/usr/lib/rpm/${i}"
done

Loading…
Cancel
Save