From e17736337796b6531b39ebf68a96a62699abe77f Mon Sep 17 00:00:00 2001 From: R4SAS Date: Tue, 22 Jan 2019 04:08:52 +0300 Subject: [PATCH] [fedora] specify srcdir only if building at 30+ --- contrib/rpm/i2pd-git.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/rpm/i2pd-git.spec b/contrib/rpm/i2pd-git.spec index 1255aeec..fa2e6094 100644 --- a/contrib/rpm/i2pd-git.spec +++ b/contrib/rpm/i2pd-git.spec @@ -41,15 +41,18 @@ cd build -DWITH_LIBRARY=OFF \ -DWITH_UPNP=ON \ -DWITH_HARDENING=ON \ - -DBUILD_SHARED_LIBS:BOOL=OFF \ - . + -DBUILD_SHARED_LIBS:BOOL=OFF %else %cmake \ -DWITH_LIBRARY=OFF \ -DWITH_UPNP=ON \ -DWITH_HARDENING=ON \ +%if 0%{?fedora} > 29 -DBUILD_SHARED_LIBS:BOOL=OFF \ . +%else + -DBUILD_SHARED_LIBS:BOOL=OFF +%endif %endif make %{?_smp_mflags}