diff --git a/earlyoom-1.4.tar.gz b/earlyoom-1.4.tar.gz deleted file mode 100644 index 2bc618f..0000000 --- a/earlyoom-1.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:859d044fc5149fb446e4f3cf3278a524c5f74084026152356de6b7c1270b47ce -size 48895 diff --git a/earlyoom-1.6.tar.gz b/earlyoom-1.6.tar.gz new file mode 100644 index 0000000..a564cdf --- /dev/null +++ b/earlyoom-1.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b81804fc4470f996014d52252a87a1cf3b43d3d8754140035b10dcee349302b8 +size 47705 diff --git a/earlyoom.changes b/earlyoom.changes index c7401b4..b9fa2f9 100644 --- a/earlyoom.changes +++ b/earlyoom.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Wed Jun 10 08:18:22 UTC 2020 - Dan Čermák + +- New upstream release 1.6 + + * 1.6, 2020-04-11 + * Replace old `notify-send` GUI notification logic with `dbus-send` / + [systembus-notify](https://github.com/rfjakob/systembus-notify) + ([#183](https://github.com/rfjakob/earlyoom/issues/183)) + * `-n`/`-N` now enables the new logic + * You need to have + [systembus-notify](https://github.com/rfjakob/systembus-notify) running + in your GUI session for notifications for work + * Handle `/proc` mounted with + [hidepid](https://github.com/rfjakob/earlyoom/wiki/proc-hidepid) + gracefully ([issue #184](https://github.com/rfjakob/earlyoom/issues/184)) + + * v1.5, 2020-03-22 + * `-p`: set oom_score_adj to `-100` instead of `-1000` + ([#170](https://github.com/rfjakob/earlyoom/issues/170)) + * Allow using **both** `-M` and `-m`, and `-S` and `-s`. The lower value + (converted to percentages) will be used. + * Set memory report interval in `earlyoom.default` to 1 hour instead of 1 + minute ([#177](https://github.com/rfjakob/earlyoom/issues/177)) + ------------------------------------------------------------------- Thu Mar 19 08:50:17 UTC 2020 - Fabian Vogt diff --git a/earlyoom.spec b/earlyoom.spec index d54d197..66c6926 100644 --- a/earlyoom.spec +++ b/earlyoom.spec @@ -20,14 +20,14 @@ %global _fillupdir %{_localstatedir}/adm/fillup-templates %endif Name: earlyoom -Version: 1.4 +Version: 1.6 Release: 0 Summary: Early OOM Daemon for Linux License: MIT Group: System/Daemons -URL: https://github.com/rfjakob/earlyoom -Source0: https://github.com/rfjakob/earlyoom/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz -Source11: earlyoom.sysconfig +URL: https://github.com/rfjakob/%{name} +Source0: %{URL}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source11: %{name}.sysconfig # pandoc only for `pandoc MANPAGE.md -s -t man > earlyoom.1` BuildRequires: pandoc BuildRequires: pkgconfig @@ -41,7 +41,7 @@ earlyoom checks the amount of available memory and free swap, and if both are below critical level, it will kill the largest process (highest oom_score). %prep -%setup -q +%autosetup # Fix defaults file location sed -i 's|/default/|/sysconfig/|' earlyoom.service.in @@ -50,8 +50,9 @@ sed -i 's|/default/|/sysconfig/|' earlyoom.service.in sed -ri '/LDFLAGS/ s|$| -lrt|' Makefile %build -CFLAGS='%{optflags} -DVERSION=\"%{version}\" -std=gnu99' -%make_build CFLAGS="$CFLAGS" PREFIX=%{_prefix} +CFLAGS='%{?build_cflags}%{!?build_cflags:%optflags} -DVERSION=\"%{version}\" -std=gnu99' +CPPFLAGS='%{?build_cxxflags}%{!?build_cxxflags:%optflags}' +%make_build CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" PREFIX=%{_prefix} %install %make_install PREFIX=%{_prefix} SYSTEMDUNITDIR=%{_unitdir}