public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-xapp] rawhide: Add locale files support
@ 2026-07-25 18:01 Michal Schorm
  0 siblings, 0 replies; only message in thread
From: Michal Schorm @ 2026-07-25 18:01 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-xapp
            Branch : rawhide
            Commit : ec163e114888cfa5a40928e1af515d66fb5b4057
            Author : Michal Schorm <mschorm@redhat.com>
            Date   : 2026-07-25T15:55:46+02:00
            Stats  : +3/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-xapp/c/ec163e114888cfa5a40928e1af515d66fb5b4057?branch=rawhide

            Log:
            Add locale files support

The source ships 43 .po files and 'po/meson.build' uses
'i18n.gettext()' to compile and install them, but the spec did not
package any translations. Add:
- BuildRequires: 'gettext' (needed by meson i18n module)
- '%find_lang python-xapp' after %install
- '-f python-xapp.lang' to the %files section

Linux Mint divergence: LM does not declare 'gettext' as a
build-dep (relies on debhelper pulling it in implicitly). LM also
does not explicitly handle translations in its packaging rules.

Upstream references:
- i18n module import: https://github.com/linuxmint/python-xapp/blob/3.0.3/meson.build#L6
- i18n.gettext() call: https://github.com/linuxmint/python-xapp/blob/3.0.3/po/meson.build#L1

Co-Authored-By: Claude AI <noreply@anthropic.com>

---
diff --git a/python-xapp.spec b/python-xapp.spec
index 4ff0703..d49fef2 100644
--- a/python-xapp.spec
+++ b/python-xapp.spec
@@ -8,6 +8,7 @@ URL:            https://github.com/linuxmint/%{name}
 Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
 
 BuildArch:      noarch
+BuildRequires:  gettext
 
 %description
 %{summary}.
@@ -39,9 +40,10 @@ Requires:      xapps
 
 %install
 %meson_install
+%find_lang python-xapp
 
 
-%files -n python3-xapp
+%files -n python3-xapp -f python-xapp.lang
 %license COPYING debian/copyright
 %doc PKG-INFO debian/changelog
 %{python3_sitelib}/xapp/

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-25 18:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-25 18:01 [rpms/python-xapp] rawhide: Add locale files support Michal Schorm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox