mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-05 15:13:39 +02:00
spec: Install symlink /usr/bin/git-obs to /usr/libexec/git/obs to make git-obs available as a git sub-command
This commit is contained in:
@@ -81,7 +81,7 @@ BuildRequires: diffstat
|
||||
%if %{with fdupes}
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
# needed for git scm tests
|
||||
# needed for git scm tests and directory ownership of /usr/libexec/git for git-obs symlink
|
||||
BuildRequires: git-core
|
||||
|
||||
Requires: %{use_python_pkg}-cryptography
|
||||
@@ -147,6 +147,10 @@ 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}
|
||||
@@ -171,6 +175,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
|
||||
|
||||
# create plugin dirs
|
||||
install -d %{buildroot}%{osc_plugin_dir}
|
||||
install -d %{buildroot}%{_sharedstatedir}/osc-plugins
|
||||
@@ -212,6 +219,7 @@ install -Dm0644 oscrc.5 %{buildroot}%{_mandir}/man5/oscrc.5
|
||||
|
||||
# executables
|
||||
%{_bindir}/*
|
||||
%{_libexecdir}/git/obs
|
||||
|
||||
# python modules
|
||||
%{python_sitelib}/osc
|
||||
|
Reference in New Issue
Block a user