diff --git a/pycups-pyssizet_clean.patch b/pycups-pyssizet_clean.patch new file mode 100644 index 0000000..f84e982 --- /dev/null +++ b/pycups-pyssizet_clean.patch @@ -0,0 +1,13 @@ +diff --git a/cupsipp.h b/cupsipp.h +index 2a15ce6..b890198 100644 +--- a/cupsipp.h ++++ b/cupsipp.h +@@ -21,6 +21,8 @@ + #ifndef HAVE_CUPSIPP_H + #define HAVE_CUPSIPP_H + ++#define PY_SSIZE_T_CLEAN ++ + #include + #include + diff --git a/python-cups.spec b/python-cups.spec index 8e05ad0..a5c88cb 100644 --- a/python-cups.spec +++ b/python-cups.spec @@ -6,7 +6,7 @@ Summary: Python bindings for CUPS Name: python-cups Version: 2.0.1 -Release: 9%{?dist} +Release: 10%{?dist} # older URL, but still with useful information about pycups #URL: http://cyberelk.net/tim/software/pycups/ URL: https://github.com/OpenPrinting/pycups/ @@ -17,6 +17,7 @@ License: GPLv2+ Patch01: 0001-examples-cupstree.py-remove-shebang.patch Patch02: 0001-postscriptdriver.prov-ignore-driverless-utilities.patch Patch03: pycups-invalid-pointer.patch +Patch04: pycups-pyssizet_clean.patch # gcc is no longer in buildroot by default BuildRequires: gcc @@ -74,6 +75,9 @@ export PYTHONPATH=%{buildroot}%{python3_sitearch} %doc examples html %changelog +* Mon Jun 28 2021 Zdenek Dohnal - 2.0.1-10 +- IPPRequest.writeIO() tracebacks because PY_SSIZE_T_CLEAN is not defined + * Fri Jun 04 2021 Python Maint - 2.0.1-9 - Rebuilt for Python 3.10