diff --git a/libebml.spec b/libebml.spec index 4f9b55a..ab2a917 100644 --- a/libebml.spec +++ b/libebml.spec @@ -1,3 +1,7 @@ +%if 0%{?el9} +%global _without_utf8cpp 1 +%endif + Summary: Extensible Binary Meta Language library Name: libebml Version: 1.4.2 @@ -10,7 +14,7 @@ Patch0: %{name}-use-system-utf8cpp.patch Patch1: %{name}-gcc11.patch BuildRequires: cmake3 BuildRequires: gcc-c++ -BuildRequires: utf8cpp-devel +%{!?_without_utf8cpp:BuildRequires: utf8cpp-devel} %description Extensible Binary Meta Language access library A library for reading @@ -35,9 +39,11 @@ will use the Extensible Binary Meta Language library. %prep %setup -q +%{!?_without_utf8cpp: %patch0 -p1 -b .utf8cpp -%patch1 -p1 -b .gcc11 rm -r src/lib/utf8-cpp +} +%patch1 -p1 -b .gcc11dd %build