diff options
author | François Andriot <[email protected]> | 2022-05-18 21:28:52 +0200 |
---|---|---|
committer | François Andriot <[email protected]> | 2022-05-20 09:47:49 +0200 |
commit | 2cf0d83f758ab912896d358640b1ccaf6dd39949 (patch) | |
tree | 1d78d954c8bec1bc4acdefc22c42bda9a07236bf /redhat/extras/brp-check-trinity | |
parent | 6e6f560bed0286075d96525ece113e6a1f910ca5 (diff) | |
download | tde-packaging-2cf0d83f758ab912896d358640b1ccaf6dd39949.tar.gz tde-packaging-2cf0d83f758ab912896d358640b1ccaf6dd39949.zip |
RPM: updates for opensuse build service
Signed-off-by: François Andriot <[email protected]>
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 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 |