From de7a2bad18063bfd587e4cd82348898f0265cb5fa6413d30509c93993b3b3cd1 Mon Sep 17 00:00:00 2001 From: Torsten Gruner Date: Tue, 22 May 2018 11:03:30 +0000 Subject: [PATCH] Accepting request 610797 from home:juliogonzalez:branches:security - Fix build for openSUSE Leap 42.2 and 42.3 OBS-URL: https://build.opensuse.org/request/show/610797 OBS-URL: https://build.opensuse.org/package/show/security/oath-toolkit?expand=0&rev=19 --- oath-toolkit.changes | 5 +++++ oath-toolkit.spec | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/oath-toolkit.changes b/oath-toolkit.changes index b751ba1..631cfeb 100644 --- a/oath-toolkit.changes +++ b/oath-toolkit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun May 20 21:40:32 UTC 2018 - julio@juliogonzalez.es + +- Fix build for openSUSE Leap 42.2 and 42.3 + ------------------------------------------------------------------- Wed Apr 18 07:32:43 UTC 2018 - jengelh@inai.de diff --git a/oath-toolkit.spec b/oath-toolkit.spec index 78ff21d..23951ce 100644 --- a/oath-toolkit.spec +++ b/oath-toolkit.spec @@ -138,7 +138,13 @@ autoreconf -fiv --with-libgcrypt \ --disable-silent-rules \ --disable-static +# Only SLE and openSUSE >= 15.0 are using rpm >= 4.12 +# See https://en.opensuse.org/openSUSE:Build_system_recipes#automake +%if 0%{?sle_version} >= 150000 %make_build +%else +make %{?_smp_mflags} +%endif %install %make_install