cognitus / php7-mga

source code for build .rpm php7 in mageia 6
1 stars 0 forks source link
linux mageia mageia-linux mga6 php7 php7-mga rpm rpm-packages rpm-spec spec

php7.1-mga

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.

QuickUsage

Create rpmbuild structure in /~

 $ mkdir -p ~/rpmbuild/{BUILD,RPMS/i586,RPMS/x86_64,RPMS/noarch,SOURCES,SRPMS,SPECS,tmp}

create file .rpmmacros

Put files in folders

Download and replace in

 $ ~/rpmbuild/

Install dependencies

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

Build

Remember use with your own user

$ cd  ~/rpmbuild/SPECS
$ rpmbuild -ba php.spec

Install

 $ 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