Get package name of trigger caller package in SPEC file with %triggerin
I try to build a spec file on rhel8 with some postinstall things after installing or updating some vendor packages.
I'd like to use one trigger to do some common stuff. But need to find out which package called the trigger. %name is the name of my package, but is there a variable which shows the trigger caller package (vendor package)?
In SPEC file:
Name: php-post
...
%triggerin -- php php-common php-fpm httpd
echo "trigger from %name - triggerd by package: ...."
Output during install of my package or any install/update of triggerd package from vendor, e.g.:
trigger from php-post - triggerd by package: php
|