I am creating a symlink under %install section of RPM spec file.
%install
(cd $RPM_BUILD_ROOT/boot && ln -s -f abc xyz)
after installing the package, when I try to perform rpm -qf xyz
it says: /path/xyz is not owned by any package.
I want to make sure that perform rpm -qf xyz gives me name of correct package.
What changes do I need to make, in order to make this work. I tried mentioning this file in the %file section of RPM
%files
/path/xyz
But it still says xyz is not owned by any package.