- Initial package to ensure restrictions on jobs when building
huge packages OBS-URL: https://build.opensuse.org/package/show/network:chromium/memory-constraints?expand=0&rev=1
This commit is contained in:
commit
be90eea78b
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
6
memory-constraints.changes
Normal file
6
memory-constraints.changes
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 6 10:56:54 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Initial package to ensure restrictions on jobs when building
|
||||||
|
huge packages
|
||||||
|
|
6
memory-constraints.macros
Normal file
6
memory-constraints.macros
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#
|
||||||
|
# Macros for memory constraints on buildjobs.
|
||||||
|
# If you happen to have HUGE packages sometimes you need to do
|
||||||
|
# crazy magic in order to make sure it is most of the time building
|
||||||
|
# rather than just giving you OOM
|
||||||
|
#
|
47
memory-constraints.spec
Normal file
47
memory-constraints.spec
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
#
|
||||||
|
# spec file for package memory-constraints
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: memory-constraints
|
||||||
|
Version: 20180406
|
||||||
|
Release: 0
|
||||||
|
Summary: Macos to limit resources when building
|
||||||
|
License: MIT
|
||||||
|
Group: Development/Tools/Building
|
||||||
|
URL: https://www.opensuse.org/
|
||||||
|
Source0: %{name}.macros
|
||||||
|
BuildRequires: rpm
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
Macros to limit various resources when building huge packages to
|
||||||
|
ensure we can produce results rather than OOM reports.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
:
|
||||||
|
|
||||||
|
%build
|
||||||
|
:
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}/%{_libexecdir}/rpm/macros.d
|
||||||
|
cp %{SOURCE0} %{buildroot}/%{_libexecdir}/rpm/macros.d/macros.%{name}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_libexecdir}/rpm/macros.d/macros.%{name}
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user