$ rpm -E '%{_unitdir}'
/lib/systemd/system
This should show:
/usr/lib/systemd/system
I see that it is defined in two places:
1. /etc/rpm/macros.d/20build.macros: %_unitdir /lib/systemd/system
2. /usr/lib/rpm/macros.systemd: %_unitdir /usr/lib/systemd/system
The latter obviously provides the right setting. But I guess due to
ordering and so on it picks up the setting from 20build.macros.
This is preventing me to package NetworkManager properly (I prefer
relying on %{_unitdir} to give me the location, so the spec still works
on Mageia 2).
Could someone fix this?
--
Regards,
Olav