diff options
author | François Andriot <albator78@libertysurf.fr> | 2022-05-18 21:28:52 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2022-05-20 09:50:17 +0200 |
commit | a9a0aa144af42eead9c2a04101385411ca42d98e (patch) | |
tree | 4afab35a9f3d55e69bb9db926dea4c8b4748a48a /redhat/extras/brp-check-trinity | |
parent | cd2a65fac033856bdbabdf029370ba95fdfd4b13 (diff) | |
download | tde-packaging-a9a0aa144af42eead9c2a04101385411ca42d98e.tar.gz tde-packaging-a9a0aa144af42eead9c2a04101385411ca42d98e.zip |
RPM: updates for opensuse build service
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/extras/brp-check-trinity')
-rw-r--r-- | redhat/extras/brp-check-trinity/brp-check-trinity.spec | 6 |
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 cca9786f1..174391037 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 |