Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.

  Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.

  Snippets are delimited with '================'.

  Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.

  Explanation of the issue, and recommended solution, should take a handful of sentences.

  Snippets:

  [+ cd pycairo-1.28.0
+ set -ex
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 '
+ /usr/bin/python3.12 setup.py build '--executable=/usr/bin/python3.12 -sP'
/usr/bin/python3.12: can't open file '/builddir/build/BUILD/pycairo-1.28.0/setup.py': [Errno 2] No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.ts6drB (%build)
    Bad exit status from /var/tmp/rpm-tmp.ts6drB (%build)]: [When "setup.py': [Errno 2] No such file or directory" occurs it usually means that the package switched to a compliant PEP-517 build system, moving from setup.py to pyproject.toml.]

Issue: The setup.py file does not exist anymore in the package, the macros need to be updated to build projects with pyproject.toml.
Resolution: To fix the issue the specfile needs to be updated to use new macros.

https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_build_macros is a good start to understand the change. 

For more details look at https://peps.python.org/pep-0518/ and https://peps.python.org/pep-0517/

