Browse Source

php5-5.3.11-2

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

+ 15 - 1
p/php5/php5-vl.spec

@@ -26,11 +26,15 @@
 %global apache2_cgidir %{apache2_contentdir}/cgi-bin
 %global apache2_fcgidir %{apache2_contentdir}/fcgi-bin
 
+%define _use_internal_dependency_generator 0
+%define __find_provides %{_builddir}/php-%{version}/find-provides.sh
+%define _built_php %{buildroot}%{_bindir}/php5
+
 Name: php5
 Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
 Summary(ja): HTML 埋め込み型スクリプト言語 PHP
 Version: 5.3.11
-Release: 1%{_dist_release}
+Release: 2%{_dist_release}
 
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -54,6 +58,7 @@ Source26: php-fpm.conf
 Source27: default-pool.conf
 Source28: php-fpm.logrotate
 Source29: php_params
+Source30: find-provides.sh.in
 
 Patch33: php-5.2.4-phpincludedir.patch
 # Additional feature
@@ -721,6 +726,12 @@ for X in pear5 peardev5 pecl5 ; do
   chmod 0755 %{buildroot}%{_bindir}/$X
 done
 
+PEAPI=`%{_built_php} -n -i | grep 'PHP Extension =>' | sed -e 's/^.* //'`
+ZEAPI=`%{_built_php} -n -i | grep 'Zend Extension =>' | sed -e 's/^.* //'`
+
+sed -e "s,@BUILDROOT@,%{buildroot},g" -e "s/@PEAPI@/$PEAPI/g" -e "s/@ZEAPI@/$ZEAPI/g" < %{SOURCE30} > %{__find_provides}
+chmod 755 %{__find_provides}
+
 #----------------------------------------------------------------------
 %post
 /sbin/update-alternatives --install %{_bindir}/php \
@@ -896,6 +907,9 @@ rm -f files.*
 
 #======================================================================
 %changelog
+* Sat Apr 28 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.11-2
+- added API versions to 'Provides'.
+
 * Thu Apr 26 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.11-1
 - new upstream release.