[packages/libqzeitgeist] Rel 6

arekm arekm at pld-linux.org
Sun Mar 15 16:56:28 CET 2026


commit 261272570c46abdfecb60537fc3d288e65377dab
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Mar 15 16:56:20 2026 +0100

    Rel 6

 libqzeitgeist-python3.patch | 113 ++++++++++++++++++++++++++++++++++++++++++++
 libqzeitgeist.spec          |   6 ++-
 2 files changed, 117 insertions(+), 2 deletions(-)
---
diff --git a/libqzeitgeist.spec b/libqzeitgeist.spec
index 0d11a2e..e964b5c 100644
--- a/libqzeitgeist.spec
+++ b/libqzeitgeist.spec
@@ -2,12 +2,13 @@ Summary:	Qt interface for Zeitgeist service
 Summary(pl.UTF-8):	Interfejs Qt do usługi Zeitgeist
 Name:		libqzeitgeist
 Version:	0.8.0
-Release:	5
+Release:	6
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	ftp://ftp.kde.org/pub/kde/stable/libqzeitgeist/0.8.0/src/%{name}-%{version}.tar.bz2
 # Source0-md5:	97bdea6a1865db7d5f29c93e3a492f24
 Patch0:		%{name}-cmake.patch
+Patch1:		%{name}-python3.patch
 URL:		https://projects.kde.org/projects/kdesupport/libqzeitgeist/
 BuildRequires:	QtCore-devel >= 4.7.0
 BuildRequires:	QtDBus-devel >= 4.7.0
@@ -15,7 +16,7 @@ BuildRequires:	QtDeclarative-devel >= 4.7.0
 BuildRequires:	QtGui-devel >= 4.7.0
 BuildRequires:	QtTest-devel >= 4.7.0
 BuildRequires:	cmake >= 2.8.6
-BuildRequires:	python-zeitgeist >= 0.8
+BuildRequires:	python3-zeitgeist >= 0.8
 BuildRequires:	qt4-build
 BuildRequires:	qt4-qmake
 BuildRequires:	rpmbuild(macros) >= 1.603
@@ -60,6 +61,7 @@ Wtyczka Qt Zeitgeist dla QtDeclarative.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 install -d build
diff --git a/libqzeitgeist-python3.patch b/libqzeitgeist-python3.patch
new file mode 100644
index 0000000..b434272
--- /dev/null
+++ b/libqzeitgeist-python3.patch
@@ -0,0 +1,113 @@
+--- libqzeitgeist-0.8.0/scripts/onto2cpp.py.orig	2011-10-27 16:08:58.000000000 +0200	2026-03-15 16:10:54.795216362 +0100
++++ libqzeitgeist-0.8.0/scripts/onto2cpp.py	2026-03-15 12:00:00.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ #
+ # Utility to transcode the Zeitgeist ontology from Python code
+ # to a CPP header file defining a collection of definitions for the
+@@ -13,7 +13,7 @@
+ 	try:
+ 		ns, name = symbol[symbol.rfind("/")+1:].split("#")
+ 		return "%s%s" % (ns.upper(), name)
+-	except Exception, e:
++	except Exception as e:
+ 		return symbol.uri.rpartition("#")[2].upper()
+ 
+ def buildCdoc(name, symbol, docprefix=""):
+@@ -36,7 +36,7 @@
+ 
+ def dumpFile(namespace, fields):
+ 	# Print local namespace
+-	print "namespace %s\n{\n\n" % (namespace)
++	print("namespace %s\n{\n\n" % (namespace))
+ 
+ 	zgitems = []
+ 	sditems = []
+@@ -50,33 +50,33 @@
+ 				zgitems.append(stmt)
+ 			elif "semanticdesktop" in (item):
+ 				sditems.append(stmt)
+-		except Exception, e:
+-			print >> sys.stderr, "Failed to convert %s: %s" % (item, e)
++		except Exception as e:
++			print("Failed to convert %s: %s" % (item, e), file=sys.stderr)
+ 
+ 	# Sort both lists
+ 	zgitems.sort()
+ 	sditems.sort()
+ 
+ 	if len(zgitems):
+-		print "namespace Event\n{\n\n"
++		print("namespace Event\n{\n\n")
+ 
+ 		for item in zgitems:
+-			print item
+-			print ""
++			print(item)
++			print("")
+ 
+-		print "\n};\n"
++		print("\n};\n")
+ 
+ 	if len(sditems):
+-		print "namespace Subject\n{\n\n"
++		print("namespace Subject\n{\n\n")
+ 
+ 		for item in sditems:
+-			print item
+-			print ""
++			print(item)
++			print("")
+ 
+-		print "\n};\n"
++		print("\n};\n")
+ 
+ 	# Close local namespace
+-	print "\n};\n"
++	print("\n};\n")
+ 
+ def printHeader(opts):
+ 	header = (
+@@ -87,13 +87,13 @@
+ 		" * Do not edit! All changes made to it will be lost.\n"
+ 		" */\n\n" % (opts))
+ 
+-	print header
++	print(header)
+ 
+ def main(argv):
+ 	try:
+ 		opts, args = getopt.getopt(argv, "o:", ["onto="])
+ 	except getopt.GetoptError:
+-		print "Usage: onto2cpp -o [Interpretation:Manifestation]"
++		print("Usage: onto2cpp -o [Interpretation:Manifestation]")
+ 		sys.exit(2)
+ 
+ 	printHeader(opts)
+@@ -110,20 +110,20 @@
+ 	# Print header guard.
+ 	guard = "QZEITGEIST_%s_H" % (arg.upper())
+ 
+-	print "#ifndef %s" % (guard)
+-	print "#define %s\n\n" % (guard)
++	print("#ifndef %s" % (guard))
++	print("#define %s\n\n" % (guard))
+ 
+ 	# Print Global namespace
+-	print "namespace QZeitgeist\n{\n\n"
++	print("namespace QZeitgeist\n{\n\n")
+ 
+ 	# Dump definitions to the stdout
+ 	dumpFile(arg, fields)
+ 
+ 	# Close Global namespace
+-	print "\n};\n"
++	print("\n};\n")
+ 
+ 	# Close header guard
+-	print "#endif // %s" % (guard)
++	print("#endif // %s" % (guard))
+ 
+ 
+ if __name__ == "__main__":
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libqzeitgeist.git/commitdiff/261272570c46abdfecb60537fc3d288e65377dab



More information about the pld-cvs-commit mailing list