CPack RPM: Directory with trailing / symbol and %config attribute is put into %files section
Hi I have into following issue in CPack module of cmake-3.12.2
$ cmake3 --version
cmake3 version 3.12.2
If an RPM package is exported an empty directory (there are no any files placed there and provided by discussed RPM package), for example
set(CPACK_RPM_USER_FILELIST "%dir %attr(0755, bar, bar) /var/log/bar")
it appears twice in resulting %files section of RPM spec:
%files
%defattr(-,root,root,-)
%config /var/log/bar/
%dir %attr(0755, bar, bar) /var/log/bar
Please pay your attention to trailing / symbol. Could anybody explain why it happens and how to solve the issue? Thanks in advance.