Accepting request 828077 from home:marxin:memory-constraint

Use memoryperjob constraint instead of %limit_build macro.

OBS-URL: https://build.opensuse.org/request/show/828077
OBS-URL: https://build.opensuse.org/package/show/graphics/openscad?expand=0&rev=30
This commit is contained in:
Dirk Stoecker 2020-08-24 16:12:31 +00:00 committed by Git OBS Bridge
parent 9171e56e57
commit 17c6c76bbf
3 changed files with 15 additions and 8 deletions

View File

@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<constraints>
<hardware>
<physicalmemory>
<physicalmemory>
<size unit="G">3</size>
</physicalmemory>
<memory>
</physicalmemory>
<memory>
<size unit="G">5</size>
</memory>
</memory>
<memoryperjob>
<size unit="M">2200</size>
</memoryperjob>
</hardware>
</constraints>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 20 09:03:01 UTC 2020 - Martin Liška <mliska@suse.cz>
- Use memoryperjob constraint instead of %limit_build macro.
-------------------------------------------------------------------
Sun Mar 22 07:56:55 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>

View File

@ -1,7 +1,7 @@
#
# spec file for package openscad
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -22,7 +22,7 @@ Release: 0
Summary: Programmers Solid 3D CAD Modeller
License: GPL-3.0-or-later
Group: Productivity/Graphics/CAD
Url: https://www.openscad.org/
URL: https://www.openscad.org/
Source: https://files.openscad.org/%{name}-%{version}.src.tar.gz
BuildRequires: bison
BuildRequires: double-conversion-devel
@ -39,7 +39,6 @@ BuildRequires: libboost_thread-devel
BuildRequires: libcgal-devel
BuildRequires: libqscintilla-qt5-devel
BuildRequires: libspnav-devel
BuildRequires: memory-constraints
BuildRequires: opencsg-devel
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Core)
@ -62,7 +61,6 @@ aspects, e.g. modelling of machine parts.
%build
qmake-qt5 PREFIX=%{_prefix} QMAKE_CXXFLAGS="%{optflags}" CONFIG+=qopenglwidget
%limit_build -m 2200
make %{?_smp_mflags}
%install