Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/mt-st.git#97a10a85cddfcf8c9905293c4721783e2e3b1e42
This commit is contained in:
DistroBaker 2020-10-30 02:55:49 +01:00
parent f6c2015343
commit 70fb4db9f2

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
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 <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