On Mon, 18 Jul 2011 09:45:33 +0100, RWMJ (Richard) wrote:

> On Mon, Jul 18, 2011 at 10:09:21AM +0200, Andreas Bierfert wrote:
> > On Mon, 2011-07-18 at 08:57 +0100, Richard W.M. Jones wrote:
> > > I have a package that supplies translated man pages (only in Ukrainian
> > > strangely enough).  They are installed by the upstream under:
> > > 
> > >   %{_mandir}/uk/man1/
> > >   %{_mandir}/uk/man3/
> > 
> > I would use
> > 
> > %lang(uk) %{_mandir}/uk/man1/foo.1*
> > 
> > in this case.
> 
> %lang "marks certain files as only being of use with particular
> languages" according to [1].  Does RPM do anything else with these
> annotations?
> 
> Rich.
> 
> [1] 
> http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s05s04.html
> 

One can define a system's %_install_langs variable appropriately and have RPM
install only files in specific languages. Not solely for saving space, but to
exclude documentation in languages the users don't understand anyway.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to