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-04-26 17:43:06 +0200
commit9ed2d0cc067bc5b54acf8f5af81a9bc03c29560b (patch)
tree3437d91b63801aa61c8429ea9101adfb00bf77f6 /packaging
parentc41eceb9d751bdf642d32d2dfc7cb299c85e6467 (diff)
downloadsd-mux-ansible.tar.gz
sd-mux-ansible.tar.bz2
sd-mux-ansible.zip
Add bash completion scriptansible
Change-Id: I281d9c9a72ba8b764de855fd5ebb38d6b4399ca1
Diffstat (limited to 'packaging')
-rw-r--r--packaging/sd-mux-ctrl.spec7
1 files changed, 6 insertions, 1 deletions
diff --git a/packaging/sd-mux-ctrl.spec b/packaging/sd-mux-ctrl.spec
index b285a9c..7e9dd92 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
@@ -39,8 +40,12 @@ rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}/%{_mandir}/man1
-install -m644 docs/man/sd-mux-ctrl.1 %{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/*