From 67133f7393059f605aee0cc6baeca544e07e15c3 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Tue, 1 Nov 2022 07:01:50 +0100 Subject: [PATCH] Switch from pathfix.py to %py3_shebang_fix For more info see https://fedoraproject.org/wiki/Changes/Python3.12#pathfix.py_tool_will_be_removed --- dblatex.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dblatex.spec b/dblatex.spec index 25c3aa6..f79b8a4 100644 --- a/dblatex.spec +++ b/dblatex.spec @@ -37,7 +37,6 @@ BuildRequires: texlive-pdfpages BuildRequires: texlive-subfigure BuildRequires: texlive-stmaryrd BuildRequires: texlive-wasysym -Buildrequires: /usr/bin/pathfix.py Requires: texlive-base Requires: texlive-collection-latex Requires: texlive-collection-xetex @@ -85,7 +84,7 @@ Authors: %patch2 -p1 -b .rsvg rm -rf lib/contrib -pathfix.py -pni "%{__python3} %{py3_shbang_opts}" . +%py3_shebang_fix . %build %{__python3} setup.py build @@ -93,7 +92,7 @@ pathfix.py -pni "%{__python3} %{py3_shbang_opts}" . %install %{__python3} setup.py install --root $RPM_BUILD_ROOT -pathfix.py -pni "%{__python3} %{py3_shbang_opts}" $RPM_BUILD_ROOT%{_bindir}/dblatex +%py3_shebang_fix $RPM_BUILD_ROOT%{_bindir}/dblatex # these are already in tetex-latex: for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do