php-7.1.0 rpm包製作

來源:互聯網
上載者:User

標籤:class   tar   des   target   mysql   ase   ibm   rip   dir   

nginx-1.8.0 rpm包製作見上篇文章:http://www.cnblogs.com/xiaoming279/p/6251149.html

spec檔案

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 libmcrypt 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包製作

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.