[MBT] new ticket for pkg rpm "better _topdir macro"

bugs at pld-linux.org bugs at pld-linux.org
Tue Dec 2 18:56:19 CET 2003


Date: 2003-12-02 18:56:19+01	Author:  (glen) <glen at delfi.ee> 
Title:         better _topdir macro
Ticket ID:     #782
Ticket URL:    http://bugs.pld-linux.org/?bug=782
Package:       rpm-4.0.2-112
Distribution:  
Category:      improve request
Current state: opened
Text:

what about this?


%_topdir         %(test -d ../SPECS && (cd ..; pwd) || echo $HOME/rpm)


sets topdir to parent dir if you're inside rpm tree
otherwise defaults to ~/rpm

this way you can have multiple rpm topdirs with same rpm macros file...



More information about the pld-bugs mailing list