summaryrefslogtreecommitdiffstats
path: root/redhat/extras/brp-check-trinity
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/extras/brp-check-trinity')
-rw-r--r--redhat/extras/brp-check-trinity/brp-check-trinity.spec6
1 files changed, 4 insertions, 2 deletions
diff --git a/redhat/extras/brp-check-trinity/brp-check-trinity.spec b/redhat/extras/brp-check-trinity/brp-check-trinity.spec
index 62d13a5d8..49401af06 100644
--- a/redhat/extras/brp-check-trinity/brp-check-trinity.spec
+++ b/redhat/extras/brp-check-trinity/brp-check-trinity.spec
@@ -73,8 +73,9 @@ for i in \
map-desktop-category.sh \
suse_update_desktop_file.sh \
; do
- echo "Patching file '/usr/lib/rpm/${i}' ..."
[ -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}"
sed -i "/usr/lib/rpm/${i}" \
-e "s|opt/kde3|opt/trinity|g" \
@@ -86,11 +87,12 @@ for i in \
-e "s|applications/kde|applications/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 "/^for i in/ s|\\\| /\$RPM_BUILD_ROOT/opt/trinity/share/applnk \\\|" \
%endif
-e "s|tde-settings.menu|kde-settings.menu|g"
+ diff -Nua "/usr/lib/rpm.orig/${i}" "/usr/lib/rpm/${i}" || :
done