From aef9635add2a0a6cf06572b16f6fa6f22702fd2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Thu, 24 Sep 2020 10:35:06 +0200 Subject: [PATCH] - install completions to system directory --- mt-st.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mt-st.spec b/mt-st.spec index be941b4..c400eb6 100644 --- a/mt-st.spec +++ b/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 - 1.4-2 +- install completions to system directory + * Wed Sep 16 2020 Paweł Marciniak - 1.4-1 - rebased to 1.4