From 291eb305f771c6ad9aa5114abaa65a4f47b3b4fc Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Fri, 8 Nov 2024 13:46:58 +0100 Subject: [PATCH] spec: Fix rpmlint error about creating the /usr/libexec/git/obs symlink --- contrib/osc.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/contrib/osc.spec b/contrib/osc.spec index b2de7726c..65cdd4def 100644 --- a/contrib/osc.spec +++ b/contrib/osc.spec @@ -148,10 +148,6 @@ for a general introduction. %build %{use_python} setup.py build -# symlink /usr/bin/git-obs to /usr/libexec/git/obs -mkdir -p %{buildroot}%{_libexecdir}/git -ln -s %{_bindir}/git-obs %{buildroot}%{_libexecdir}/git/obs - # write rpm macros cat << EOF > macros.osc %%osc_plugin_dir %{osc_plugin_dir} @@ -176,8 +172,9 @@ sphinx-build -b man doc . %install %{use_python} setup.py install -O1 --skip-build --force --root %{buildroot} --prefix %{_prefix} -# copy git obs sub-command symlink -install -d %{buildroot}%{_libexecdir}/git/obs +# symlink /usr/bin/git-obs to /usr/libexec/git/obs +mkdir -p %{buildroot}%{_libexecdir}/git +ln -s %{_bindir}/git-obs %{buildroot}%{_libexecdir}/git/obs # create plugin dirs install -d %{buildroot}%{osc_plugin_dir}