Accepting request 985771 from openSUSE:Factory:RISCV

- Fix name of installable binaries

OBS-URL: https://build.opensuse.org/request/show/985771
OBS-URL: https://build.opensuse.org/package/show/games/godot?expand=0&rev=40
This commit is contained in:
c unix 2022-06-30 16:40:50 +00:00 committed by Git OBS Bridge
parent 45e7ae81fe
commit 5a4ab07bbf
2 changed files with 19 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 29 11:22:45 UTC 2022 - Andreas Schwab <schwab@suse.de>
- Fix name of installable binaries
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Mar 26 12:00:00 UTC 2022 - cunix@mail.de Sat Mar 26 12:00:00 UTC 2022 - cunix@mail.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package godot # spec file for package godot
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2022 SUSE LLC
# Copyright (c) 2017 Luke Jones, luke.nukem.jones@gmail.com # Copyright (c) 2017 Luke Jones, luke.nukem.jones@gmail.com
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -90,15 +90,15 @@ BuildRequires: mbedtls-devel
Requires: ca-certificates Requires: ca-certificates
Recommends: ca-certificates-mozilla Recommends: ca-certificates-mozilla
Requires(post): update-desktop-files Requires(post): update-desktop-files
Requires(postun): update-desktop-files Requires(postun):update-desktop-files
Recommends: %{name}-bash-completion Recommends: %{name}-bash-completion
Suggests: %{name}-headless = %{version} Suggests: %{name}-headless = %{version}
Suggests: %{name}-runner = %{version} Suggests: %{name}-runner = %{version}
Suggests: %{name}-server = %{version} Suggests: %{name}-server = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
# The following "Provides: bundled()" and comments were taken from the # The following "Provides: bundled()" and comments were taken from the
# Fedora Godot specfile. # Fedora Godot specfile.
# Link: https://src.fedoraproject.org/rpms/godot/blob/master/f/godot.spec # Link: https://src.fedoraproject.org/rpms/godot/blob/master/f/godot.spec
# Has some modifications for IPv6 support, upstream enet is unresponsive # Has some modifications for IPv6 support, upstream enet is unresponsive
@ -180,7 +180,7 @@ Recommends: ca-certificates-mozilla
Suggests: %{name}-bash-completion Suggests: %{name}-bash-completion
%description headless %description headless
This package is the headless version of the Godot editor that is suited for This package is the headless version of the Godot editor that is suited for
exporting Godot games on the command line. exporting Godot games on the command line.
%package runner %package runner
@ -332,7 +332,12 @@ scons %{build_args} platform=server tools=no target=release
%install %install
# Installing the editor # Installing the editor
install -D -p -m 755 bin/%{name}.x11.opt.tools.%{__isa_bits} %{buildroot}%{_bindir}/%{name} %ifarch riscv64
suffix=rv64
%else
suffix=%{__isa_bits}
%endif
install -D -p -m 755 bin/%{name}.x11.opt.tools.$suffix %{buildroot}%{_bindir}/%{name}
install -D -p -m 644 misc/dist/linux/godot.6 %{buildroot}/%{_mandir}/man6/%{name}.6%{?ext_man} install -D -p -m 644 misc/dist/linux/godot.6 %{buildroot}/%{_mandir}/man6/%{name}.6%{?ext_man}
install -D -p -m 644 icon.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png install -D -p -m 644 icon.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
@ -342,13 +347,13 @@ install -D -p -m 644 misc/dist/linux/org.godotengine.Godot.appdata.xml %{buildr
%if !0%{?faster_build} %if !0%{?faster_build}
# Installing the headless editor # Installing the headless editor
install -D -p -m 755 bin/%{name}_server.x11.opt.tools.%{__isa_bits} %{buildroot}%{_bindir}/%{name}-headless install -D -p -m 755 bin/%{name}_server.x11.opt.tools.$suffix %{buildroot}%{_bindir}/%{name}-headless
# Installing the runner # Installing the runner
install -D -p -m 755 bin/%{name}.x11.opt.%{__isa_bits} %{buildroot}%{_bindir}/%{name}-runner install -D -p -m 755 bin/%{name}.x11.opt.$suffix %{buildroot}%{_bindir}/%{name}-runner
# Installing the server # Installing the server
install -D -p -m 755 bin/%{name}_server.x11.opt.%{__isa_bits} %{buildroot}%{_bindir}/%{name}-server install -D -p -m 755 bin/%{name}_server.x11.opt.$suffix %{buildroot}%{_bindir}/%{name}-server
%endif %endif
# Installing bash-completion # Installing bash-completion