[packages/java-gnome] Rel 3

arekm arekm at pld-linux.org
Sun Apr 5 12:50:01 CEST 2026


commit 7adfcc4f7d6be995a5bb373590a6d0079e69a80d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Apr 5 12:49:53 2026 +0200

    Rel 3

 java-gnome-python3.patch | 80 ++++++++++++++++++++++++++++++++++++++++++++++++
 java-gnome.spec          |  4 ++-
 2 files changed, 83 insertions(+), 1 deletion(-)
---
diff --git a/java-gnome.spec b/java-gnome.spec
index e7d1eaf..2b5ce16 100644
--- a/java-gnome.spec
+++ b/java-gnome.spec
@@ -4,12 +4,13 @@ Summary:	Java bindings for the GNOME desktop environment
 Summary(pl.UTF-8):	Wiązania Javy dla środowiska graficznego GNOME
 Name:		java-gnome
 Version:	4.0.14
-Release:	2
+Release:	3
 License:	GPL v2
 Group:		Libraries/Java
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/java-gnome/4.0/%{name}-%{version}.tar.bz2
 # Source0-md5:	45a34b29b2d2686b8e5bd926bff9b09e
 Patch0:		%{name}-configure.patch
+Patch1:		%{name}-python3.patch
 URL:		http://java-gnome.sourceforge.net/
 BuildRequires:	enchant-devel
 BuildRequires:	gtk+2-devel >= 2:2.14.0
@@ -32,6 +33,7 @@ Wiązania Javy dla środowiska graficznego GNOME.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 ./configure \
diff --git a/java-gnome-python3.patch b/java-gnome-python3.patch
new file mode 100644
index 0000000..2b5238c
--- /dev/null
+++ b/java-gnome-python3.patch
@@ -0,0 +1,80 @@
+--- java-gnome-4.0.14/build/faster.orig	2026-04-05 04:09:42.584481730 +0200
++++ java-gnome-4.0.14/build/faster	2026-04-05 04:09:55.962803593 +0200
+@@ -73,7 +73,7 @@
+ 		flock(lock, LOCK_EX | LOCK_NB)
+ 	except IOError:
+ 		if not silent:
+-			print "Inhibited: another build process already running"
++			print("Inhibited: another build process already running")
+ 			sys.stdout.flush()
+ 		sys.exit(0)
+ 
+@@ -97,16 +97,16 @@
+ def loadConfig():
+ 	global config
+ 	if ((not isfile(configFile)) or (getmtime(configFile) < getmtime(versionFile))):
+-		print
+-		print "You need to run ./configure to check prerequisites"
+-		print "and setup preferences before you can build java-gnome."
++		print()
++		print("You need to run ./configure to check prerequisites")
++		print("and setup preferences before you can build java-gnome.")
+ 
+ 		if not os.access("configure", os.X_OK):
+-			print "I'll make it executable for you."
+-			print
++			print("I'll make it executable for you.")
++			print()
+ 			executeCommand("CHMOD", "configure", "chmod +x configure")
+ 		else:
+-			print
++			print()
+ 
+ 		sys.exit(1)
+ 	try:
+@@ -120,7 +120,7 @@
+ 		cfg.close()
+ 
+ 	except (EOFError):
+-		print "Error while trying to read .config"
++		print("Error while trying to read .config")
+ 		sys.exit(9)
+ 
+ 	config['GNOME_CCFLAGS'] = os.popen("pkg-config --cflags " + GNOME_MODULES).read().rstrip()
+@@ -135,7 +135,7 @@
+ 			hashes = cPickle.load(db)
+ 			db.close()
+ 		except (EOFError, KeyError, IndexError):
+-			print "build checksum cache corrupt; full rebuild forced"
++			print("build checksum cache corrupt; full rebuild forced")
+ 			hashes = {}
+ 
+ 
+@@ -217,7 +217,7 @@
+ 
+ def debug(args):
+ 	if False:
+-		print args, 
++		print(args, end="")
+ 
+ 
+ def filesNeedBuilding(list, update=True):
+@@ -319,9 +319,9 @@
+ def executeCommand(short, what, cmd, inDir=None):
+ 	sys.stderr.flush()
+ 	if not silent:
+-		print short + "\t" + what
++		print(short + "\t" + what)
+ 		if verbose:
+-			print cmd
++			print(cmd)
+ 	sys.stdout.flush()
+ 	
+ 	status = subprocess.call(cmd, shell=True, cwd=inDir, bufsize=1)
+@@ -726,5 +726,5 @@
+ 	try:
+ 		main()
+ 	except KeyboardInterrupt:
+-		print
++		print()
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/java-gnome.git/commitdiff/7adfcc4f7d6be995a5bb373590a6d0079e69a80d



More information about the pld-cvs-commit mailing list