- expand __python3 with python3 to work outside suse rpm packaging
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-set_version?expand=0&rev=138
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 20 07:59:18 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- expand __python3 with python3 to work outside suse rpm packaging
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 18 15:31:41 UTC 2024 - dmueller@suse.com
|
||||
|
||||
|
@@ -40,9 +40,7 @@ BuildRequires: python3-flake8
|
||||
BuildRequires: python3-packaging
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} > 1315
|
||||
Requires: python3-base
|
||||
%else
|
||||
%if !0%{?suse_version}
|
||||
Requires: python3
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
@@ -69,7 +67,7 @@ mkdir -p %{buildroot}%{_prefix}/lib/obs/service
|
||||
install -m 0755 set_version %{buildroot}%{_prefix}/lib/obs/service
|
||||
install -m 0644 set_version.service %{buildroot}%{_prefix}/lib/obs/service
|
||||
# Doing %%python3_fix_shebang_path old fashioned way for the backward compatibility
|
||||
sed -i "1s@#\\!.*python\S*@#\\!$(realpath %__python3)@" \
|
||||
sed -i "1s@#\\!.*python\S*@#\\!$(realpath /usr/bin/python3)@" \
|
||||
%{buildroot}%{_prefix}/lib/obs/service/set_version
|
||||
|
||||
%files
|
||||
|
Reference in New Issue
Block a user