From b497dda37aefb7fa176e4a6a8165ab9585ef2d7e Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 22 Oct 2023 21:41:00 -0400 Subject: [PATCH] Fix flatpak build No assumptions should be made as to the location of help2man; in the case of flatpak builds, the buildroot version in /usr is used even when building into /app. --- python-html2text.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 6a4c894..5899514 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -50,7 +50,7 @@ Obsoletes: python2-%{upname} <= %{version}-%{release} %py3_install %{__mv} -f %{buildroot}%{_bindir}/%{upname} %{buildroot}%{_bindir}/python3-%{upname} export PYTHONPATH="%{buildroot}%{python3_sitelib}" -%{_bindir}/help2man --no-discard-stderr -s 1 -N -o %{buildroot}%{_mandir}/man1/python3-%{upname}.1 %{buildroot}%{_bindir}/python3-%{upname} +help2man --no-discard-stderr -s 1 -N -o %{buildroot}%{_mandir}/man1/python3-%{upname}.1 %{buildroot}%{_bindir}/python3-%{upname} pushd %{buildroot}%{_bindir} ln -s python3-%{upname} %{upname} ln -s python3-%{upname} %{name}