On 2016-01-08, Mark Wielaard <m...@redhat.com> wrote:
> On Fri, 2016-01-08 at 08:31 +0000, Petr Pisar wrote:
>> RPM has a run-time macro allowing to exclude localization files from
>> installing them. That's the reason why the message catalog files, if
>> packaged properly, carry a language attribute in the binary RPM package
>> metadata.
>
> Is there a description of this so I can check I did it correctly for my
> package?
>
There was rpm2xml (or something like that) tool that listed RPM package
content in XML format and it printed file attributes that carry the
language value. But the tool was removed from rpm. I cannot remember any
other way how to obtain the data.

Basically, if your spec file uses %find_lang to gather and mark the
language attributes, the package should be fine.

>> Utilizing this feature (as well as documentation stripping) is job for
>> a package manager. For DNF.
>
> How does DNF do this?
> How would I (de)install/scrub (un)needed translations from my system?
>
I think DNF does not support it.

But it should work on rpm level. See %_install_langs in
/usr/lib/rpm/macros. I guess if you set the macro to empty or `C' value,
and reinstall a package, its locale files should disappear from the file
system.

And because DNF uses rpm for installation, I believe it should affect
packages installed by DNF too.

-- Petr

--
devel mailing list
devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org

Reply via email to