|
|
@ -73,8 +73,9 @@ for i in \
|
|
|
|
map-desktop-category.sh \
|
|
|
|
map-desktop-category.sh \
|
|
|
|
suse_update_desktop_file.sh \
|
|
|
|
suse_update_desktop_file.sh \
|
|
|
|
; do
|
|
|
|
; do
|
|
|
|
echo "Patching file '/usr/lib/rpm/${i}' ..."
|
|
|
|
|
|
|
|
[ -r "/usr/lib/rpm/${i}" ] || continue
|
|
|
|
[ -r "/usr/lib/rpm/${i}" ] || continue
|
|
|
|
|
|
|
|
[ -r "/usr/lib/rpm.orig/${i}" ] && continue
|
|
|
|
|
|
|
|
echo "Patching file '/usr/lib/rpm/${i}' ..."
|
|
|
|
install -D "/usr/lib/rpm/${i}" "/usr/lib/rpm.orig/${i}"
|
|
|
|
install -D "/usr/lib/rpm/${i}" "/usr/lib/rpm.orig/${i}"
|
|
|
|
sed -i "/usr/lib/rpm/${i}" \
|
|
|
|
sed -i "/usr/lib/rpm/${i}" \
|
|
|
|
-e "s|opt/kde3|opt/trinity|g" \
|
|
|
|
-e "s|opt/kde3|opt/trinity|g" \
|
|
|
@ -86,11 +87,12 @@ for i in \
|
|
|
|
-e "s|applications/kde|applications/tde|g" \
|
|
|
|
-e "s|applications/kde|applications/tde|g" \
|
|
|
|
-e "s|KDE|TDE|g" \
|
|
|
|
-e "s|KDE|TDE|g" \
|
|
|
|
-e "s|kde-|tde-|g" \
|
|
|
|
-e "s|kde-|tde-|g" \
|
|
|
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150400
|
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
-e "s|/usr/share/applications|/opt/trinity/share/applications|g" \
|
|
|
|
-e "s|/usr/share/applications|/opt/trinity/share/applications|g" \
|
|
|
|
-e "/^for i in/ s|\\\| /\$RPM_BUILD_ROOT/opt/trinity/share/applnk \\\|" \
|
|
|
|
-e "/^for i in/ s|\\\| /\$RPM_BUILD_ROOT/opt/trinity/share/applnk \\\|" \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
-e "s|tde-settings.menu|kde-settings.menu|g"
|
|
|
|
-e "s|tde-settings.menu|kde-settings.menu|g"
|
|
|
|
|
|
|
|
diff -Nua "/usr/lib/rpm.orig/${i}" "/usr/lib/rpm/${i}" || :
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|