Logoj0ke.net Open Build Service > Projects > internetx:php7:EL7 > php-pecl-sphinx > Changes
Sign Up | Log In

Changes of Revision 8

[-] Changed php-pecl-sphinx.spec
x
 
1
@@ -2,6 +2,7 @@
2
 
3
 %global php_zendabiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP Extension => //p') | tail -1)
4
 %global php_version %((echo 0; php-config --version 2>/dev/null) | tail -1)
5
+%global php_pkg_version %((echo 0; rpm -q php5 --qf '%{version}-%{release}\n' 2>/dev/null) | tail -1)
6
 %global basepkg php
7
 %global pecl_name sphinx
8
 %global with_zts  0%{?__ztsphp:1}
9
@@ -20,7 +21,7 @@
10
 #
11
 BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build
12
 BuildRequires: php-devel libsphinxclient-devel gcc gcc-c++
13
-Requires:  php = %{php_version}
14
+Requires:  php = %{php_pkg_version}
15
 #
16
 URL:       http://pecl.php.net/
17
 Source:        http://pecl.php.net/package/%{pkg_name}/%{pkg_name}-%{version}.tgz
18