Once again: fg: no job control

I’m currently building a python3 program, it fails in the very last step, the installation:

37s] Provides: application() application(tryton.desktop) mimehandler(application/tryton) tryton = 5.0.0-lp150.16.1
37s] Requires(interp): /bin/sh /bin/sh
37s] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
37s] Requires(post): /bin/sh update-desktop-files
37s] Requires(postun): /bin/sh update-desktop-files
37s] Requires: /usr/bin/python3 python(abi) = 3.6
37s] Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/abuild/rpmbuild/BUILDROOT/tryton-5.0.0-lp150.16.1.x86_64
37s] Wrote: /home/abuild/rpmbuild/SRPMS/tryton-5.0.0-lp150.16.1.src.rpm
38s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/tryton-5.0.0-lp150.16.1.noarch.rpm
38s] Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Sh59Ku
38s] + umask 022
38s] + cd /home/abuild/rpmbuild/BUILD
38s] + cd tryton-5.0.0
38s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/tryton-5.0.0-lp150.16.1.x86_64
38s] + exit 0
38s] … checking for files with abuild user/group
38s] … running 00-check-install-rpms
38s] … installing all built rpms
38s] Preparing packages…
38s] tryton-5.0.0-lp150.16.1.noarch
38s] /var/tmp/rpm-tmp.cUzmQ7: line 3: fg: no job control

Usual suspect was the use of update-desktop-files in the post and postun section, but this is well defined (see https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25desktop_database_post_.2F_.25desktop_database_postun as well)

Here it is in the installation-check of the build rpms. Any idea what can be missing?
Package is https://build.opensuse.org/package/show/home:DocB:Tryton5/tryton


The desktop file macros are deprecated AFAIK for the newer releases, remove them both and see how it goes.

Indeed, if I switch off post and postun with
the build runs through. Next I will install and see how it works.

Thanks Malcolm!