Fix not working autocompletion

This commit is contained in:
Paweł Marciniak 2020-10-12 13:41:21 +02:00
parent aef9635add
commit a695d5585c

View File

@ -1,7 +1,7 @@
Summary: Tool for controlling tape drives
Name: mt-st
Version: 1.4
Release: 2%{?dist}
Release: 3%{?dist}
License: GPL+
URL: https://github.com/iustin/mt-st
Source0: https://github.com/iustin/mt-st/releases/download/v%{version}/%{name}-%{version}.tar.gz
@ -30,8 +30,11 @@ make CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}"
%install
%make_install EXEC_PREFIX=/usr COMPLETIONINSTALLDIR=%{buildroot}$(pkg-config --variable=completionsdir bash-completion)
COMPLETIONDIR=%{buildroot}$(pkg-config --variable=completionsdir bash-completion)
%make_install EXEC_PREFIX=/usr COMPLETIONINSTALLDIR=$COMPLETIONDIR
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/stinit.service
cd $COMPLETIONDIR
ln -s mt-st mt
%post
@ -55,6 +58,9 @@ install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/stinit.service
%changelog
* Mon Oct 12 2020 Paweł Marciniak <sunwire+repo@gmail.com> - 1.4-3
- Fix not working autocompletion
* Thu Sep 24 2020 Dan Horák <dan[at]danny.cz> - 1.4-2
- install completions to system directory