Hi,
Sorry, being late..
Le 18/09/2017 à 14:29, François Kooman a écrit :
in spec files:
%if 0%{?fedora} >= 28
Requires: php-sodium
%else
Requires: php-libsodium
%endif
I think this only make sense if you accept both versions
as sodium (v2 or PHP 7.2) and libsodium (v1) have different API.
If you need v2
Requires: php-sodium
Requires: php-pecl(libsodium) >= 2
If you need v1
Requires: php-libsodium
or
Requires: php-pecl(libsodium) < 2
Notice: I've just fix a small issue in old v1 extension, which allow to
load both extensions simuiltenaously, so I will keep the
php-pecl-libsodium package for a few more Fedora versions.
Remi.
P.S. IMHO, "Requires: php-foo" should always be preferred, rather than
the php-pecl(xxx) virtual provides.