]> git.pld-linux.org Git - packages/composer.git/commitdiff
include git hash to runtime version; BR consistency auto/th/composer-1.0.0-0.alpha8.3.ac497fe
authorElan Ruusamäe <glen@delfi.ee>
Thu, 19 Jun 2014 09:19:16 +0000 (12:19 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 19 Jun 2014 09:19:16 +0000 (12:19 +0300)
composer.spec

index ba430b2c172b13832be945fc1de5045ac86c8d59..98781b0c12cd3644f27aef29bf4b705186240691 100644 (file)
@@ -28,15 +28,16 @@ Patch0:             nogit.patch
 Patch1:                no-vendors.patch
 Patch2:                autoload-config.patch
 URL:           http://www.getcomposer.org/
+BuildRequires: %{php_name}-ctype
+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(ctype)
-BuildRequires: php(hash)
-BuildRequires: php(json)
-BuildRequires: php(openssl)
-BuildRequires: php(phar)
-BuildRequires: php(zip)
-BuildRequires: php(zlib)
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
 BuildRequires: rpmbuild(macros) >= 1.673
 %if %{without bootstrap}
@@ -114,7 +115,7 @@ if [ ! -d vendor ]; then
        %{__patch} -p1 < %{PATCH2}
 fi
 
-COMPOSER_VERSION=%{version}%{?subver:-%{subver}} \
+COMPOSER_VERSION=%{version}%{?subver:-%{subver}}%{?githash:@%{githash}} \
 %{__php} -d phar.readonly=0 ./bin/compile
 
 # sanity check
This page took 0.084806 seconds and 4 git commands to generate.