build: remove unpackaged hidden files

Dotfiles build failed as it is a submodule and contains ".git" and
"LICENSES". Hidden files in the base directory are normally used to
specify configuration of tools for development, not usable in packages.

For: https://github.com/ben-grande/qusal/issues/59
This commit is contained in:
Ben Grande 2024-06-24 17:11:46 +02:00
parent d0ed3a8b82
commit c0508977c7
No known key found for this signature in database
GPG key ID: 00C64E14F51F9E56
53 changed files with 222 additions and 58 deletions

View file

@ -60,7 +60,10 @@ for license in $(echo "%{license_csv}" | tr "," " "); do
done
install -m 644 salt/%{project}/README.md %{buildroot}%{_docdir}/%{name}/
rm -rf salt/%{project}/LICENSES salt/%{project}/README.md
rm -rf \
salt/%{project}/LICENSES \
salt/%{project}/README.md
salt/%{project}/.*
cp -rv salt/%{project} %{buildroot}@FILE_ROOTS@/%{name}
%post