From 77d32f76c22641495a63a29dfc7f940e35776885 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Wed, 26 Feb 2020 16:27:27 +0300 Subject: [PATCH] rpm: make changes more targeted --- contrib/rpm/i2pd-git.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/contrib/rpm/i2pd-git.spec b/contrib/rpm/i2pd-git.spec index 96a3a360..f9571ca0 100644 --- a/contrib/rpm/i2pd-git.spec +++ b/contrib/rpm/i2pd-git.spec @@ -55,20 +55,22 @@ cd build %endif %endif -%if 0%{?mageia} +%if 0%{?mageia} > 7 pushd build -%endif make %{?_smp_mflags} -%if 0%{?mageia} popd +%else +make %{?_smp_mflags} %endif %install -cd build +pushd build + %if 0%{?mageia} -cd build +pushd build %endif + chrpath -d i2pd %{__install} -D -m 755 i2pd %{buildroot}%{_sbindir}/i2pd %{__install} -D -m 755 %{_builddir}/%{name}-%{version}/contrib/i2pd.conf %{buildroot}%{_sysconfdir}/i2pd/i2pd.conf