From 07d7faf51637503308a6c8d8780b7df8f9e6f094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 4 Sep 2016 22:17:12 +0200 Subject: RPM Packaging: remove lots of useless %post sections --- redhat/main/tdenetwork/tdenetwork-14.0.0.spec | 183 -------------------------- 1 file changed, 183 deletions(-) (limited to 'redhat/main/tdenetwork/tdenetwork-14.0.0.spec') diff --git a/redhat/main/tdenetwork/tdenetwork-14.0.0.spec b/redhat/main/tdenetwork/tdenetwork-14.0.0.spec index 8acda57b7..f0e37582b 100644 --- a/redhat/main/tdenetwork/tdenetwork-14.0.0.spec +++ b/redhat/main/tdenetwork/tdenetwork-14.0.0.spec @@ -316,12 +316,6 @@ DCOP is the TDE interprocess communication protocol. %{tde_bindir}/rssservice %{tde_datadir}/services/rssservice.desktop -%post -n trinity-dcoprss -update-desktop-database 2> /dev/null || : - -%postun -n trinity-dcoprss -update-desktop-database 2> /dev/null || : - ########## %package devel @@ -357,12 +351,6 @@ development-related files for the TDE network module. %{tde_libdir}/librss.la %{tde_libdir}/librss.so -%post devel -/sbin/ldconfig - -%postun devel -/sbin/ldconfig - ########## %package filesharing @@ -393,18 +381,6 @@ NFS and Samba. %{tde_tdedocdir}/HTML/en/kcontrol/fileshare/ %{tde_tdedocdir}/HTML/en/kcontrol/kcmsambaconf/ -%post filesharing -for f in hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - -%postun filesharing -for f in hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - ########## %package -n trinity-kdict @@ -430,18 +406,6 @@ basic as well as advanced queries. %{tde_datadir}/icons/hicolor/*/apps/kdict.* %{tde_tdedocdir}/HTML/en/kdict -%post -n trinity-kdict -for f in hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - -%postun -n trinity-kdict -for f in hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - ########## %package tdefile-plugins @@ -464,12 +428,6 @@ dialog in konqueror and other file-handling applications. %{tde_tdelibdir}/tdefile_torrent.so %{tde_datadir}/services/tdefile_torrent.desktop -%post tdefile-plugins -update-desktop-database 2> /dev/null || : - -%postun tdefile-plugins -update-desktop-database 2> /dev/null || : - ########## %package -n trinity-kget @@ -507,18 +465,6 @@ applications and Netscape. %{tde_datadir}/sounds/KGet_Started.ogg %{tde_tdedocdir}/HTML/en/kget -%post -n trinity-kget -for f in crystalsvg hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - -%postun -n trinity-kget -for f in crystalsvg hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - ########## %package -n trinity-knewsticker @@ -550,18 +496,6 @@ good news sources which provide such files. %{tde_datadir}/services/kntsrcfilepropsdlg.desktop %{tde_tdedocdir}/HTML/en/knewsticker -%post -n trinity-knewsticker -for f in hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - -%postun -n trinity-knewsticker -for f in hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - ########## %package -n trinity-kopete @@ -756,20 +690,6 @@ Support for more IM protocols can be added through a plugin system. %{tde_datadir}/config.kcfg/smpppdcs.kcfg -%post -n trinity-kopete -for f in crystalsvg hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : -/sbin/ldconfig - -%postun -n trinity-kopete -for f in crystalsvg hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : -/sbin/ldconfig - ########## %package -n trinity-kopete-nowlistening @@ -813,18 +733,6 @@ designed to be used for sharing files with friends. %{tde_datadir}/services/kpfpropertiesdialogplugin.desktop %{tde_tdedocdir}/HTML/en/kpf -%post -n trinity-kpf -for f in crystalsvg ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - -%postun -n trinity-kpf -for f in crystalsvg ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - ########## %package -n trinity-kppp @@ -879,21 +787,11 @@ track of the time spent online for you. %endif %post -n trinity-kppp -for f in hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : %if 0%{?suse_version} # Sets permissions on setuid files (openSUSE specific) %set_permissions %{tde_bindir}/kppp %endif -%postun -n trinity-kppp -for f in hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - ########## %package -n trinity-krdc @@ -920,18 +818,6 @@ Servers using RDP. %{tde_tdedocdir}/HTML/en/tdeioslave/rdp/ %{tde_tdedocdir}/HTML/en/tdeioslave/vnc/ -%post -n trinity-krdc -for f in crystalsvg hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - -%postun -n trinity-krdc -for f in crystalsvg hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - ########## %package -n trinity-krfb @@ -967,18 +853,6 @@ task. %{tde_datadir}/servicetypes/kinetdmodule.desktop %{tde_tdedocdir}/HTML/en/krfb/ -%post -n trinity-krfb -for f in crystalsvg hicolor locolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - -%postun -n trinity-krfb -for f in crystalsvg hicolor locolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - ########## %package -n trinity-ksirc @@ -1004,21 +878,6 @@ recommended package libio-socket-ssl-perl. %{tde_datadir}/icons/hicolor/*/apps/ksirc.* %{tde_tdedocdir}/HTML/??/ksirc/ -%post -n trinity-ksirc -for f in hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : -/sbin/ldconfig - - -%postun -n trinity-ksirc -for f in hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : -/sbin/ldconfig - ########## %package -n trinity-ktalkd @@ -1047,18 +906,6 @@ and shouldn't be run on a multi-user machine. %{tde_tdedocdir}/HTML/en/kcontrol/kcmtalkd %{tde_tdedocdir}/HTML/en/ktalkd -%post -n trinity-ktalkd -for f in crystalsvg hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - -%postun -n trinity-ktalkd -for f in crystalsvg hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - ########## %if "%{?_with_wifi:1}" == "1" @@ -1087,18 +934,6 @@ wavelan card that uses the wireless extensions interface. %{tde_datadir}/icons/hicolor/*/apps/kwifimanager.svgz %{tde_tdedocdir}/HTML/en/kwifimanager/ %{tde_tdedocdir}/HTML/en/kcontrol/kcmwifi/ - -%post -n trinity-kwifimanager -for f in hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : - -%postun -n trinity-kwifimanager -for f in hicolor ; do - gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : -done -update-desktop-database 2> /dev/null || : %endif ########## @@ -1117,12 +952,6 @@ automatically when needed. %{tde_libdir}/librss.so.* %{tde_datadir}/cmake/librss.cmake -%post -n trinity-librss -/sbin/ldconfig - -%postun -n trinity-librss -/sbin/ldconfig - ########## %package -n trinity-lisa @@ -1155,12 +984,6 @@ but relying only on the TCP/IP protocol. %{tde_bindir}/lisa %{tde_bindir}/reslisa -%post -n trinity-lisa -update-desktop-database 2> /dev/null || : - -%postun -n trinity-lisa -update-desktop-database 2> /dev/null || : - ########## %package -n trinity-kdnssd @@ -1189,12 +1012,6 @@ A tdeioslave and tded module that provide Zeroconf support. Try %{tde_tdelibdir}/kded_dnssdwatcher.so %{tde_tdelibdir}/kded_dnssdwatcher.la -%post -n trinity-kdnssd -update-desktop-database 2> /dev/null || : - -%postun -n trinity-kdnssd -update-desktop-database 2> /dev/null || : - ########## %if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0 -- cgit v1.2.1