We were used to duplicate sources tree for dual build (NTS/ZTS)
despite most extensions support out of sources build which is
the way pecl command build them
Here is 2 examples of the change:
https://git.remirepo.net/cgit/rpms/php/pecl/php-pecl-rnp.git/commit/?id=a05…https://src.fedoraproject.org/rpms/php-pecl-mongodb/c/a16edfac821be29632072…
Or a full spec file:
https://rpms.remirepo.net/temp/php-pecl-rnp.spec
I plan to modernize some other extension spec files
during update for new version
Notice: I now recommend to use some new macro helpers
provided by php-devel package
%{__php}
%{__phpize}
%{__phpconfig}
%{__ztsphpconfig}
No immediate plan to change their value
but thinking about packaging changes
Regards
Remi
P.S. review #2210274 and #2216682 and two new extensions
(bitset and rnp) following this new way.