-Source0: http://dl.matroska.org/downloads/libebml/%{name}-%{version}.tar.bz2
-# Source0-md5: 5d9fee0755cef7d7e88ee7065f3e728f
-Patch0: %{name}-makefile.patch
-URL: http://www.matroska.org/
-BuildRequires: libstdc++-devel
-BuildRequires: libtool
+Source0: https://dl.matroska.org/downloads/libebml/%{name}-%{version}.tar.xz
+# Source0-md5: 194095f4315334fcedacb4900c59c014
+Patch0: gcc11.patch
+URL: https://www.matroska.org/
+BuildRequires: cmake >= 3.1.2
+BuildRequires: libstdc++-devel >= 6:4.7
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz