RPM package spec localization

581 views Asked by At

I need to package proprietary program for Russian local market.
To build RPM package, i used this guide: https://stackoverflow.com/a/1165200/1794089

So, i need to translate RPM package description to Russian, i.e. localize them. I'm googled that method: https://www.redhat.com/archives/rpm-list/2004-January/msg00062.html

But it not work: in Fedora 21 x64 software installation center still show package summary/description in English - while system locale is ru_RU.UTF-8.

What am i doing wrong?

SPEC file fragment:

...
Summary: Test
Summary(ru): Тест
...
License: Proprietary
...

%description
 Test application

%description -l ru
 Тестовое приложение
1

There are 1 answers

9
Jeff Johnson On

The link (https://www.redhat.com/archives/rpm-list/2004-January/msg00062.html) you posted mentions specspo: specspo is a look aside cache for the group/description/summary tags that is in gettext PO format to simplify translating large scale distro-wide translations of package metadata.

Short answer: If specspo is installed, then group/summary/description tags in the package are not used.