- install completions to system directory
This commit is contained in:
parent
f5f24df156
commit
aef9635add
10
mt-st.spec
10
mt-st.spec
@ -1,13 +1,14 @@
|
||||
Summary: Tool for controlling tape drives
|
||||
Name: mt-st
|
||||
Version: 1.4
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?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
|
||||
Source1: stinit.service
|
||||
BuildRequires: gcc
|
||||
BuildRequires: systemd
|
||||
BuildRequires: bash-completion
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
@ -29,7 +30,7 @@ make CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}"
|
||||
|
||||
|
||||
%install
|
||||
%make_install EXEC_PREFIX=/usr
|
||||
%make_install EXEC_PREFIX=/usr COMPLETIONINSTALLDIR=%{buildroot}$(pkg-config --variable=completionsdir bash-completion)
|
||||
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/stinit.service
|
||||
|
||||
|
||||
@ -50,10 +51,13 @@ install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/stinit.service
|
||||
%{_mandir}/man1/mt.1*
|
||||
%{_mandir}/man8/stinit.8*
|
||||
%{_unitdir}/stinit.service
|
||||
%{_sysconfdir}/bash_completion.d/mt-st
|
||||
%{_datadir}/bash-completion/
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Sep 24 2020 Dan Horák <dan[at]danny.cz> - 1.4-2
|
||||
- install completions to system directory
|
||||
|
||||
* Wed Sep 16 2020 Paweł Marciniak <sunwire+repo@gmail.com> - 1.4-1
|
||||
- rebased to 1.4
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user