From 812d312a9e4c1807f768bdcb97bbccb154bef207 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Thu, 29 Oct 2020 00:38:47 +0300 Subject: [PATCH] [RPM] fix build on fedora >= 33 Signed-off-by: R4SAS --- contrib/rpm/i2pd-git.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/contrib/rpm/i2pd-git.spec b/contrib/rpm/i2pd-git.spec index b1f28de1..58c87cfb 100644 --- a/contrib/rpm/i2pd-git.spec +++ b/contrib/rpm/i2pd-git.spec @@ -56,14 +56,23 @@ cd build %endif %endif +%if 0%{?fedora} >= 33 +pushd %{_arch}-redhat-linux-gnu +%endif + %if 0%{?mageia} > 7 pushd build +%endif + make %{?_smp_mflags} + +%if 0%{?fedora} >= 33 popd -%else -make %{?_smp_mflags} %endif +%if 0%{?mageia} > 7 +popd +%endif %install pushd build