diff -pruN 0.3.0-3/debian/changelog 0.3.0-4/debian/changelog
--- 0.3.0-3/debian/changelog	2023-09-30 12:43:36.000000000 +0000
+++ 0.3.0-4/debian/changelog	2025-10-06 10:47:00.000000000 +0000
@@ -1,3 +1,11 @@
+python-rlpycairo (0.3.0-4) unstable; urgency=medium
+
+  * replaced a call of rest_clip() by reset_clip(), as the previous made
+    no sense [source of python3-cairo don't define Context.rest_clip()
+    but they do define Context.reset_clip()]
+
+ -- Georges Khaznadar <georgesk@debian.org>  Mon, 06 Oct 2025 12:47:00 +0200
+
 python-rlpycairo (0.3.0-3) unstable; urgency=medium
 
   * fixed Vcs-Git in debian/control
diff -pruN 0.3.0-3/debian/patches/fix_typo_resEt.patch 0.3.0-4/debian/patches/fix_typo_resEt.patch
--- 0.3.0-3/debian/patches/fix_typo_resEt.patch	1970-01-01 00:00:00.000000000 +0000
+++ 0.3.0-4/debian/patches/fix_typo_resEt.patch	2025-10-06 10:47:00.000000000 +0000
@@ -0,0 +1,16 @@
+replaced a call of rest_clip() by reset_clip(), as the previous made
+    no sense [source of python3-cairo don't define Context.rest_clip()
+    but they do define Context.reset_clip()]
+Index: python-rlpycairo/rlPyCairo/gstate.py
+===================================================================
+--- python-rlpycairo.orig/rlPyCairo/gstate.py
++++ python-rlpycairo/rlPyCairo/gstate.py
+@@ -192,7 +192,7 @@ class GState(object):
+         self.ctx.new_path()
+ 
+     def clipPathClear(self):
+-        self.ctx.rest_clip()
++        self.ctx.reset_clip()
+ 
+     def clipPathSet(self):
+         ctx = self.ctx
diff -pruN 0.3.0-3/debian/patches/series 0.3.0-4/debian/patches/series
--- 0.3.0-3/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ 0.3.0-4/debian/patches/series	2025-10-06 10:47:00.000000000 +0000
@@ -0,0 +1 @@
+fix_typo_resEt.patch
