|
|
@ -58,31 +58,41 @@ It should not be installed on runtime computer.
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
echo "Patching openSUSE brp scripts ..."
|
|
|
|
for i in \
|
|
|
|
sed -i.orig \
|
|
|
|
brp-desktop.data/applications.menu \
|
|
|
|
/usr/lib/rpm/brp-desktop.data/applications.menu \
|
|
|
|
brp-desktop.data/kde-settings.menu \
|
|
|
|
/usr/lib/rpm/brp-desktop.data/kde-settings.menu \
|
|
|
|
brp-desktop.data/xdg_menu \
|
|
|
|
/usr/lib/rpm/brp-desktop.data/xdg_menu \
|
|
|
|
brp-suse.d/brp-25-symlink \
|
|
|
|
/usr/lib/rpm/brp-suse.d/brp-25-symlink \
|
|
|
|
brp-suse.d/brp-72-extract-appdata \
|
|
|
|
/usr/lib/rpm/brp-suse.d/brp-72-extract-appdata \
|
|
|
|
suse_update_desktop_file.sh \
|
|
|
|
/usr/lib/rpm/suse_update_desktop_file.sh \
|
|
|
|
; do
|
|
|
|
-e "s|opt/kde3|opt/trinity|g" \
|
|
|
|
echo "Patching file '/usr/lib/rpm/${i}' ..."
|
|
|
|
-e "s|kde-config|tde-config|g" \
|
|
|
|
install -D "/usr/lib/rpm/${i}" "/usr/lib/rpm.orig/${i}"
|
|
|
|
-e "s|kdesu|tdesu|g" \
|
|
|
|
sed -i "/usr/lib/rpm/${i}" \
|
|
|
|
-e "s|kde-settings-|tde-settings-|g" \
|
|
|
|
-e "s|opt/kde3|opt/trinity|g" \
|
|
|
|
-e "s|doc/kde|doc/tde|g" \
|
|
|
|
-e "s|kde-config|tde-config|g" \
|
|
|
|
-e "s|kde_xdgdata|tde_xdgdata|g" \
|
|
|
|
-e "s|kdesu|tdesu|g" \
|
|
|
|
-e "s|applications/kde|applications/tde|g" \
|
|
|
|
-e "s|kde-settings-|tde-settings-|g" \
|
|
|
|
-e "s|KDE|TDE|g"
|
|
|
|
-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"
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%postun
|
|
|
|
find /usr/lib/rpm -name "*.orig" | while read f; do
|
|
|
|
for i in \
|
|
|
|
echo "Restoring original file: '${f%.orig}'"
|
|
|
|
brp-desktop.data/applications.menu \
|
|
|
|
mv -f "${f}" "${f%.orig}"
|
|
|
|
brp-desktop.data/kde-settings.menu \
|
|
|
|
done
|
|
|
|
brp-desktop.data/xdg_menu \
|
|
|
|
|
|
|
|
brp-suse.d/brp-25-symlink \
|
|
|
|
|
|
|
|
brp-suse.d/brp-72-extract-appdata \
|
|
|
|
|
|
|
|
suse_update_desktop_file.sh \
|
|
|
|
|
|
|
|
; do
|
|
|
|
|
|
|
|
echo "Restoring file '/usr/lib/rpm/${i}' ..."
|
|
|
|
|
|
|
|
install "/usr/lib/rpm.orig/${i}" "/usr/lib/rpm/${i}"
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
rm -rf "/usr/lib/rpm.orig"
|
|
|
|
|
|
|
|
|
|
|
|
##########
|
|
|
|
##########
|
|
|
|
|
|
|
|
|
|
|
|