forked from pool/systemd
.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=531
This commit is contained in:
parent
756e5f595b
commit
66ee01ae10
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 3 14:49:48 UTC 2014 - werner@suse.de
|
||||
|
||||
- Generate the bash completion files on the fly for th ecase of
|
||||
not having the package bash-completion around
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 3 13:58:11 UTC 2014 - werner@suse.de
|
||||
|
||||
|
@ -781,6 +781,17 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/random-seed
|
||||
|
||||
%fdupes -s %{buildroot}%{_mandir}
|
||||
|
||||
%if ! 0%{?bootstrap}
|
||||
for f in %{buildroot}%{_datadir}/bash-completion/completions/*
|
||||
do
|
||||
test -e "$f" || break
|
||||
grep -q _init_completion "$f" || continue
|
||||
echo "%exclude %{_datadir}/bash-completion/completions/${f##*}"
|
||||
done > files.completion
|
||||
%else
|
||||
> files.completion
|
||||
%endif
|
||||
|
||||
%if 0%{suse_version} >= 1310
|
||||
# packaged in systemd-rpm-macros
|
||||
rm -f %{buildroot}/%{_prefix}/lib/rpm/macros.d/macros.systemd
|
||||
@ -1163,13 +1174,10 @@ exit 0
|
||||
%ghost %{_localstatedir}/lib/systemd/random-seed
|
||||
|
||||
%if ! 0%{?bootstrap}
|
||||
%files bash-completion
|
||||
%files bash-completion -f files.completion
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_datadir}/bash-completion
|
||||
%dir %{_datadir}/bash-completion/completions
|
||||
%if %{without bash_completion}
|
||||
%exclude %{_datadir}/bash-completion/completions/systemd-analyze
|
||||
%endif
|
||||
%{_datadir}/bash-completion/completions/*
|
||||
%endif
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 3 14:49:48 UTC 2014 - werner@suse.de
|
||||
|
||||
- Generate the bash completion files on the fly for th ecase of
|
||||
not having the package bash-completion around
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 3 13:58:11 UTC 2014 - werner@suse.de
|
||||
|
||||
|
16
systemd.spec
16
systemd.spec
@ -776,6 +776,17 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/random-seed
|
||||
|
||||
%fdupes -s %{buildroot}%{_mandir}
|
||||
|
||||
%if ! 0%{?bootstrap}
|
||||
for f in %{buildroot}%{_datadir}/bash-completion/completions/*
|
||||
do
|
||||
test -e "$f" || break
|
||||
grep -q _init_completion "$f" || continue
|
||||
echo "%exclude %{_datadir}/bash-completion/completions/${f##*}"
|
||||
done > files.completion
|
||||
%else
|
||||
> files.completion
|
||||
%endif
|
||||
|
||||
%if 0%{suse_version} >= 1310
|
||||
# packaged in systemd-rpm-macros
|
||||
rm -f %{buildroot}/%{_prefix}/lib/rpm/macros.d/macros.systemd
|
||||
@ -1158,13 +1169,10 @@ exit 0
|
||||
%ghost %{_localstatedir}/lib/systemd/random-seed
|
||||
|
||||
%if ! 0%{?bootstrap}
|
||||
%files bash-completion
|
||||
%files bash-completion -f files.completion
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_datadir}/bash-completion
|
||||
%dir %{_datadir}/bash-completion/completions
|
||||
%if %{without bash_completion}
|
||||
%exclude %{_datadir}/bash-completion/completions/systemd-analyze
|
||||
%endif
|
||||
%{_datadir}/bash-completion/completions/*
|
||||
%endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user