There is a mistake in the openjpeg-dotnet Makefile.
When building on a S390X architecture, a variable ARCH is set in the Makefile with an incorrect extra space ('S390X '). This messes up with the compilation process when building the shared library, since the ARCH variable is appended to the name of the library.
The compilation process rises no errors, but ends up by creating two files : "libopenjpeg-dotnet-22.214.171.124-dotnet-1-s390x" and ".so", instead of the wanted one "libopenjpeg-dotnet-126.96.36.199-dotnet-1-s390x.so"
The error is trivial to correct : just remove the extra space in openjpeg-dotnet/Makefile:26:16
Run make in the openjpeg-dotnet/ directory on a S390X architecture.
Patch applied, thanks!