I have a man file that I want installed to /usr/share/man/man8 during the rpm install. This is my mapping.
<mapping>
<directory>/usr/share/man/man8</directory>
<documentation>true</documentation> <!-- no difference if I add or remove this -->
<filemode>644</filemode>
<username>root</username>
<groupname>root</groupname>
<directoryIncluded>false</directoryIncluded>
<recurseDirectories>false</recurseDirectories>
<sources>
<source>
<location>${project.build.directory}</location>
<includes>
<include>mymanpage.8</include>
</includes>
</source>
</sources>
</mapping>
rpm-maven-plugin errors and tells me mymanpage.8 is not found. I verified that mymanpage.8 is in the target directory. Then I noticed that the plugin copied mymanpage.8.gz to the target/rpm/rpmtest/buildroot/usr/share/man/man8 directory. So I'm assuming the plugin recognized somehow that it can gzip this man page and did it but since my mapping is specifically including mymanpage.8 it complains it cannot find it. I tried changing the include to mymanpage.8* and it still gives me the same file not found error.
Has anyone seen this before? What's the fix?
I guess I have a workaround which is to copy the mymanpage.8 file to my install directory and then in the postinstall scriptlet move it to /usr/share/man/man8.