dracut.spec: use pkg-config for bashcompletiondir
parent
02566acdd7
commit
8c67d395d4
|
@ -34,6 +34,8 @@ BuildRequires: dash bash git
|
||||||
|
|
||||||
%if 0%{?fedora} || 0%{?rhel}
|
%if 0%{?fedora} || 0%{?rhel}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
BuildRequires: bash-completion
|
||||||
|
BuildRequires: pkgconfig
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
@ -204,7 +206,8 @@ make install DESTDIR=$RPM_BUILD_ROOT \
|
||||||
%if %{defined _unitdir}
|
%if %{defined _unitdir}
|
||||||
systemdsystemunitdir=%{_unitdir} \
|
systemdsystemunitdir=%{_unitdir} \
|
||||||
%endif
|
%endif
|
||||||
sysconfdir=/etc mandir=%{_mandir}
|
sysconfdir=/etc mandir=%{_mandir} \
|
||||||
|
bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion)
|
||||||
|
|
||||||
echo "DRACUT_VERSION=%{version}-%{release}" > $RPM_BUILD_ROOT/%{dracutlibdir}/dracut-version.sh
|
echo "DRACUT_VERSION=%{version}-%{release}" > $RPM_BUILD_ROOT/%{dracutlibdir}/dracut-version.sh
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue