From a74ef89ca6d45da2447ecaf07ec60ae2ee07d78b Mon Sep 17 00:00:00 2001 From: Jan Kolarik Date: Thu, 18 Jan 2024 15:31:05 +0100 Subject: [PATCH] Don't build-require files outside of permitted directories The xmlto-tex package has been present on Fedora for a while, so there's no need to use a file require in this case. Packaging guidelines only allow dependencies on files in /usr/bin, /usr/sbin and /etc. Guidelines: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_file_and_directory_dependencies Relates: https://fedoraproject.org/wiki/Changes/BuildWithDNF5 Relates: https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5 --- systemtap.spec | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/systemtap.spec b/systemtap.spec index 305a02f..e529370 100644 --- a/systemtap.spec +++ b/systemtap.spec @@ -197,10 +197,7 @@ BuildRequires: /usr/bin/latex /usr/bin/dvips /usr/bin/ps2pdf BuildRequires: tex(fullpage.sty) tex(fancybox.sty) tex(bchr7t.tfm) tex(graphicx.sty) %endif %if %{with_htmldocs} -# On F10, xmlto's pdf support was broken off into a sub-package, -# called 'xmlto-tex'. To avoid a specific F10 BuildReq, we'll do a -# file-based buildreq on '/usr/share/xmlto/format/fo/pdf'. -BuildRequires: xmlto /usr/share/xmlto/format/fo/pdf +BuildRequires: xmlto xmlto-tex %endif %endif %if %{with_emacsvim}