it have two parts. First is to have it in spec file in files section and simple (doc mean, that for server without user interaction it is useless )
```
%doc %{yast_vardir}/hooks/README.md
```

and second part is to install it there. It is done in autoatools in Makefile.am . I hope you can see there some examples, if not, fell free to ask on IRC.