Remove donation url from libKF5XmlGui

master
Artem Proskurnev 2 years ago
parent 4ab1f3b41b
commit effc8723fc
  1. 7
      mos-std-desktop.spec
  2. 20
      mos-std-desktop/libKF5XmlGui.filetrigger

@ -1,5 +1,5 @@
Name: mos-std-desktop Name: mos-std-desktop
Version: 1.4 Version: 1.5
Release: alt1 Release: alt1
Summary: M OS default desktop settings Summary: M OS default desktop settings
@ -62,6 +62,7 @@ ln -s /usr/share/applications/r7-office-desktopeditors.desktop %buildroot%skelde
ln -s /usr/share/applications/chromium.desktop %buildroot%skeldesktopdir/chromium.desktop ln -s /usr/share/applications/chromium.desktop %buildroot%skeldesktopdir/chromium.desktop
install -pm755 brandicons.filetrigger %buildroot%ftdir install -pm755 brandicons.filetrigger %buildroot%ftdir
install -pm755 previewplugins.filetrigger %buildroot%ftdir install -pm755 previewplugins.filetrigger %buildroot%ftdir
install -pm755 libKF5XmlGui.filetrigger %buildroot%ftdir
%files %files
"/etc/skel/.config/baloofilerc" "/etc/skel/.config/baloofilerc"
@ -79,8 +80,12 @@ install -pm755 previewplugins.filetrigger %buildroot%ftdir
"/etc/skel/Рабочий стол/chromium.desktop" "/etc/skel/Рабочий стол/chromium.desktop"
"/usr/lib/rpm/brandicons.filetrigger" "/usr/lib/rpm/brandicons.filetrigger"
"/usr/lib/rpm/previewplugins.filetrigger" "/usr/lib/rpm/previewplugins.filetrigger"
"/usr/lib/rpm/libKF5XmlGui.filetrigger"
%changelog %changelog
* Wed Aug 31 2022 Artem Proskurnev <tema@altlinux.org> 1.5-alt1
- Remove donation url from libKF5XmlGui
* Tue Aug 30 2022 Artem Proskurnev <tema@altlinux.org> 1.4-alt1 * Tue Aug 30 2022 Artem Proskurnev <tema@altlinux.org> 1.4-alt1
- Remove repo - Remove repo

@ -0,0 +1,20 @@
#!/bin/sh
#
# RPM filetrigger for remove donation url from hardcode.
# Links to donations remain in the documentation.
#
# Copyright (C) 2021 Artem Proskurnev <tema@proskurnevs.ru>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
mf='/usr/lib64/libKF5XmlGui.so.5.96.0'
if egrep -qs $mf;
then
if [ -f $mf ];
then
sed -i /usr/lib64/libKF5XmlGui.so.5.96.0 -e 's,https://www.kde.org/donate?app=,https://os.mos.ru/r/blago?appl=,g'
fi
fi
Loading…
Cancel
Save