diff --git a/libica.spec b/libica.spec index 6b27791..9981a39 100644 --- a/libica.spec +++ b/libica.spec @@ -54,6 +54,17 @@ sh ./bootstrap.sh %endif %make_build +%if %{with_fips} +%if 0%{?fedora} >= 36 || 0%{?rhel} >= 9 +# provide RHEL/Fedora-compatible openssl3 FIPS config +cat > src/openssl3-fips.cnf << EOF +openssl_conf = openssl_init + +[openssl_init] +EOF +%endif +%endif + %install %make_install