diff --git a/contrib/rpm/i2pd.spec b/contrib/rpm/i2pd.spec index 4ee4ad49..dfad5c40 100644 --- a/contrib/rpm/i2pd.spec +++ b/contrib/rpm/i2pd.spec @@ -25,6 +25,14 @@ BuildRequires: systemd-units BuildRequires: openssl-devel-engine %endif +%if !0%{?mageia} && (0%{?rhel} && 0%{?rhel} <= 9 || 0%{?fedora} && 0%{?fedora} <= 43) +BuildRequires: boost-json +%endif + +%if !0%{?mageia} && 0%{?fedora} && 0%{?fedora} <= 43 +BuildRequires: boost-url +%endif + Requires: logrotate Requires: systemd Requires(pre): %{_sbindir}/useradd %{_sbindir}/groupadd @@ -44,6 +52,9 @@ cd build -DWITH_LIBRARY=OFF \ -DWITH_UPNP=ON \ -DWITH_HARDENING=ON \ +%if 0%{?rhel} <= 9 + -DWITH_TORRENTS=OFF \ +%endif %if 0%{?fedora} > 29 -DBUILD_SHARED_LIBS:BOOL=OFF \ . @@ -63,7 +74,7 @@ cd build %endif %endif -%if 0%{?fedora} >= 44 || 0%{?eln} +%if 0%{?fedora} >= 44 || 0%{?mageia} == 9 || 0%{?mageia} > 10 || 0%{?eln} ninja %{?_smp_mflags} %else make %{?_smp_mflags}