diff --git a/_constraints b/_constraints
index 6b9e418..f5c87e1 100644
--- a/_constraints
+++ b/_constraints
@@ -1,7 +1,11 @@
+
16
+
+ 2048
+
diff --git a/telegram-desktop.changes b/telegram-desktop.changes
index 344c863..2932c9f 100644
--- a/telegram-desktop.changes
+++ b/telegram-desktop.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Thu Aug 20 09:06:04 UTC 2020 - Martin Liška
+
+- Use memoryperjob constraint instead of %limit_build macro.
+
-------------------------------------------------------------------
Wed Jun 24 08:38:24 UTC 2020 - Marcel Kuehlhorn
diff --git a/telegram-desktop.spec b/telegram-desktop.spec
index c0160b5..7c4eb47 100644
--- a/telegram-desktop.spec
+++ b/telegram-desktop.spec
@@ -61,7 +61,6 @@ BuildRequires: libjpeg-devel
BuildRequires: liblz4-devel
BuildRequires: libqt5-qtbase-common-devel
BuildRequires: libqt5-qtimageformats-devel
-BuildRequires: memory-constraints
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: xorg-x11-devel
@@ -144,7 +143,6 @@ The service also provides APIs to independent developers.
%patch1 -p1
%build
-%limit_build -m 2048
%if %{with fixed_gcc}
export CC=/usr/bin/gcc-9
export CXX=/usr/bin/g++-9