diff --git a/hplip.changes b/hplip.changes index 62ea914..d39d336 100644 --- a/hplip.changes +++ b/hplip.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jan 29 14:51:04 UTC 2025 - Dominique Leuenberger + +- 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 diff --git a/hplip.spec b/hplip.spec index fda2494..d7f3b7f 100644 --- a/hplip.spec +++ b/hplip.spec @@ -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.