
# 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.15.16
%feature_qt5_webengine 1
%feature_qt5_webkit 1
%feature_qt6 6.4.2
%feature_qt6_webengine 1
%feature_vulkan 1.3.236
%feature_vkd3d 1.6
%feature_faudio 1
%feature_opencl 1
%feature_sip5 1
%feature_ffmpeg 4.4.6
%feature_icu 6.9
%feature_pcap 1.9.1
# default llvm
%feature_llvm 11.0
%feature_unwind 1.5.0

%feature_php7 7.4.33
%feature_php80 8.0.30
%feature_php81 8.1.27
%feature_php82 8.2.29

%feature_python3 3.9.16

%feature_mono 6.12
%feature_gtk_sharp 2.99.4

#feature_ctest 3.23.2
%feature_cmake 3.23.2
%feature_wayland 1
# libclickhouse-cpp-devel
%feature_clickhouse 22.8.19.10

%feature_opencv 4.5.2

%feature_linux_kernel_std 5.10

%feature_glibc 2.32
%feature_gcc 10

%feature_glib2 2.68.4
%feature_glibmm2 2.8.2

%feature glusterfs 9.3

%feature numactl 2.0.14

# An addition for i586
%feature_wine 8.14.1

%feature_qt6_webengine 0

