Fix man file pattern when building with custom _prefix
Man pages are usually compressed and gets the .gz extension when rpmbuild invokes /usr/lib/rpm/brp-compress . But even though %_mandir is %{_datadir}/man and %_datadir is %{_prefix}/share , brp-compress isn't informed about the actual _prefix and will always only process /usr . That seems like a bug. For now, we will work around it. Building with custom _prefix seems to be essentially what flatpak is doing, but I don't know if that is an actual problem there. Being able to build with a custom _prefix seems like a fine goal anyway. It is not a problem to relax the globs. This is also documented on https://docs.fedoraproject.org/en-US/flatpak/troubleshooting/#_uncompressed_manual_pages .
This commit is contained in:
parent
fa0932867b
commit
9562d17014
@ -232,7 +232,7 @@ rm -rf %{buildroot}%{python3_sitearch}/mercurial/locale
|
||||
|
||||
%files -f %{name}-base.files -f hg.lang
|
||||
%doc CONTRIBUTORS COPYING doc/README doc/hg*.html hgweb.cgi contrib/hgweb.fcgi contrib/hgweb.wsgi
|
||||
%doc %attr(644,root,root) %{_mandir}/man?/hg*.gz
|
||||
%doc %attr(644,root,root) %{_mandir}/man?/hg*
|
||||
%doc %attr(644,root,root) contrib/*.svg
|
||||
%dir %{python3_sitearch}/%{name}-*-py*.egg-info
|
||||
%dir %{_datadir}/zsh/
|
||||
@ -259,7 +259,7 @@ rm -rf %{buildroot}%{python3_sitearch}/mercurial/locale
|
||||
|
||||
%files chg
|
||||
%{_bindir}/chg
|
||||
%doc %attr(644,root,root) %{_mandir}/man?/chg.*.gz
|
||||
%doc %attr(644,root,root) %{_mandir}/man?/chg.*
|
||||
|
||||
%if %{with rust}
|
||||
%files rust
|
||||
|
Loading…
Reference in New Issue
Block a user