Fixing Oracle version requirement in the spec file
Problem
At the moment, this line in the spec file does not work properly:
%define requirementsOS protobuf-compiler >= 3.3.1 protobuf-devel >= 3.3.1 oracle-instantclient-devel >= %{oracleVersionMin} oracle-instantclient-devel < %{oracleVersionMax}
It ends up being resolved into two separate BuildRequires: constraints, which results in the package manager trying to install both Oracle 21 and 23 (since 23 is the most recent in the repo):
oracle-instantclient-devel >= 21.12
oracle-instantclient-devel < 21.13
In order to get both restraints to be considered together, we need to add a and between both Oracle constraints:
BuildRequires: protobuf-compiler >= 3.3.1
BuildRequires: protobuf-devel >= 3.3.1
BuildRequires: (oracle-instantclient-devel >= %{oracleVersionMin} and oracle-instantclient-devel < %{oracleVersionMax})
A and clause is possible since rpm-4.13:
Edited by Joao Afonso