Skip to content

Commit

Permalink
spec: Fix rpmlint error about creating the /usr/libexec/git/obs symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
dmach committed Nov 8, 2024
1 parent 8d11820 commit 291eb30
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions contrib/osc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
Expand Down

0 comments on commit 291eb30

Please sign in to comment.