php-7.1.0 RPM Package Production

Source: Internet
Author: User

nginx-1.8.0 RPM Package Production see previous article: http://www.cnblogs.com/xiaoming279/p/6251149.html

Spec file

name:php Version:7.1. 0 Release:1%{? dist}summary:phpgroup:applications/Server license:gplv2 url:http:www.51. ComSource0:%{name}-%{version}.tar.gz Source1:php.ini-productionsource2:php-fpm.confbuildrequires:gcc,make requires:zlib libpng-devel libjpeg-turbo-devel libcurl-devel libjpeg freetype libgpg-error-devel libxslt libxslt-devel libpng gd Curl Libmcry PT Libmcrypt-devel zlib-devel libxml2-devel libjpeg-devel freetype-devel libpng-devel gd-devel curl-Develbuildroot:%{_topdir}/BuildRoot%DescriptionIt's a php compile by [email protected]%Prep%setup-Q%Buildecho $RPM _build_root./Configure--prefix=%{_prefix}--enable-FPM--with-fpm-user=Nobody--with-config-file-path=%{_prefix}/Lib--with-fpm-group=Nobody--with-mysqli--with-pdo-MySQL--with-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib--with-libxml-dir=/usr--enable-XML--disable-rpath--enable-Bcmath--enable-Shmop--enable-Sysvsem--enable-inline-optimization--with-Curl--enable-Mbregex--enable-mbstring--with-MCrypt--enable-FTP--with-GD--enable-gd-native-TTF--with-OpenSSL--with-Mhash--enable-Pcntl--enable-Sockets--with-Xmlrpc--enable-Zip--enable-Soap--without-Pear--disable-Phar--with-GetText--disable-FileInfo--enable-maintainer-Ztsmake%{? _smp_mflags}%install["$RPM _build_root"!="/"] && RM-RF $RPM _build_rootmake install_root=$RPM _build_root Install%{__install}-p-d%{source1} $RPM _build_root/%{_prefix}/lib/php.ini%{__install}-p-d%{source2} $RPM _build_root/%{_prefix}/etc/php-fpm.conf%Pre%postln-SV%{_prefix}/usr/local/%{name} &>/dev/null[!-d/data/logs/%{name}] && mkdir-p/data/logs/%{name} &>/dev/NULL%Preun%POSTUNRM-rf/usr/local/%{name}rm-rf%{_prefix}%clean["$RPM _build_root"!="/"] && RM-RF $RPM _build_root%Files%defattr (-,root,root,0755)%{_prefix}%changelog

php-7.1.0 RPM Package Production

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.