https://bugzilla.redhat.com/show_bug.cgi?id=2160996
--- Comment #14 from Arthur Bols arthur@bols.dev --- (In reply to Luya Tshimbalanga from comment #11)
How to properely implement the help2man for the case above? I vainly tried
help2man -N -o %{buildroot}%{_mandir}/man5/%{name}_decoder.1-%{version} \ --no-discard-stderr %{buildroot}/%{_bindir}/%{name}_decoder-%{version} help2man -N -o %{buildroot}%{_mandir}/man5/%{name}_encoder.1-%{version} \ --no-discard-stderr %{buildroot}/%{_bindir}/%{name}_encoder-%{version}
I can't get rid of the warning message either... If you really want to solve it, you could try asking on the devel list. In my opinion, it doesn't really matter since draco_decoder is just a symlink to draco_decoder-1.5.5, and the man page works fine.
I think this will create the most useful manpages:
mkdir -p %{buildroot}%{_mandir}/man1 help2man -N --version-string=%{version} -o %{buildroot}%{_mandir}/man1/%{name}_decoder-%{version}.1 %{buildroot}/%{_bindir}/%{name}_decoder help2man -N --version-string=%{version} -o %{buildroot}%{_mandir}/man1/%{name}_encoder-%{version}.1 %{buildroot}/%{_bindir}/%{name}_encoder
cd %{buildroot}%{_mandir}/man1 ln -s %{name}_decoder-%{version}.1 %{name}_decoder.1 ln -s %{name}_encoder-%{version}.1 %{name}_encoder.1
%{_mandir}/man1/%{name}_decoder.1* %{_mandir}/man1/%{name}_encoder.1* %{_mandir}/man1/%{name}_decoder-%{version}.1* %{_mandir}/man1/%{name}_encoder-%{version}.1*
So what I did: - Run help2man against draco_decoder to not include the version number in the command name (I couldn't find a better way to do this). - Add --version-string=%{version} Otherwise the --help output is included twice - Create a symlink from draco_decoder to draco_decoder-%{version} This makes sure `man draco_decoder` and `man draco_decoder-1.5.5` work.
Hm, in that condition, running the test is unfeasible in the current state it is temporarily disabled for the time being.
That's fine.
- I just noticed an inconsistent use of macros: For %files devel you used:
%{_libdir}/lib%{name}.so
But for %files:
%{_libdir}/libdraco.so.7 %{_libdir}/libdraco.so.7.0.0
I couldn't find any more issues, so hopefully this is the last iteration! :)