Browse Source

php5-5.3.11-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@6019 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 13 years ago
parent
commit
ef8d82411e
1 changed files with 57 additions and 2 deletions
  1. 57 2
      p/php5/php5-vl.spec

+ 57 - 2
p/php5/php5-vl.spec

@@ -29,8 +29,8 @@
 Name: php5
 Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
 Summary(ja): HTML 埋め込み型スクリプト言語 PHP
-Version: 5.3.10
-Release: 5%{_dist_release}
+Version: 5.3.11
+Release: 1%{_dist_release}
 
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -53,6 +53,7 @@ Source25: php-fpm.init
 Source26: php-fpm.conf
 Source27: default-pool.conf
 Source28: php-fpm.logrotate
+Source29: php_params
 
 Patch33: php-5.2.4-phpincludedir.patch
 # Additional feature
@@ -205,6 +206,17 @@ Requires: %{name} = %{version}-%{release}
 implementation with some additional features useful for sites of
 any size, especially busier sites.
 
+#----------------------------------------------------------------------
+%package nginx
+Group: System Environment/Daemons
+Summary: Nginx configuration for php-fpm
+Summary(ja): php-fpmを利用するためのNginx設定ファイル
+Requires: %{name}-fpm = %{version}-%{release}
+Requires: nginx
+
+%description nginx
+ This package inckudes FastCGI parameters for Nginx.
+
 #======================================================================
 # modules
 #----------------------------------------------------------------------
@@ -395,6 +407,21 @@ Provides: php-intl = %{version}-%{release}
 to perform UCA-conformant collation and date/time/number/currency formatting
 in their scripts.
 
+#----------------------------------------------------------------------
+%package pcntl
+Summary: A module for PHP-CLI applications to use Process Control (pcntl)
+Group: Development/Languages
+Requires: %{name} = %{version}-%{release}
+Provides: php-pcntl = %{version}-%{release}
+
+%description pcntl
+ Process Control support in PHP implements the Unix style of process
+creation, program execution, signal handling and process termination.
+Process Control should not be enabled within a web server environment
+and unexpected results may happen if any Process Control functions are
+used within a web server environment.
+
+
 #======================================================================
 %prep
 %setup -q -n %{srcname}
@@ -449,6 +476,7 @@ CFLAGS="-fPIC" \
   --enable-inline-optimization \
   --enable-intl=shared \
   --enable-mbstring \
+  --enable-pcntl=shared \
   --enable-pdo=shared \
   --enable-shmop \
   --enable-soap \
@@ -621,6 +649,10 @@ ln -sf %{_bindir}/%{_name}-cgi %{buildroot}%{apache2_fcgidir}/%{_name}-fcgi
 %{__install} -m 644 %{SOURCE24} %{buildroot}%{apache2_confdir}/%{_name}.conf
 %endif
 
+# Install the configuration file for Nginx
+mkdir -p %{buildroot}%{_sysconfdir}/nginx
+%{__install} -m 644 %{SOURCE29} %{buildroot}%{_sysconfdir}/nginx/
+
 %{__install} -m 755 -d %{buildroot}%{php_confdir}/php.d
 %{__install} -m 755 -d %{buildroot}%{_localstatedir}/%{_name}
 # for session.save_path
@@ -645,6 +677,18 @@ EOF
 EOF
 done
 
+# pcntl extension should be enabled with CLI/CGI SAPI only.
+cat > %{buildroot}%{php_confdir}/php.d/pcntl.ini <<EOF
+; Enable pcntl extension module
+;extension=pcntl.so
+EOF
+cat > files.pcntl <<EOF
+%attr(0755,root,root) %{_libdir}/%{_name}/pcntl.so
+%config(noreplace) %attr(0644,root,root) %{php_confdir}/php.d/pcntl.ini
+EOF
+
+
+
 # append mysqli module to mysql module.
 cat files.mysqli >> files.mysql
 
@@ -832,6 +876,9 @@ rm -f files.*
 %config(noreplace) %{php_confdir}/fpm.d/*.conf
 %config(noreplace) %{_sysconfdir}/logrotate.d/php-fpm
 
+%files nginx
+%defattr(-,root,root)
+%config(noreplace) %{_sysconfdir}/nginx/php_params
 
 %files dba -f files.dba
 %files imap -f files.imap
@@ -845,9 +892,17 @@ rm -f files.*
 %files sqlite -f files.sqlite
 %files xmlrpc -f files.xmlrpc
 %files intl -f files.intl
+%files pcntl -f files.pcntl
 
 #======================================================================
 %changelog
+* Thu Apr 26 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.11-1
+- new upstream release.
+
+* Thu Apr 26 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.10-6
+- added a sub-package "php-pcntl".
+- added a sub-package "php-nginx".
+
 * Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.3.10-5
 - fix Source13