Accepting request 1173526 from home:13ilya:branches:Base:System

- Manual optimizations in spec-file.
- Updated to 1.8.2
  * Changed file earlyoom.1 (MANPAGE.md -s -t man > earlyoom.1).
  * https://github.com/rfjakob/earlyoom#changelog
  * Fixed crash with -p flag in config and IPAddressDeny syntax.

OBS-URL: https://build.opensuse.org/request/show/1173526
OBS-URL: https://build.opensuse.org/package/show/Base:System/earlyoom?expand=0&rev=45
This commit is contained in:
Илья Индиго 2024-05-12 19:47:04 +00:00 committed by Git OBS Bridge
parent f5b55048df
commit 2b5418dc44
5 changed files with 22 additions and 23 deletions

3
earlyoom-1.8.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13869413dc0d973e454854077be7a2049d350f77a97f6911b654e88dc4b20346
size 61555

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bbb050a2294e60dafc0b129fcec705ef95d9d27f4c9dae1d3b4f25e4f698ae41
size 61345

View File

@ -1,4 +1,4 @@
.\" Automatically generated by Pandoc 3.1.12.3
.\" Automatically generated by Pandoc 3.1.13
.\"
.TH "earlyoom" "1" "" "" "General Commands Manual"
.SH NAME

View File

@ -1,10 +1,19 @@
-------------------------------------------------------------------
Sun May 12 19:42:33 UTC 2024 - Илья Индиго <ilya@ilya.top>
- Manual optimizations in spec-file.
- Updated to 1.8.2
* Changed file earlyoom.1 (MANPAGE.md -s -t man > earlyoom.1).
* https://github.com/rfjakob/earlyoom#changelog
* Fixed crash with -p flag in config and IPAddressDeny syntax.
-------------------------------------------------------------------
Thu Apr 18 16:14:58 UTC 2024 - David B <db@mail25.net>
- Removed -p flag from configuration (ineffective for systemd unit).
-------------------------------------------------------------------
Tue Apr 16 06:31:41 UTC 2024 - Илья Индиго <13ilya@gmail.com>
Tue Apr 16 06:31:41 UTC 2024 - Илья Индиго <ilya@ilya.top>
- Updated to 1.8
* Changed file earlyoom.1 (MANPAGE.md -s -t man > earlyoom.1).
@ -17,7 +26,7 @@ Tue Apr 16 06:31:41 UTC 2024 - Илья Индиго <13ilya@gmail.com>
to the largest RSS instead of largest oom_score.
-------------------------------------------------------------------
Wed May 18 16:14:43 UTC 2022 - Илья Индиго <ilya@ilya.cf>
Wed May 18 16:14:43 UTC 2022 - Илья Индиго <ilya@ilya.top>
- Refreshed spec-file via spec-cleaner and manual optimizated.
* Reduced to the standard github URL.
@ -32,7 +41,7 @@ Wed May 18 16:14:43 UTC 2022 - Илья Индиго <ilya@ilya.cf>
* Droped ambient capabilities on startup.
-------------------------------------------------------------------
Thu Nov 18 09:31:29 UTC 2021 - Илья Индиго <ilya@ilya.cf>
Thu Nov 18 09:31:29 UTC 2021 - Илья Индиго <ilya@ilya.top>
- Added GeckoMain in --prefer parameter. (firefox name process)
- Removed firefox and chromium in --prefer parameter. (irrelevant)
@ -109,7 +118,7 @@ Thu Mar 19 08:50:17 UTC 2020 - Fabian Vogt <fvogt@suse.com>
- earlyoom.sysconfig: Fix sddm, add kwin_wayland
-------------------------------------------------------------------
Wed Mar 4 17:40:07 UTC 2020 - Илья Индиго <ilya@ilya.cf>
Wed Mar 4 17:40:07 UTC 2020 - Илья Индиго <ilya@ilya.top>
- Add PREFIX=%{_prefix} to %make_build macro for correct ExecStart.
- Update to 1.4
@ -130,7 +139,7 @@ Wed Mar 4 17:40:07 UTC 2020 - Илья Индиго <ilya@ilya.cf>
* Fix spurious testsuite failure on systems with a lot of RAM.
-------------------------------------------------------------------
Fri Feb 21 06:55:10 UTC 2020 - Илья Индиго <ilya@ilya.cf>
Fri Feb 21 06:55:10 UTC 2020 - Илья Индиго <ilya@ilya.top>
- Add "Web\ Content" before "firefox" in --prefer parameter.
- Manual optimizations in spec-file.

View File

@ -16,13 +16,13 @@
#
# the tests are quite flaky in a VM
# The tests are quite flaky in a VM
%bcond_with tests
%if ! 0%{?_fillupdir:1}
%global _fillupdir %{_localstatedir}/adm/fillup-templates
%endif
Name: earlyoom
Version: 1.8
Version: 1.8.2
Release: 0
Summary: Early OOM Daemon for Linux
License: MIT
@ -30,7 +30,6 @@ Group: System/Daemons
URL: https://github.com/rfjakob/%{name}
Source0: https://github.com/rfjakob/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: %{name}.sysconfig
# Inject pre-build earlyoom.1, built on x86_64 machine, as pandoc does not exist on all archs
# pandoc MANPAGE.md -s -t man > earlyoom.1
Source2: earlyoom.1
BuildRequires: pkgconfig
@ -46,20 +45,9 @@ below critical level, it will kill the largest process (highest oom_score).
%prep
%autosetup -p1
# Test if our pre-build earloom.1 is newer than README.md; if not, fail.
test %{SOURCE2} -nt README.md
# Fix defaults file location
sed -i 's|/default/|/sysconfig/|' earlyoom.service.in
# remove calls to systemctl in install
sed -e '/systemctl/d' -i Makefile
%if %{with tests}
# fix version test
sed -i 's|stderrContains: "earlyoom v",|stderrContains: "earlyoom %{version}",|' testsuite_cli_test.go
%endif
%build
CFLAGS='%{?build_cflags}%{!?build_cflags:%optflags} -DVERSION=\"%{version}\" -std=gnu99'
CPPFLAGS='%{?build_cxxflags}%{!?build_cxxflags:%optflags}'
@ -67,7 +55,9 @@ LDFLAGS="-lrt ${RPM_LD_FLAGS}"
%make_build CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" PREFIX=%{_prefix}
%check
test %{SOURCE2} -nt README.md
%if %{with tests}
sed -i 's|stderrContains: "earlyoom v",|stderrContains: "earlyoom %{version}",|' testsuite_cli_test.go
%make_build test
%endif