Blame 0068-dracut.spec-use-pkg-config-for-bashcompletiondir.patch
|
Harald Hoyer |
4413d3 |
From 8c67d395d42b4e34c10418aa6c167122a72a951b Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
4413d3 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
4413d3 |
Date: Wed, 20 Mar 2013 07:15:04 +0100
|
|
Harald Hoyer |
4413d3 |
Subject: [PATCH] dracut.spec: use pkg-config for bashcompletiondir
|
|
Harald Hoyer |
4413d3 |
|
|
Harald Hoyer |
4413d3 |
---
|
|
Harald Hoyer |
4413d3 |
dracut.spec | 5 ++++-
|
|
Harald Hoyer |
4413d3 |
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
Harald Hoyer |
4413d3 |
|
|
Harald Hoyer |
4413d3 |
diff --git a/dracut.spec b/dracut.spec
|
|
Harald Hoyer |
4413d3 |
index 445463f..cd61770 100644
|
|
Harald Hoyer |
4413d3 |
--- a/dracut.spec
|
|
Harald Hoyer |
4413d3 |
+++ b/dracut.spec
|
|
Harald Hoyer |
4413d3 |
@@ -34,6 +34,8 @@ BuildRequires: dash bash git
|
|
Harald Hoyer |
4413d3 |
|
|
Harald Hoyer |
4413d3 |
%if 0%{?fedora} || 0%{?rhel}
|
|
Harald Hoyer |
4413d3 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Harald Hoyer |
4413d3 |
+BuildRequires: bash-completion
|
|
Harald Hoyer |
4413d3 |
+BuildRequires: pkgconfig
|
|
Harald Hoyer |
4413d3 |
%endif
|
|
Harald Hoyer |
4413d3 |
%if 0%{?suse_version}
|
|
Harald Hoyer |
4413d3 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Harald Hoyer |
4413d3 |
@@ -204,7 +206,8 @@ make install DESTDIR=$RPM_BUILD_ROOT \
|
|
Harald Hoyer |
4413d3 |
%if %{defined _unitdir}
|
|
Harald Hoyer |
4413d3 |
systemdsystemunitdir=%{_unitdir} \
|
|
Harald Hoyer |
4413d3 |
%endif
|
|
Harald Hoyer |
4413d3 |
- sysconfdir=/etc mandir=%{_mandir}
|
|
Harald Hoyer |
4413d3 |
+ sysconfdir=/etc mandir=%{_mandir} \
|
|
Harald Hoyer |
4413d3 |
+ bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion)
|
|
Harald Hoyer |
4413d3 |
|
|
Harald Hoyer |
4413d3 |
echo "DRACUT_VERSION=%{version}-%{release}" > $RPM_BUILD_ROOT/%{dracutlibdir}/dracut-version.sh
|
|
Harald Hoyer |
4413d3 |
|