]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
memoize php_suffix
authorElan Ruusamäe <glen@delfi.ee>
Sat, 22 Jun 2013 19:33:22 +0000 (22:33 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 22 Jun 2013 19:33:22 +0000 (22:33 +0300)
rpm.macros

index f76e1335b94dc05dc94a1f04ea932b9d2f8bacb0..45ac6215ed00f0563edc353146675f4aadc1513d 100644 (file)
@@ -946,7 +946,7 @@ fi; \
 %php_name                              php%{?php_suffix}
 # use rpmbuild -D 'php_suffix 54' to build php extension for php 5.4
 # NOTE: error output must be empty. otherwise can't build pecl packages if no php*-devel is installed
-%php_suffix             %(c=$(php-config --sysconfdir 2>/dev/null) || echo '' && echo ${c#/etc/php})
+%php_suffix                            %{expand:%%global php_suffix %(c=$(php-config --sysconfdir 2>/dev/null) || echo '' && echo ${c#/etc/php})%%{nil}}%php_suffix
 
 # php cli. version that php headers are installed for
 %__php                                 /usr/bin/%{php_name}
This page took 0.050702 seconds and 4 git commands to generate.