[Rpm-maint] [rpm-software-management/rpm] Dynamic Spec generation (#1485)

Sundeep Anand notifications at github.com
Wed Mar 3 13:22:53 UTC 2021


thanks @ffesti this groups `.mo` files by `language_id`, for example, in `__rpmbuild_gettext-runtime.lang.specpart` :+1: 

```%package lang-en at quot
Summary: en at quot translations for %{name}
%description lang-en at quot
Translations for package %{name} in en at quot
%files lang-en at quot
%lang(en at quot) /usr/share/locale/en at quot/LC_MESSAGES/gettext-runtime.mo
```

```%package lang-pt
Summary: pt translations for %{name}
%description lang-pt
Translations for package %{name} in pt
%files lang-pt
%lang(pt) /usr/share/locale/pt_BR/LC_MESSAGES/gettext-runtime.mo
%lang(pt) /usr/share/locale/pt/LC_MESSAGES/gettext-runtime.mo
```

```%package lang-zh
Summary: zh translations for %{name}
%description lang-zh
Translations for package %{name} in zh
%files lang-zh
%lang(zh) /usr/share/locale/zh_CN/LC_MESSAGES/gettext-runtime.mo
%lang(zh) /usr/share/locale/zh_HK/LC_MESSAGES/gettext-runtime.mo
%lang(zh) /usr/share/locale/zh_TW/LC_MESSAGES/gettext-runtime.mo
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1485#issuecomment-789710406
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210303/656956a8/attachment.html>


More information about the Rpm-maint mailing list