Files added that have text enclosed in square brackets fail to be found. The square brackets need to escaped or replaced with * to enable the glob to match the file
Even with <directoryIncluded>true</directoryIncluded> the spec file will still add the %attr tags which will still cause the failure
example: source file in /opt/test/testing[123].txt
Error message
error: File not found by glob: /opt/test/testing[123].txt
Files added that have text enclosed in square brackets fail to be found. The square brackets need to escaped or replaced with * to enable the glob to match the file
Even with
<directoryIncluded>true</directoryIncluded>
the spec file will still add the %attr tags which will still cause the failureexample: source file in /opt/test/testing[123].txt Error message error: File not found by glob: /opt/test/testing[123].txt