]> git.pld-linux.org Git - packages/composer.git/blobdiff - composer.spec
skip online tests on builders
[packages/composer.git] / composer.spec
index 923e74bd62337a06087ccf39b67b7d3f1c30cc80..b28f3bca3d8e4183a9eb27e82a5a74b9e7938c84 100644 (file)
@@ -1,13 +1,18 @@
 #
 # Conditional build:
 %bcond_with    tests           # build with tests
+%bcond_without online          # online self-test
+
+%if 0%{?_pld_builder:1}
+%undefine      with_online
+%endif
 
 %define                php_min_version 5.3.4
 %include       /usr/lib/rpm/macros.php
 Summary:       Dependency Manager for PHP
 Name:          composer
 Version:       1.9.0
-Release:       1
+Release:       2
 License:       MIT
 Group:         Development/Languages/PHP
 Source0:       https://github.com/composer/composer/archive/%{version}/%{name}-%{version}.tar.gz
@@ -108,8 +113,10 @@ ln -s src/Composer/res
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
 
 %build
+%if %{with online}
 # always run self-test
 %{__php} ./bin/composer diagnose
+%endif
 
 %if %{with tests}
 phpab -n -o src/bootstrap.php -e '*/Fixtures/*' src/ tests/
This page took 0.084338 seconds and 4 git commands to generate.