summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
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/*