File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ BuildRequires: diffstat
8181%if %{with fdupes }
8282BuildRequires: fdupes
8383%endif
84- # needed for git scm tests
84+ # needed for git scm tests and directory ownership of /usr/libexec/git for git-obs symlink
8585BuildRequires: git-core
8686
8787Requires: %{use_python_pkg }-cryptography
@@ -147,6 +147,10 @@ for a general introduction.
147147%build
148148%{use_python } setup.py build
149149
150+ # symlink /usr/bin/git-obs to /usr/libexec/git/obs
151+ mkdir -p %{buildroot }%{_libexecdir }/git
152+ ln -s %{_bindir }/git-obs %{buildroot }%{_libexecdir }/git/obs
153+
150154# write rpm macros
151155cat << EOF > macros.osc
152156%%osc_plugin_dir %{osc_plugin_dir }
@@ -171,6 +175,9 @@ sphinx-build -b man doc .
171175%install
172176%{use_python } setup.py install -O1 --skip-build --force --root %{buildroot } --prefix %{_prefix }
173177
178+ # copy git obs sub-command symlink
179+ install -d %{buildroot }%{_libexecdir }/git/obs
180+
174181# create plugin dirs
175182install -d %{buildroot }%{osc_plugin_dir }
176183install -d %{buildroot }%{_sharedstatedir }/osc-plugins
@@ -212,6 +219,7 @@ install -Dm0644 oscrc.5 %{buildroot}%{_mandir}/man5/oscrc.5
212219
213220# executables
214221%{_bindir }/*
222+ %{_libexecdir }/git/obs
215223
216224# python modules
217225%{python_sitelib }/osc
You can’t perform that action at this time.
0 commit comments