RPM Spec, patch and diff files for build php 7.1.13 (04 Jan 2018) in Mageia 6
After install, the package php-timezonedb and all the php extension as php-redis , php-sasl needs rebuild with this version.
$ mkdir -p ~/rpmbuild/{BUILD,RPMS/i586,RPMS/x86_64,RPMS/noarch,SOURCES,SRPMS,SPECS,tmp}
create file .rpmmacros
Download and replace in
$ ~/rpmbuild/
For build rpm
# urpmi rpm-build rpmlint task-c++-devel task-c-devel
For compile php7 you needs all dependencies listed in .spec (BuildRequires)
you can install all them with: (dnf rulez!)
# dnf builddep php.spec
As note you need install lib64fbclient-devel or libfbclient-devel
Remember use with your own user
$ cd ~/rpmbuild/SPECS
$ rpmbuild -ba php.spec
$ cd ~/rpmbuild/RPMS/{Arch}/
if you want, remove debuginfo packages
$ rm ./*debuginfo*.rpm
and install
# urpmi ./lib64php_common7-{version}.mga6.x86_64.rpm
# urpmi ./php-*
# urpmi ./apache-mod_php-7.{version}.mga6.x86_64.rpm