-Source0: http://matroska.free.fr/downloads/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 196801f6321badf0461c8760edd86841
-Patch0: %{name}-makefile.patch
-Patch1: %{name}-version_define.patch
-URL: http://www.matroska.org/
-BuildRequires: libebml-devel >= 0.6.4
-BuildRequires: libstdc++-devel
-BuildRequires: libtool
+Source0: https://dl.matroska.org/downloads/libmatroska/%{name}-%{version}.tar.xz
+# Source0-md5: 933f56e73f452648d211592762de6389
+URL: https://www.matroska.org/
+BuildRequires: cmake >= 3.1.2
+BuildRequires: libebml-devel >= 1.4.0
+BuildRequires: libstdc++-devel >= 6:4.7
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.605
+Requires: libebml >= 1.4.0