put the bash completion in the right location

This commit is contained in:
Fabio Alessandro Locati 2020-07-07 09:30:11 +02:00
parent 4c31f8f6f5
commit 06b8c2dc05
No known key found for this signature in database
GPG Key ID: 6C87B5F613A3F7F8

View File

@ -1,6 +1,6 @@
Name: stress-ng
Version: 0.11.14
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Stress test a computer system in various ways
License: GPLv2+
@ -43,24 +43,29 @@ export LDFLAGS="%{__global_ldflags}"
%install
install -p -m 755 -D %{name} %{buildroot}%{_bindir}/%{name}
install -p -m 644 -D %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
install -pm 644 bash-completion/%{name} \
%{buildroot}%{_sysconfdir}/bash_completion.d/%{name}
%{buildroot}%{_datadir}/bash-completion/completions/%{name}
%files
%license COPYING
%doc README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*
%{_sysconfdir}/bash_completion.d/%{name}
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/%{name}
%changelog
* Mon Jul 6 2020 Chris Brown <chris.brown@redhat.com> - 0.11.14-2
* Tue Jul 07 2020 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.11.14-3
- Fix bash completion path
* Mon Jul 06 2020 Chris Brown <chris.brown@redhat.com> - 0.11.14-2
- Add bash completion
- Enable Judy, libatomic and libgcrypt
- Switch source and URL to https
* Fri Jul 3 2020 Chris Brown <chris.brown@redhat.com> - 0.11.14-1
* Fri Jul 03 2020 Chris Brown <chris.brown@redhat.com> - 0.11.14-1
- Bump to 0.11.14
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.07.29-11