diff --git a/mt-st.spec b/mt-st.spec index c400eb6..e27ee02 100644 --- a/mt-st.spec +++ b/mt-st.spec @@ -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 +mv 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 - 1.4-3 +- Fix not working autocompletion + * Thu Sep 24 2020 Dan Horák - 1.4-2 - install completions to system directory