diff --git a/_constraints b/_constraints
index 3a8b96b..822bc2e 100644
--- a/_constraints
+++ b/_constraints
@@ -1,12 +1,14 @@
-
+
-
- 13
+ 13
3000
+
+ 1000
+
diff --git a/opencv.changes b/opencv.changes
index da51156..da22131 100644
--- a/opencv.changes
+++ b/opencv.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Thu Aug 20 09:02:23 UTC 2020 - Martin Liška
+
+- Use memoryperjob constraint instead of %limit_build macro.
+
-------------------------------------------------------------------
Sat Jun 13 22:03:12 UTC 2020 - Stefan Brüns
diff --git a/opencv.spec b/opencv.spec
index d8f901f..8e4a8b8 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -51,7 +51,6 @@ BuildRequires: fdupes
BuildRequires: libeigen3-devel
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig
-BuildRequires: memory-constraints
# OpenJPEGTargets.cmake erroneously requires the binaries
BuildRequires: openjpeg2
BuildRequires: tbb-devel
@@ -179,7 +178,6 @@ cp opencv_contrib-%{version}/LICENSE LICENSE.contrib
rm -f doc/packaging.txt
%build
-%limit_build -m 1000
# Dynamic dispatch: https://github.com/opencv/opencv/wiki/CPU-optimizations-build-options
# x86: disable SSE on 32bit, do not dispatch AVX and later - SSE3
# is the highest extension available on any non-64bit x86 CPU