| |
@@ -1,6 +1,9 @@
|
| |
+ %global bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null)
|
| |
+ %global bashcomproot %(dirname %{bashcompdir} 2>/dev/null)
|
| |
+
|
| |
Name: bodhi
|
| |
Version: 3.8.1
|
| |
- Release: 2%{?dist}
|
| |
+ Release: 3%{?dist}
|
| |
BuildArch: noarch
|
| |
|
| |
License: GPLv2+
|
| |
@@ -76,6 +79,7 @@
|
| |
BuildRequires: koji
|
| |
BuildRequires: liberation-mono-fonts
|
| |
BuildRequires: packagedb-cli
|
| |
+ BuildRequires: pkgconfig(bash-completion)
|
| |
BuildRequires: pungi >= 4.1.20
|
| |
BuildRequires: python2-createrepo_c
|
| |
BuildRequires: python2-devel
|
| |
@@ -107,7 +111,6 @@
|
| |
Summary: Bodhi Client
|
| |
Group: Applications/Internet
|
| |
|
| |
- Requires: filesystem
|
| |
Requires: python3-bodhi-client == %{version}-%{release}
|
| |
|
| |
|
| |
@@ -307,14 +310,13 @@
|
| |
|
| |
%{__mkdir_p} %{buildroot}/var/lib/bodhi
|
| |
%{__mkdir_p} %{buildroot}/var/cache/bodhi
|
| |
- %{__mkdir_p} %{buildroot}%{_sysconfdir}/bash_completion.d
|
| |
%{__mkdir_p} %{buildroot}%{_sysconfdir}/httpd/conf.d
|
| |
%{__mkdir_p} %{buildroot}%{_sysconfdir}/fedmsg.d
|
| |
%{__mkdir_p} %{buildroot}%{_sysconfdir}/bodhi
|
| |
%{__mkdir_p} %{buildroot}%{_datadir}/%{name}
|
| |
%{__mkdir_p} -m 0755 %{buildroot}/%{_localstatedir}/log/bodhi
|
| |
|
| |
- %{__install} -m 0755 bodhi-complete.sh %{buildroot}%{_sysconfdir}/bash_completion.d
|
| |
+ %{__install} -Dpm 0755 bodhi-complete.sh %{buildroot}%{bashcompdir}/%{name}
|
| |
%{__install} -m 644 apache/%{name}.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
|
| |
%{__install} -m 640 production.ini %{buildroot}%{_sysconfdir}/%{name}/production.ini
|
| |
%{__install} -m 640 alembic.ini %{buildroot}%{_sysconfdir}/%{name}/alembic.ini
|
| |
@@ -366,7 +368,7 @@
|
| |
%files client
|
| |
%license COPYING
|
| |
%doc README.rst
|
| |
- %{_sysconfdir}/bash_completion.d/bodhi-complete.sh
|
| |
+ %{bashcomproot}
|
| |
%{_bindir}/bodhi
|
| |
%{_mandir}/man1/bodhi.1*
|
| |
|
| |
@@ -444,6 +446,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Thu Jun 21 2018 Todd Zullinger <tmz@pobox.com> - 3.8.1-3
|
| |
+ - Use recommended directory for bash-completion file
|
| |
+
|
| |
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 3.8.1-2
|
| |
- Rebuilt for Python 3.7
|
| |
|
| |
Hi,
I noticed that bodhi-client installs its bash-completion script in
/etc/bash_completion.d
. The recommended location is/usr/share/bash-completion/completions
(defined viapkg-config
). The old location has several downsides (primarily the lack of on-demand loading of completions and the rpmlintnon-conffile-in-etc
warning).The completion is installed as
bodhi
because the on-demand completion support looks for the completion file based on the the command name being completed. Let me know if that's something which you feel should be noted in the commit message and/or spec file.While I was here, I simplified the
.gitignore
file. I also dropped themkdir -p
for the completion directory and usedinstall -D
to install the completion file;install -D
creates all leading directories.