Request for review: koffice
Rex Dieter
rdieter at math.unl.edu
Fri Jul 1 14:30:22 UTC 2005
Tom 'spot' Callaway wrote:
> On Fri, 2005-07-01 at 08:57 -0500, Rex Dieter wrote:
>
>
>>2. Use %lang(_locale_) in %files section for all
>>%{_datadir}/locale/_locale_/LC_MESSAGES/*
>>%{_datadir}/doc/HTML/_locale_/*
>>bits, e.g.
>>%lang(de) %{_datadir}/locale/de/*
>>%lang(de) %{_datadir}/doc/HTML/de/*
>
>
> Better yet, split out the langpacks that are in separate source files
> and use %find_lang to scoop up the locales. (I don't think it will catch
> the HTML docs, so you should still do as Rex suggests for those files).
If packaging them separately, here's a little scriptlet code I use at
the end of %install for a lot kde packages to catch both locale and HTML
doc bits:
## File lists
# locale's
%find_lang %{name} || touch %{name}.lang
# HTML
HTML_DIR=$(kde-config --expandvars --install html)
if [ -d $RPM_BUILD_ROOT$HTML_DIR ]; then
for lang_dir in $RPM_BUILD_ROOT$HTML_DIR/* ; do
lang=$(basename $lang_dir)
echo "%lang($lang) %doc $HTML_DIR/$lang/*" >> %{name}.lang
done
fi
Then
%files -f %{name}.lang
and you're done.
-- Rex
More information about the fedora-extras-list
mailing list