Re: find_lang

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 03 Apr 2007 15:25:52 -0700, livinded wrote:

> Why would I cat language files into that. find_lang is supposed to do
> that for me.

Probably you've misunderstood the reply you've got. The find_lang 
macro in redhat-rpm-config is not up-to-date and less "mighty" than
than /usr/lib/rpm/find-lang.sh in that it lacks the --all-name
option you look for. As a work-around, you can either do

  %find_lang name1
  %find_lang name2
  cat name2.lang >> name1.lang

  %files -f name1.lang

with as many names as you need.


Or you call /usr/lib/rpm/find-lang.sh explicitly instead of using
%find_lang:

  /usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT %name --all-name

  %files -f %name.lang


Or (and *only* if the language files have a common prefix!) you can do a
nasty thing like this:

  %find_lang name.\*

  %files -f name.\*.lang

Here, "name.\*" is both a regular expression and the file name for the
.lang file. Looks weird'n'ugly, is weird'n'ugly, but still works.

-- 
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux