SHA256
1
0
forked from pool/systemd
Dr. Werner Fink 2014-03-03 14:58:29 +00:00 committed by Git OBS Bridge
parent aec138cda7
commit 9835d6581d
4 changed files with 36 additions and 8 deletions

View File

@ -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 Mon Mar 3 13:58:11 UTC 2014 - werner@suse.de

View File

@ -781,6 +781,17 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/random-seed
%fdupes -s %{buildroot}%{_mandir} %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 %if 0%{suse_version} >= 1310
# packaged in systemd-rpm-macros # packaged in systemd-rpm-macros
rm -f %{buildroot}/%{_prefix}/lib/rpm/macros.d/macros.systemd rm -f %{buildroot}/%{_prefix}/lib/rpm/macros.d/macros.systemd
@ -1163,13 +1174,10 @@ exit 0
%ghost %{_localstatedir}/lib/systemd/random-seed %ghost %{_localstatedir}/lib/systemd/random-seed
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
%files bash-completion %files bash-completion -f files.completion
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{_datadir}/bash-completion %dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions %dir %{_datadir}/bash-completion/completions
%if %{without bash_completion}
%exclude %{_datadir}/bash-completion/completions/systemd-analyze
%endif
%{_datadir}/bash-completion/completions/* %{_datadir}/bash-completion/completions/*
%endif %endif

View File

@ -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 Mon Mar 3 13:58:11 UTC 2014 - werner@suse.de

View File

@ -776,6 +776,17 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/random-seed
%fdupes -s %{buildroot}%{_mandir} %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 %if 0%{suse_version} >= 1310
# packaged in systemd-rpm-macros # packaged in systemd-rpm-macros
rm -f %{buildroot}/%{_prefix}/lib/rpm/macros.d/macros.systemd rm -f %{buildroot}/%{_prefix}/lib/rpm/macros.d/macros.systemd
@ -1158,13 +1169,10 @@ exit 0
%ghost %{_localstatedir}/lib/systemd/random-seed %ghost %{_localstatedir}/lib/systemd/random-seed
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
%files bash-completion %files bash-completion -f files.completion
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{_datadir}/bash-completion %dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions %dir %{_datadir}/bash-completion/completions
%if %{without bash_completion}
%exclude %{_datadir}/bash-completion/completions/systemd-analyze
%endif
%{_datadir}/bash-completion/completions/* %{_datadir}/bash-completion/completions/*
%endif %endif