diff --git a/osc.changes b/osc.changes index c287b83..043c41d 100644 --- a/osc.changes +++ b/osc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Dec 5 13:17:15 UTC 2014 - seife+obs@b1-systems.com + +- fix bash completion (complete is not propagated into subshells, + but PROFILEREAD is, so the setup script is never executed) + ------------------------------------------------------------------- Fri Nov 14 12:46:34 UTC 2014 - suse-tux@gmx.de diff --git a/osc.spec b/osc.spec index 7c5ab29..fd6ca0d 100644 --- a/osc.spec +++ b/osc.spec @@ -104,7 +104,11 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} ln -s osc-wrapper.py %{buildroot}/%{_bindir}/osc mkdir -p %{buildroot}%{_localstatedir}/lib/osc-plugins install -Dm0644 dist/complete.csh %{buildroot}%{_sysconfdir}/profile.d/osc.csh +%if 0%{?suse_version} +install -Dm0644 dist/complete.sh %{buildroot}%{_sysconfdir}/bash_completion.d/osc.sh +%else install -Dm0644 dist/complete.sh %{buildroot}%{_sysconfdir}/profile.d/osc.sh +%endif %if 0%{?suse_version} > 1110 install -Dm0755 dist/osc.complete %{buildroot}%{_prefix}/lib/osc/complete %else @@ -120,7 +124,11 @@ rm -rf %{buildroot} %{_bindir}/osc* %{python_sitelib}/* %config %{_sysconfdir}/profile.d/osc.csh +%if 0%{?suse_version} +%config %{_sysconfdir}/bash_completion.d/osc.sh +%else %config %{_sysconfdir}/profile.d/osc.sh +%endif %dir %{_localstatedir}/lib/osc-plugins %{_mandir}/man1/osc.* %if 0%{?suse_version} > 1110