[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: find_lang
- From: Michael Schwendt <bugs michael gmx net>
- To: fedora-extras-list redhat com
- Subject: Re: find_lang
- Date: Wed, 4 Apr 2007 20:08:51 +0200
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.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]