mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
spec: define _bashcompletiondir if undefined
Always define _bashcompletiondir in the spec file to a reasonable value when it is undefined. Required for `rpmbuild --rebuild <srpm>`. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #15396
This commit is contained in:
parent
d7b6e470ff
commit
30ee2ee8ec
@ -19,6 +19,15 @@
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Set the default _bashcompletiondir directory based on distribution.
|
||||||
|
%if %{undefined _bashcompletiondir}
|
||||||
|
%if 0%{?rhel}%{?fedora}%{?centos}%{?suse_version}%{?openEuler}
|
||||||
|
%global _bashcompletiondir /etc/bash_completion.d
|
||||||
|
%else
|
||||||
|
%global _bashcompletiondir /usr/share/bash-completion
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
# Set the default dracut directory based on distribution.
|
# Set the default dracut directory based on distribution.
|
||||||
%if %{undefined _dracutdir}
|
%if %{undefined _dracutdir}
|
||||||
%if 0%{?rhel}%{?fedora}%{?centos}%{?suse_version}%{?openEuler}
|
%if 0%{?rhel}%{?fedora}%{?centos}%{?suse_version}%{?openEuler}
|
||||||
|
Loading…
Reference in New Issue
Block a user