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