public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ibus-anthy] f44: Use PYTHON for era.py
@ 2026-06-01  9:45 Takao Fujiwara
  0 siblings, 0 replies; only message in thread
From: Takao Fujiwara @ 2026-06-01  9:45 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ibus-anthy
Branch : f44
Commit : 63dc712fe7fd48a296d94352b2ac734110df00e6
Author : Takao Fujiwara <tfujiwar@redhat.com>
Date   : 2026-06-01T18:44:49+09:00
Stats  : +59/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/ibus-anthy/c/63dc712fe7fd48a296d94352b2ac734110df00e6?branch=f44

Log:
Use PYTHON for era.py

---
diff --git a/ibus-anthy-HEAD.patch b/ibus-anthy-HEAD.patch
index e69de29..b9f4820 100644
--- a/ibus-anthy-HEAD.patch
+++ b/ibus-anthy-HEAD.patch
@@ -0,0 +1,58 @@
+From 4d19bf9918be970b76fefc1fb24dfd8cb433e189 Mon Sep 17 00:00:00 2001
+From: fujiwarat <takao.fujiwara1@gmail.com>
+Date: Thu, 7 May 2026 21:31:20 +0900
+Subject: [PATCH] data/Makefile: Use PYTHON for era.py
+
+Some distros do not have python3 but python3.11 for example.
+
+Closes: #48
+---
+ data/Makefile.am | 24 +++++++++++++++---------
+ 1 file changed, 15 insertions(+), 9 deletions(-)
+
+diff --git a/data/Makefile.am b/data/Makefile.am
+index c13d273..ecfe804 100644
+--- a/data/Makefile.am
++++ b/data/Makefile.am
+@@ -85,23 +85,29 @@ endif
+ era.t: era.stamp
+ 
+ era.stamp:
++	make_era_t=0; \
+ 	if test -f $(srcdir)/era.t ; then \
+-	    if ! $(srcdir)/era.py --check $(srcdir)/era.t ; then \
++	    if ! $(PYTHON) $(srcdir)/era.py --check $(srcdir)/era.t ; then \
+ 	        rm $(srcdir)/era.t; \
+-	        $(srcdir)/era.py $(srcdir)/era.t.in \
+-                    --output $(builddir)/era.t; \
+-	        echo "Generate era.t"; \
++	        make_era_t=1; \
+ 	    fi; \
++	else \
++	    make_era_t=1; \
++	fi; \
++	if test $$make_era_t -eq 1 ; then \
++	    if ! $(PYTHON) $(srcdir)/era.py $(srcdir)/era.t.in \
++	        --output $(builddir)/era.t ; then \
++	        exit 1; \
++	    fi; \
++	    echo "Generate era.t"; \
+ 	fi; \
+ 	touch era.stampT; \
+ 	mv era.stampT era.stamp;
+ 
+ check:
+-	if test -f $(srcdir)/era.t ; then \
+-	    $(srcdir)/era.py --check $(srcdir)/era.t; \
+-	else \
+-	    $(srcdir)/era.py --check $(builddir)/era.t; \
+-	fi
++	file=$(builddir)/era.t; \
++	test -f "$$file" || file=$(srcdir)/era.t; \
++	$(PYTHON) $(srcdir)/era.py --check "$$file";
+ 
+ install-data-hook:
+ 	if test -z "$(DESTDIR)"; then \
+-- 
+2.54.0
+

diff --git a/ibus-anthy.spec b/ibus-anthy.spec
index 3293746..4babb84 100644
--- a/ibus-anthy.spec
+++ b/ibus-anthy.spec
@@ -27,6 +27,7 @@ Source1:        https://github.com/ibus/%{name}/releases/download/%{version}/%{n
 
 # Upstreamed patches.
 # Patch0:         %%{name}-HEAD.patch
+Patch0:         %{name}-HEAD.patch
 Patch1:         %{name}-1938129-default-hiragana.patch
 
 BuildRequires:  anthy-unicode-devel

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

only message in thread, other threads:[~2026-06-01  9:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-01  9:45 [rpms/ibus-anthy] f44: Use PYTHON for era.py Takao Fujiwara

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