summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorAdam Malinowski <a.malinowsk2@partner.samsung.com>2016-02-26 08:39:35 +0100
committerAdam Malinowski <a.malinowsk2@partner.samsung.com>2016-05-05 13:01:17 +0200
commit992f65d2ad0fe4219f1d41f9d0bc04dfafd729f1 (patch)
tree8a79b8d322e90e33170b1816a53d281c825d413c /packaging
parent5351deab2dbced9aa2d426a413f157125a33de7c (diff)
downloadsd-mux-992f65d2ad0fe4219f1d41f9d0bc04dfafd729f1.tar.gz
sd-mux-992f65d2ad0fe4219f1d41f9d0bc04dfafd729f1.tar.bz2
sd-mux-992f65d2ad0fe4219f1d41f9d0bc04dfafd729f1.zip
Add bash completion script
Change-Id: I281d9c9a72ba8b764de855fd5ebb38d6b4399ca1
Diffstat (limited to 'packaging')
-rw-r--r--packaging/sd-mux-ctrl.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging/sd-mux-ctrl.spec b/packaging/sd-mux-ctrl.spec
index a949add..66450a5 100644
--- a/packaging/sd-mux-ctrl.spec
+++ b/packaging/sd-mux-ctrl.spec
@@ -15,6 +15,7 @@ Source0: %{name}_%{version}.tar.gz
BuildRequires: cmake
Requires: libftdi >= 1.2
Requires: popt
+Requires: awk
BuildRoot: %{_tmppath}/%{name}_%{version}-build
@@ -40,7 +41,10 @@ rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_mandir}/man1
install -m644 docs/man/%{name}.1 %{buildroot}/%{_mandir}/man1
+install -d -m0755 %{buildroot}/%{_sysconfdir}/bash_completion.d/
+install -Dp -m0755 etc/bash_completion.d/%{name} %{buildroot}/%{_sysconfdir}/bash_completion.d/
%files
%{_bindir}/%{name}
%{_mandir}/man1/*
+%{_sysconfdir}/bash_completion.d/*