# Conditional build:
%bcond_with bootstrap # build boostrap
-%define rel 10
-#define githash b23a3cd
+%define rel 12
+# $ git rev-list 1.0.0-alpha9..%{githash} --count
+%define commits 216
+%define githash 5744981
%define subver alpha9
%define php_min_version 5.3.4
%include /usr/lib/rpm/macros.php
Summary: Dependency Manager for PHP
Name: composer
Version: 1.0.0
-Release: %{rel}.%{subver}
+Release: %{rel}.%{subver}.%{commits}.g%{githash}
License: MIT
Group: Development/Languages/PHP
-#Source0: https://github.com/composer/composer/archive/%{githash}/%{name}-%{version}-%{githash}.tar.gz
-Source0: https://github.com/composer/composer/archive/%{version}-%{subver}/%{name}-%{version}-%{subver}.tar.gz
-# Source0-md5: f5d0fb132995263ee2783f9e9521acbc
+Source0: https://github.com/composer/composer/archive/%{githash}/%{name}-%{version}-%{subver}-%{commits}-g%{githash}.tar.gz
+# Source0-md5: d3152cbae030fedb85f5d1ac52dddd4f
+#Source0: https://github.com/composer/composer/archive/%{version}-%{subver}/%{name}-%{version}-%{subver}.tar.gz
%if %{with bootstrap}
Source1: http://getcomposer.org/download/%{version}-alpha8/%{name}.phar
# Source1-md5: df1001975035f07d09307bf1f1e62584
Requires: php(zip)
Requires: php(zlib)
%if %{without bootstrap}
-Requires: php-justinrainbow-json-schema >= 1.1.0
+Requires: php-justinrainbow-json-schema >= 1.3
Requires: php-seld-jsonlint >= 1.1.2
Requires: php-symfony2-Console >= 2.3
Requires: php-symfony2-Finder >= 2.2