
# usage: if_feature FEATURE [version]
# examples:
#    if_feature sip5
#    if_feature icu 6.5
# details: mix if_with and if_ver_gteq
%if_feature() %if (%{expand:%%{?feature_%{1}:1}%%{!?feature_%{1}:0}}) && ( "00" != "0%{expand:%%{?feature_%{1}:%%{feature_%{1}}}}" ) && ( 0%{!?2:1} || ( 0%{?2:1} && "%(rpmvercmp '0%{expand:%%{feature_%{1}}}' '0%{?2:%2}')" >= "0" ) )
%if_notfeature() %if !(%{expand:%%{?feature_%{1}:1}%%{!?feature_%{1}:0}}) || !( "00" != "0%{expand:%%{?feature_%{1}:%%{feature_%{1}}}}" ) && ( 0%{!?2:1} || ( 0%{?2:1} && "%(rpmvercmp '0%{expand:%%{feature_%{1}}}' '0%{?2:%2}')" >= "0" ) )


# presents in the repo
%feature_qt5 5.12.9
%feature_qt5_webengine 1
%feature_qt5_webkit 1
%feature_qt6 0
%feature_vulkan 1.2.141
%feature_vkd3d 1.2
%feature_faudio 1
%feature_opencl 1
%feature_osmesa 0
%feature_sip5 0
%feature_ffmpeg 4.3.6
%feature_icu 6.9
%feature_pcap 1.9.1
# default llvm
%feature_llvm 11.0
%feature_unwind 1.1

%feature_php7 7.4.33
%feature_php80 0
%feature_php81 8.1.16
%feature_php82 0

%feature_python3 3.7.4

%feature_mono 5.20
%feature_gtk_sharp 2.12.11

#feature_ctest 3.16.3
%feature_cmake 3.16.3
%feature_wayland 0
# libclickhouse-cpp-devel
%feature_clickhouse 22.3.7.28

%feature_opencv 3.4.5

%feature_linux_kernel_std 5.10

%feature_glibc 2.27
%feature_gcc 8

%feature_glib2 2.60.7
%feature_glibmm2 2.60.0


# An addition for x86_64
%feature_dotnet 6.0
%feature_wine 5.20.0.1

