]> git.pld-linux.org Git - packages/composer.git/commitdiff
use php-devel version of php for build, ensure result is unversioned
authorElan Ruusamäe <glen@delfi.ee>
Wed, 2 Sep 2015 19:01:57 +0000 (22:01 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 2 Sep 2015 19:01:57 +0000 (22:01 +0300)
composer.spec

index d204de8b8ca4253d713ae701fae37b2a0e5ce7b0..e83ee7d447dbe70d2817eeb09cab1baae0ae16bf 100644 (file)
@@ -31,17 +31,16 @@ Patch1:             no-vendors.patch
 Patch2:                autoload-config.patch
 Patch3:                update-memory-limit.patch
 URL:           http://www.getcomposer.org/
+BuildRequires: %{php_name}-cli
 BuildRequires: %{php_name}-ctype
 BuildRequires: %{php_name}-filter
 BuildRequires: %{php_name}-hash
 BuildRequires: %{php_name}-json
 BuildRequires: %{php_name}-openssl
 BuildRequires: %{php_name}-phar
-BuildRequires: %{php_name}-program
 BuildRequires: %{php_name}-zip
 BuildRequires: %{php_name}-zlib
 BuildRequires: /usr/bin/phar
-BuildRequires: /usr/bin/php
 BuildRequires: php-devel
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
 BuildRequires: rpmbuild(macros) >= 1.673
@@ -107,7 +106,8 @@ mv composer-*/* .
 %patch3 -p1
 
 mv composer.lock{,.disabled}
-%{__sed} -i -e '1s,^#!.*env php,#!%{__php},' bin/*
+# NOTE: do not use %{__php} macro here, need unversioned php binary
+%{__sed} -i -e '1s,^#!.*env php,#!/usr/bin/php,' bin/*
 
 # cleanup backups after patching
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
This page took 0.168891 seconds and 4 git commands to generate.