Browse Source

[RPM] fix build on fedora >= 33

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1575/head
R4SAS 4 years ago
parent
commit
aaf6c1ea8b
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 8
      contrib/rpm/i2pd-git.spec
  2. 17
      contrib/rpm/i2pd.spec

8
contrib/rpm/i2pd-git.spec

@ -77,14 +77,14 @@ popd @@ -77,14 +77,14 @@ popd
%install
pushd build
%if 0%{?mageia}
pushd build
%endif
%if 0%{?fedora} >= 33
pushd %{_target_platform}
%endif
%if 0%{?mageia}
pushd build
%endif
chrpath -d i2pd
%{__install} -D -m 755 i2pd %{buildroot}%{_sbindir}/i2pd
%{__install} -d -m 755 %{buildroot}%{_datadir}/i2pd

17
contrib/rpm/i2pd.spec

@ -54,18 +54,31 @@ cd build @@ -54,18 +54,31 @@ cd build
%endif
%endif
%if 0%{?fedora} >= 33
pushd %{_target_platform}
%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
%if 0%{?fedora} >= 33
pushd %{_target_platform}
%endif
%if 0%{?mageia}
pushd build
%endif

Loading…
Cancel
Save