From: Arran Cudbard-Bell Date: Tue, 2 Jul 2024 23:06:38 +0000 (-0600) Subject: Allow the name of the instant client packages to be specified X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd39d17ca8e6d7bd7191460298ff3f171f5bba18;p=thirdparty%2Ffreeradius-server.git Allow the name of the instant client packages to be specified --- diff --git a/redhat/freeradius.spec b/redhat/freeradius.spec index 2c97a01b482..24865a5c596 100644 --- a/redhat/freeradius.spec +++ b/redhat/freeradius.spec @@ -7,12 +7,29 @@ %bcond_with rlm_securid %bcond_with rlm_sigtran -# Oracle conditions and definitions -# Pass in --with rlm_sql_oracle to build with Oracle support -# Specify the version of Oracle you're using with _oracle_version -# Specify the include and lib directories for Oracle with _oracle_include_dir and _oracle_lib_dir +# +# Oracle conditions and definitions +# +# The name of instantclient packages, and where they install libraries and headers +# varies wildly between the version of the package and what operating system you're +# using. The following definitions allow the defaults for the rlm_sql_oracle module +# to be overridden. +# +# Pass in --with rlm_sql_oracle to build with Oracle support +# +# Specify the version of Oracle you're using with: +# --define '_oracle_version ' +# Specify the include and lib directories for Oracle with: +# --define '_oracle_include_dir ' and --define '_oracle_lib_dir ' +# Specify runtime dependencies with: +# --define '_oracle_requires ' +# Specify the build dependencies with: +# --define '_oracle_build_requires ' +# %bcond_with rlm_sql_oracle %if %{with rlm_sql_oracle} + %{!?_oracle_requires:%define _oracle_requires oracle-instantclient%{?_oracle_version}} + %{!?_oracle_build_requires:%define _oracle_build_requires oracle-instantclient%{?_oracle_version}-devel} %ifarch x86_64 %{!?_oracle_include_dir:%define _oracle_include_dir /usr/include/oracle%{?_oracle_version:/%{_oracle_version}}/client64} %{!?_oracle_lib_dir:%define _oracle_lib_dir %{_prefix}/lib/oracle/%{?_oracle_version:/%{_oracle_version}}/client64/lib} @@ -443,8 +460,8 @@ This plugin provides FreeTDS support for the FreeRADIUS server project. Summary: Oracle support for FreeRADIUS Group: System Environment/Daemons Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: oracle-instantclient%{?_oracle_version} -BuildRequires: oracle-instantclient%{?_oracle_version}-devel +Requires: %{_oracle_requires} +BuildRequires: %{_oracle_build_requires} %description oracle This plugin provides Oracle support for the FreeRADIUS server project. %endif