On Tue, Mar 14, 2017 at 5:28 PM, jan matejek <jmatejek@suse.com> wrote:
to answer my own question, after doing some research and talking to tchvatal:
* brp_compress compresses every uncompressed manpage found in %_mandir * resulting manpage filename is foo.1%{ext_man} (hardcoding ".gz" is discouraged) * this should also be the name in /etc/alternatives
so, steps to properly install an alternativized manpage:
1. ensure that the targets exist in uncompressed form: %{_mandir}/man1/foo-altA.1 %{_mandir}/man1/foo-altB.1 2. ensure that neither foo.1 nor foo.1%{ext_man} exists 3. touch %{_sysconfdir}/alternatives/foo.1%{ext_man}
Is not it job of update-alternatives to maintain this file? How is empty file useful here?
ln -sf %{_sysconfdir}/alternatives/foo.1%{ext_man} %{_mandir}/man1/foo.1%{ext_man} 4. in install-alternatives, use link %{_mandir}/man1/foo.1%{ext_man}, name foo.1%{ext_man} and path %{_mandir}/man1/foo.1%{ext_man}
this is also what the singlespec helpers will do from now on
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org