amit.sutar@ibm.com has uploaded this change for review.

View Change

spec: support custom package name override via macro

Replace the hardcoded 'Name: nfs-ganesha' configuration with the
native '%{name}' macro evaluation. Add a conditional global fallback
to safely default back to 'nfs-ganesha' if no custom define is passed
at build time.

This allows passing a custom name prefix during compilation, for example:
--define "name <fsal>-nfs-ganesha"

- Add conditional global definition check for '%{name}'
- Update dependent package Requires sections to dynamically use '%{name}'

Change-Id: I11dd080f7141efa149b988ade883f94ee8f8ba15
Signed-off-by: Amit Sutar <Amit.sutar@ibm.com>
---
M src/nfs-ganesha.spec-in.cmake
1 file changed, 23 insertions(+), 22 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/67/1257867/1

To view, visit change 1257867. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I11dd080f7141efa149b988ade883f94ee8f8ba15
Gerrit-Change-Number: 1257867
Gerrit-PatchSet: 1
Gerrit-Owner: amit.sutar@ibm.com