Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have spent around 3 hrs now. How to override a macro during rpm build ? I want to override _sbindir (/usr/sbin) to /opt/sbin I have edited rpm macro files both system and local user files nothing seems to be working for me. I'm using Fedora 12.

share|improve this question

1 Answer 1

Don't try and override _foo macros. But if you really must, add this to the top of your specfile.

%define _sbindir /foo
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.