summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-08-16 14:04:57 +0200
committerRemi Collet <fedora@famillecollet.com>2012-08-16 14:04:57 +0200
commitb5acf881d8836a18f782c29470477ccfeb6eb0d2 (patch)
tree7b079449c4d487cdb1bf2ccca38482411953951f
parent173f8dfb5659bfab2aa84c935712d1c01cd899ea (diff)
php 5.3.16: define %{php_version}
-rw-r--r--macros.php1
-rw-r--r--php53.spec2
2 files changed, 3 insertions, 0 deletions
diff --git a/macros.php b/macros.php
index 8900aba..784d601 100644
--- a/macros.php
+++ b/macros.php
@@ -4,6 +4,7 @@
%php_core_api @PHP_APIVER@
%php_zend_api @PHP_ZENDVER@
%php_pdo_api @PHP_PDOVER@
+%php_version @PHP_VERSION@
%php_extdir %{_libdir}/php/modules
%php_ztsextdir %{_libdir}/php-zts/modules
diff --git a/php53.spec b/php53.spec
index 72ad17c..117da11 100644
--- a/php53.spec
+++ b/php53.spec
@@ -1314,6 +1314,7 @@ install -d $RPM_BUILD_ROOT%{_origsysconfdir}/rpm
sed -e "s/@PHP_APIVER@/%{apiver}%{isasuffix}/" \
-e "s/@PHP_ZENDVER@/%{zendver}%{isasuffix}/" \
-e "s/@PHP_PDOVER@/%{pdover}%{isasuffix}/" \
+ -e "s/@PHP_VERSION@/%{version}/" \
-e "s/@PHPNAME@/%{phpname}/" \
< %{SOURCE3} > macros.php
install -m 644 -c macros.php \
@@ -1488,6 +1489,7 @@ fi
%changelog
* Thu Aug 16 2012 Remi Collet <remi@fedoraproject.org> 5.3.16-1
- update to 5.3.16
+- define %%{php_version}
* Fri Jul 20 2012 Remi Collet <remi@fedoraproject.org> 5.3.15-1
- update to 5.3.15 (CVE-2012-2688)