From c42b991bc9f4e02bcc1c7d6fa4995ee1d6d25e9a Mon Sep 17 00:00:00 2001 From: R4SAS Date: Sat, 30 Apr 2022 17:03:59 +0300 Subject: [PATCH] [rpm] pre-support rhel 9 Signed-off-by: R4SAS --- contrib/rpm/i2pd-git.spec | 10 +++++++++- contrib/rpm/i2pd.spec | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/contrib/rpm/i2pd-git.spec b/contrib/rpm/i2pd-git.spec index 2c9a431b..f035c658 100644 --- a/contrib/rpm/i2pd-git.spec +++ b/contrib/rpm/i2pd-git.spec @@ -57,6 +57,10 @@ cd build %endif +%if 0%{?rhel} == 9 +pushd redhat-linux-build +%endif + %if 0%{?fedora} >= 35 %if 0%{?fedora} < 37 pushd redhat-linux-build @@ -73,6 +77,10 @@ pushd build make %{?_smp_mflags} +%if 0%{?rhel} == 9 +popd +%endif + %if 0%{?fedora} >= 33 %if 0%{?fedora} < 37 popd @@ -88,8 +96,8 @@ pushd build %if 0%{?fedora} >= 35 %if 0%{?fedora} < 37 -%endif pushd redhat-linux-build +%endif %else %if 0%{?fedora} >= 33 pushd %{_target_platform} diff --git a/contrib/rpm/i2pd.spec b/contrib/rpm/i2pd.spec index b312d21e..574d0718 100644 --- a/contrib/rpm/i2pd.spec +++ b/contrib/rpm/i2pd.spec @@ -54,6 +54,10 @@ cd build %endif %endif +%if 0%{?rhel} == 9 +pushd redhat-linux-build +%endif + %if 0%{?fedora} >= 35 %if 0%{?fedora} < 37 pushd redhat-linux-build @@ -70,6 +74,10 @@ pushd build make %{?_smp_mflags} +%if 0%{?rhel} == 9 +popd +%endif + %if 0%{?fedora} >= 33 %if 0%{?fedora} < 37 popd