diff --git a/_constraints b/_constraints
new file mode 100644
index 0000000..51762ba
--- /dev/null
+++ b/_constraints
@@ -0,0 +1,8 @@
+
+
+
+
+ 2000
+
+
+
\ No newline at end of file
diff --git a/vulkan-validationlayers.changes b/vulkan-validationlayers.changes
index 35922d2..b336b5c 100644
--- a/vulkan-validationlayers.changes
+++ b/vulkan-validationlayers.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Thu Aug 20 09:09:54 UTC 2020 - Martin Liška
+
+- Use memoryperjob constraint instead of %limit_build macro.
+
-------------------------------------------------------------------
Wed Aug 19 11:24:44 UTC 2020 - Jan Engelhardt
diff --git a/vulkan-validationlayers.spec b/vulkan-validationlayers.spec
index 28130c6..9b7faab 100644
--- a/vulkan-validationlayers.spec
+++ b/vulkan-validationlayers.spec
@@ -31,7 +31,6 @@ Patch1: ver.diff
BuildRequires: cmake >= 3.4
BuildRequires: gcc-c++ >= 4.8
BuildRequires: glslang-devel >= 8.13.3727
-BuildRequires: memory-constraints
BuildRequires: pkg-config
BuildRequires: python3-base
BuildRequires: spirv-headers
@@ -71,7 +70,6 @@ This package contains support files for the VkLayer utility library.
perl -i -pe 's{\@PACKAGE_VERSION\@}{%version}' CMakeLists.txt
%build
-%limit_build -m 2000
%cmake -DGLSLANG_INSTALL_DIR="%_bindir" \
-DSPIRV_HEADERS_INSTALL_DIR="%_includedir" \
-DBUILD_LAYER_SUPPORT_FILES=ON