Re: find_lang
Dmitry Mikhirev <[email protected]> Mon, 23 Jan 2012 13:55:55 +0400
| Newsgroups | gmane.linux.mandrake.cooker.devel |
|---|---|
| Organization | Mezon.Ru |
| Message-ID | <[email protected]> |
On Mon, 28 Nov 2011 20:59:24 +0100 Per Øyvind Karlsen <[email protected]> wrote: > Den 20:23 28. november 2011 skrev Tomasz Paweł Gajc > <[email protected]> følgende: > > > > Does this macro still work ? > Yes, but /usr/lib/rpm/mandriva/find-lang.pl has been replaced by rpm's > own /usr/lib/rpm/find-lang.sh. > > It has two important behaviour changes: > * If specifying multiple names, they need to be specified first, while > the last argument needs to > be the output filename, ie. the following: > > %find_lang foo foo bar > > Needs to be changed to: > %find_lang foo bar foo.lang > > * If no files are found, the script will exit with an error status > rather than creating an empty .lang file > This will break build of packages which incorrectly uses %find_lang > where there are no language files > to find since the 'foo.lang' file used with '%files -f foo.lang' won't > be created. > find-lang.sh will report there being no language files found when > exiting with error, so should be easy to > understand and fix. :) > > -- > Regards, > Per Øyvind > I have a problem with finding localization files in qupzilla package. They are located in %{_datadir}/%{name}/locale/*.qm, but macro %find_lang %{name} --with-qt fails... Is it my mistake or find_lang error? -- Best regards, Dmitry Mikhirev http://gnu.linuxcenter.ru