diff --git a/git.spec b/git.spec index a5da50b1cf073aa4cfe5d685037cb3b3cf5c6789..25b986f8a362d23c48535c7169ec12ce474c6b6e 100644 --- a/git.spec +++ b/git.spec @@ -1,7 +1,7 @@ %global gitexecdir %{_libexecdir}/git-core Name: git Version: 2.23.0 -Release: 12 +Release: 13 Summary: A popular and widely used Version Control System License: GPLv2+ or LGPLv2.1 URL: https://git-scm.com/ @@ -171,6 +171,10 @@ install -p -m 644 README.md %{buildroot}%{_pkgdocdir} install -p -m 644 gitweb/INSTALL %{buildroot}%{_pkgdocdir}/INSTALL.gitweb install -p -m 644 gitweb/README %{buildroot}%{_pkgdocdir}/README.gitweb +#setup bash completion +install -Dpm 644 contrib/completion/git-completion.bash %{buildroot}%{_datadir}/bash-completion/completion/git +ln -s git %{buildroot}%{_datadir}/bash-completion/completion/gitk + # install contrib to git-core mkdir -p %{buildroot}%{_datadir}/git-core/contrib/completion mv contrib/hooks/multimail/git_multimail{.py,} @@ -221,6 +225,7 @@ make test %files -f git-bin-files %defattr(-,root,root) %{_datadir}/git-core/ +%{_datadir}/bash-completion/completion %doc README.md %license LGPL-2.1 COPYING @@ -271,8 +276,13 @@ make test %{_mandir}/man7/git*.7.* %changelog -* Thu Mar 19 2020 openEuler Buildteam - 2.2 -3.0-12 +* Tue Apr 14 2020 openEuler Buildteam - 2.23.0-13 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:setup bash completion + +* Thu Mar 19 2020 openEuler Buildteam - 2.23.0-12 - skip updating the preference during running test suite * Sat Mar 14 2020 openEuler Buildteam - 2.23.0-11