# NOTE
# - release tarballs: http://getcomposer.org/download/
-%define rel 15
-#define githash 5744981
-# $ git rev-list 1.0.0-alpha11..%{githash} --count
-#define commits 216
-%define subver alpha11
%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}%{?commits:.%{commits}}%{?githash:.g%{githash}}
+Release: 18
License: MIT
Group: Development/Languages/PHP
-#Source0: https://github.com/composer/composer/archive/%{githash}/%{name}-%{version}-%{subver}-%{commits}-g%{githash}.tar.gz
-Source0: https://github.com/composer/composer/archive/%{version}-%{subver}/%{name}-%{version}-%{subver}.tar.gz
-# Source0-md5: 5e4ff16cff75fae31285196c5f51a8f8
+Source0: https://github.com/composer/composer/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 9705bcf15d272acad2169a9b369cafd9
Source2: https://raw.githubusercontent.com/iArren/%{name}-bash-completion/86a8129/composer
# Source2-md5: cdeebf0a0da1fd07d0fd886d0461642e
Source3: autoload.php
Patch2: svn-ignore-externals.patch
Patch3: version.patch
URL: http://www.getcomposer.org/
+BuildRequires: php-devel
BuildRequires: rpm-php-pearprov >= 4.4.2-11
BuildRequires: rpmbuild(macros) >= 1.673
%if %{with tests}
+BuildRequires: composer >= 1.0.0-17.beta1
+BuildRequires: git-core
BuildRequires: phpab
BuildRequires: phpunit
%endif
Requires: php(zlib)
Requires: php-composer-semver >= 1.0.0
Requires: php-composer-spdx-licenses >= 1.0.0
-Requires: php-justinrainbow-json-schema >= 1.4
-Requires: php-seld-jsonlint >= 1.1.2
+Requires: php-justinrainbow-json-schema >= 1.6
+Requires: php-seld-cli-prompt >= 1.0.0
+Requires: php-seld-jsonlint >= 1.4
Requires: php-seld-phar-utils >= 1.0.0
Requires: php-symfony2-ClassLoader >= 2.7.7
Requires: php-symfony2-Console >= 2.7.7
# needs newer phpunit:
# missing method PHPUnit_Framework_MockObject_Builder_InvocationMocker::willReturn()
+rm tests/Composer/Test/ApplicationTest.php
rm tests/Composer/Test/EventDispatcher/EventDispatcherTest.php
rm tests/Composer/Test/IO/ConsoleIOTest.php
rm tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php
rm tests/Composer/Test/Package/RootAliasPackageTest.php
rm tests/Composer/Test/Package/Version/VersionGuesserTest.php
rm tests/Composer/Test/Util/GitHubTest.php
+rm tests/Composer/Test/Util/GitLabTest.php
+# method PHPUnit_Framework_MockObject_Builder_InvocationMocker::withConsecutive()
+rm tests/Composer/Test/Util/BitbucketTest.php
+# Call to undefined method Composer\Test\Repository\Vcs\GitLabDriverTest::prophesize()
+rm tests/Composer/Test/Repository/Vcs/GitLabDriverTest.php
%build
%if %{with tests}