The complete hello.spec was reported not building because of missing
texinfo.
The real problem is an automagic dependency on info package. If info
is installed, %{_infodir}/dir is generated. Otherwise, %{_infodir}/dir
is not generated, yet hello.info is correctly installed.
This commit fixes this by a conditional removal of %{_infodir}/dir.
This commit also adds BuildRequires on bash, coreutils, glibc-common,
and sed. They are used, but were not declared.
This commit also explicitly enabled NLS support and disables RPATH
feature, to be in line current Fedora packaging custom to support
native languages and not rely on RPATH.
The complete hello.spec was reported not building because of missing
texinfo.
The real problem is an automagic dependency on info package. If info
is installed, %{_infodir}/dir is generated. Otherwise, %{_infodir}/dir
is not generated, yet hello.info is correctly installed.
This commit fixes this by a conditional removal of %{_infodir}/dir.
This commit also adds BuildRequires on bash, coreutils, glibc-common,
and sed. They are used, but were not declared.
This commit also explicitly enabled NLS support and disables RPATH
feature, to be in line current Fedora packaging custom to support
native languages and not rely on RPATH.
Tested on Fedora 39, 37, and 36.
https://pagure.io/fedora-docs/package-maintainer-docs/issue/97