[packages/rpm-build-macros] 1.686: %{__php} macro is always versioned to ensure we need just %{php_name}-cli to get the binary
glen
glen at pld-linux.org
Wed Jan 29 14:27:03 CET 2014
commit f30df016eeb99995efc02147c2f3d321d0d73f23
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Jan 29 15:26:25 2014 +0200
1.686: %{__php} macro is always versioned to ensure we need just %{php_name}-cli to get the binary
rpm-build-macros.spec | 2 +-
rpm.macros | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/rpm-build-macros.spec b/rpm-build-macros.spec
index 930df97..c2eb08a 100644
--- a/rpm-build-macros.spec
+++ b/rpm-build-macros.spec
@@ -5,7 +5,7 @@
%if "%{pld_release}" == "ac"
%define with_rpm4 1
%endif
-%define rpm_macros_rev 1.685
+%define rpm_macros_rev 1.686
%define find_lang_rev 1.36
Summary: PLD Linux RPM build macros
Summary(pl.UTF-8): Makra do budowania pakietów RPM dla Linuksa PLD
diff --git a/rpm.macros b/rpm.macros
index 82c3763..1e48117 100644
--- a/rpm.macros
+++ b/rpm.macros
@@ -958,8 +958,11 @@ fi; \
# NOTE: error output must be empty. otherwise can't build pecl packages if no php*-devel is installed
%php_suffix %{expand:%%global php_suffix %(c=$(php-config --sysconfdir 2>/dev/null) || echo '' && echo ${c#/etc/php})%%{nil}}%php_suffix
+# phpXY, version always present for using current php version (in regards of php*-devel package)
+%php_versuffix %{expand:%%global php_versuffix %((IFS=.; set -- $(php-config --version); echo $1$2))%%{nil}}%php_versuffix
+
# php cli. version that php headers are installed for
-%__php /usr/bin/%{php_name}
+%__php /usr/bin/php%{php_versuffix}
# helper macro
%__php_api_requires(v:) Requires: %{php_name}(%{expand:%1}) = %{expand:%{%{!?2:%{1}}%{?2}}}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-macros.git/commitdiff/f30df016eeb99995efc02147c2f3d321d0d73f23
More information about the pld-cvs-commit
mailing list