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

@ -62,7 +62,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}/srv/salt/qusal/%{name}
%post

View File

@ -70,7 +70,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}/srv/salt/qusal/%{name}
%post

View File

@ -64,7 +64,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}/srv/salt/qusal/%{name}
%post

View File

@ -61,7 +61,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}/srv/salt/qusal/%{name}
%post

View File

@ -61,7 +61,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}/srv/salt/qusal/%{name}
%post

View File

@ -68,7 +68,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}/srv/salt/qusal/%{name}
%post

View File

@ -62,7 +62,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}/srv/salt/qusal/%{name}
%post

View File

@ -64,7 +64,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}/srv/salt/qusal/%{name}
%post

View File

@ -76,7 +76,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}/srv/salt/qusal/%{name}
%post

View File

@ -78,7 +78,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}/srv/salt/qusal/%{name}
%post

View File

@ -63,7 +63,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}/srv/salt/qusal/%{name}
%post

View File

@ -64,7 +64,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}/srv/salt/qusal/%{name}
%post

View File

@ -61,7 +61,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}/srv/salt/qusal/%{name}
%post

View File

@ -61,7 +61,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}/srv/salt/qusal/%{name}
%post

View File

@ -71,7 +71,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}/srv/salt/qusal/%{name}
%post

View File

@ -63,7 +63,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}/srv/salt/qusal/%{name}
%post

View File

@ -81,7 +81,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}/srv/salt/qusal/%{name}
%post

View File

@ -64,7 +64,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}/srv/salt/qusal/%{name}
%post

View File

@ -65,7 +65,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}/srv/salt/qusal/%{name}
%post

View File

@ -69,7 +69,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}/srv/salt/qusal/%{name}
%post

View File

@ -63,7 +63,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}/srv/salt/qusal/%{name}
%post

View File

@ -74,7 +74,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}/srv/salt/qusal/%{name}
%post
@ -117,6 +120,12 @@ fi
%dnl TODO: missing '%ghost', files generated during %post, such as Qrexec policies.
%changelog
* Mon Jun 24 2024 Ben Grande <ben.grande.b@gmail.com> - d0ed3a8
- fix: repository dir uses debug directory
* Mon Jun 24 2024 Ben Grande <ben.grande.b@gmail.com> - c7fb371
- fix: reference Salt dependency installation state
* Mon Jun 24 2024 Ben Grande <ben.grande.b@gmail.com> - 620fa10
- fix: shutdown template before install state

View File

@ -65,7 +65,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}/srv/salt/qusal/%{name}
%post

View File

@ -63,7 +63,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}/srv/salt/qusal/%{name}
%post

View File

@ -63,7 +63,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}/srv/salt/qusal/%{name}
%post

View File

@ -68,7 +68,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}/srv/salt/qusal/%{name}
%post

View File

@ -66,7 +66,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}/srv/salt/qusal/%{name}
%post

View File

@ -89,7 +89,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}/srv/salt/qusal/%{name}
%post

View File

@ -81,7 +81,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}/srv/salt/qusal/%{name}
%post

View File

@ -76,7 +76,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}/srv/salt/qusal/%{name}
%post

View File

@ -76,7 +76,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}/srv/salt/qusal/%{name}
%post

View File

@ -67,7 +67,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}/srv/salt/qusal/%{name}
%post

View File

@ -67,7 +67,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}/srv/salt/qusal/%{name}
%post

View File

@ -68,7 +68,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}/srv/salt/qusal/%{name}
%post

View File

@ -70,7 +70,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}/srv/salt/qusal/%{name}
%post

View File

@ -66,7 +66,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}/srv/salt/qusal/%{name}
%post
@ -108,6 +111,9 @@ fi
%dnl TODO: missing '%ghost', files generated during %post, such as Qrexec policies.
%changelog
* Mon Jun 24 2024 Ben Grande <ben.grande.b@gmail.com> - beaf07d
- fix: include shell profile sourcer
* Fri Jun 21 2024 Ben Grande <ben.grande.b@gmail.com> - c84dfea
- fix: generate RPM Specs for Qubes Builder V2

View File

@ -73,7 +73,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}/srv/salt/qusal/%{name}
%post

View File

@ -67,7 +67,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}/srv/salt/qusal/%{name}
%post

View File

@ -70,7 +70,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}/srv/salt/qusal/%{name}
%post

View File

@ -76,7 +76,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}/srv/salt/qusal/%{name}
%post

View File

@ -72,7 +72,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}/srv/salt/qusal/%{name}
%post

View File

@ -69,7 +69,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}/srv/salt/qusal/%{name}
%post

View File

@ -62,7 +62,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}/srv/salt/qusal/%{name}
%post

View File

@ -64,7 +64,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}/srv/salt/qusal/%{name}
%post

View File

@ -62,7 +62,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}/srv/salt/qusal/%{name}
%post

View File

@ -64,7 +64,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}/srv/salt/qusal/%{name}
%post

View File

@ -61,7 +61,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}/srv/salt/qusal/%{name}
%post

View File

@ -64,7 +64,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}/srv/salt/qusal/%{name}
%post

View File

@ -63,7 +63,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}/srv/salt/qusal/%{name}
%post

View File

@ -62,7 +62,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}/srv/salt/qusal/%{name}
%post

View File

@ -63,7 +63,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}/srv/salt/qusal/%{name}
%post

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

View File

@ -13,7 +13,6 @@ usage(){
## Escape multiline strings for sed.
escape_key(){
key_type="${1}"
key_indent=" "
if test "${key_type}" = "scriptlet"; then
echo "${2}" | sed ':a;N;$!ba;s/\n/\\n /g' | sed 's/\$/\\$/'
elif test "${key_type}" = "text"; then
@ -44,10 +43,6 @@ get_spec(){
gen_spec(){
project="${1}"
ignored="$(git ls-files --exclude-standard --others --ignored)"
untracked="$(git ls-files --exclude-standard --others)"
unwanted="$(printf %s"${ignored}\n${untracked}\n" \
| grep "^salt/\S\+/README.md" | cut -d "/" -f2 | sort -u)"
if echo "${unwanted}" | grep -q "^${project}$"; then
echo "warn: skipping spec generation of untracked formula: ${project}" >&2
@ -139,10 +134,14 @@ esac
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
cd "$(git rev-parse --show-toplevel)"
./scripts/requires-program.sh vim
spec_get="./scripts/spec-get.sh"
ignored="$(git ls-files --exclude-standard --others --ignored salt/)"
untracked="$(git ls-files --exclude-standard --others salt/)"
unwanted="$(printf %s"${ignored}\n${untracked}\n" \
| grep "^salt/\S\+/README.md" | cut -d "/" -f2 | sort -u)"
if test "${2-}" = "test"; then
gen_spec "${1}" test
exit