LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-05-2023, 03:52 PM   #1
bonsei
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Rep: Reputation: Disabled
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
 
Old 02-13-2023, 11:35 AM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,271
Blog Entries: 24

Rep: Reputation: 4209Reputation: 4209Reputation: 4209Reputation: 4209Reputation: 4209Reputation: 4209Reputation: 4209Reputation: 4209Reputation: 4209Reputation: 4209Reputation: 4209
As you have received no replies after several days in Programming forum, perhaps you would receive better exposure in another forum such as Software or in your distros forum. If you would like to move this post to one of those or another please use the Report button to request it.

My own RPM knowledge is too stale to be of any help. Good luck!
 
  


Reply

Tags
linux, rpm, rpmbuild, spec, trigger



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trigger jenkins build with URL trigger when using git? jonizen Linux - Server 1 10-14-2011 01:07 PM
LFS RPM SPEC files: Binutils RPM spec for x86 arch nocountryman Linux From Scratch 2 10-25-2010 09:09 AM
Why is rpmbuild -ba name.spec is creating a <name>-debug.rpm only jjap Linux - Newbie 3 06-12-2008 06:01 PM
How to get Caller Id in PPP yspl Linux - Networking 1 12-19-2005 04:38 AM
Can I get an incoming email to trigger a script file? davee Linux - General 2 10-16-2003 02:45 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration