Accepting request 1245683 from Printing

- Add python3-setuptools BuildRequires: replaces the fix to
  manually inject PYTHON_INCLUDEDIR. Fix needed to build against
  Python 3.13.

Fixes build in Staging_A (python 3.13) - and seems to address the real reaason why PYTHON_INCLUDEDIR needed to be injected (forwarded request 1241212 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/1245683
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hplip?expand=0&rev=159
This commit is contained in:
Ana Guerrero 2025-02-14 18:19:48 +00:00 committed by Git OBS Bridge
commit 18d65bd90a
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jan 29 14:51:04 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
- Add python3-setuptools BuildRequires: replaces the fix to
manually inject PYTHON_INCLUDEDIR. Fix needed to build against
Python 3.13.
-------------------------------------------------------------------
Thu Jan 23 11:52:26 UTC 2025 - Martin Wilck <mwilck@suse.com>

View File

@ -126,6 +126,7 @@ BuildRequires: %{pymod qt4}
BuildRequires: libqt4-devel
%endif
BuildRequires: %{pymod devel}
BuildRequires: %{pymod setuptools}
BuildRequires: %{pymod xml}
BuildRequires: cups > 1.5
BuildRequires: cups-devel > 1.5
@ -404,11 +405,9 @@ cp -p %{SOURCE103} %{SOURCE104} ppd/hpcups
# complains about missing files like NEWS, README, AUTHORS, ChangeLog
# in each directory where a Makefile.am exists:
AUTOMAKE='automake --foreign' autoreconf -fvi
# Fix improper method of Python.h lookup in configure, no longer working with Python 3.8
PYTHON_INCLUDEDIR="$(%{pymod config} --includes)"
# Set our preferred architecture-specific flags for the compiler and linker:
export CFLAGS="%{optflags} ${PYTHON_INCLUDEDIR} -Wno-error=return-type"
export CXXFLAGS="%{optflags} ${PYTHON_INCLUDEDIR} -fno-strict-aliasing -Wno-error=return-type"
export CFLAGS="%{optflags} -Wno-error=return-type"
export CXXFLAGS="%{optflags} -fno-strict-aliasing -Wno-error=return-type"
# --disable-pp-build disables parallel port build because parallel port support is deprecated by upstream HPLIP
# and by upstream in general cf. "Parallel port printers" at https://en.opensuse.org/SDB:Installing_a_Printer
# Since version 3.9.6 the default printer driver install changed from hpijs to hpcups.