Name: adalvikrefresh Version: 0.3 Release: 3 Summary: Alien Dalvik Refresh Group: System/Tools Vendor: Schturman Distribution: SailfisfOS Packager: Schturman <schturman@hotmail.com> URL: www.dhrider.co.cc License: GPL %description Refresh buttom of Alien Dalvik service. %files /usr/share/applications/adalvikrefresh.desktop /usr/share/icons/hicolor/86x86/apps/aliendalvikrestart.png %defattr(4755,root,root) /usr/share/jolla-adrestart/aliendalvik-restart %changelog * Wed Jan 25 2014 Builder <builder@...> 0.1 - First build.
This will allow the programmer to distinguish different attitudes of his scripts depending on the operation: install or upgrade.
To test this argument, the following 'if' statement is used: %postun if [ $1 = 0 ]; then // Do stuff specific to uninstalls fi if [ $1 = 1 ]; then // Do stuff specific to upgrades fi