From 8c1aad5b142e66a6996d35b5187530ab1b84830c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 31 Oct 2014 14:39:50 +0100 Subject: php-react-promise: 2.1.0 (with backport stuff for EL-5) --- php-react-promise.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/php-react-promise.spec b/php-react-promise.spec index 8b328c7..a084cb6 100644 --- a/php-react-promise.spec +++ b/php-react-promise.spec @@ -36,6 +36,7 @@ License: MIT URL: https://github.com/%{github_owner}/%{github_name} Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %if %{with_tests} BuildRequires: php-phpunit-PHPUnit @@ -68,6 +69,7 @@ A lightweight implementation of CommonJS Promises/A [1] for PHP. %install +rm -rf %{buildroot} mkdir -pm 0755 %{buildroot}%{phpdir}/React/Promise cp -rp src/* %{buildroot}%{phpdir}/React/Promise/ @@ -92,9 +94,6 @@ spl_autoload_register(function ($class) { require_once '%{buildroot}%{phpdir}/React/Promise/functions.php'; BOOTSTRAP -# Create PHPUnit config with colors turned off -sed 's/colors="true"/colors="false"/' phpunit.xml.dist > phpunit.xml - %{__phpunit} \ --bootstrap ./bootstrap.php \ --include-path %{buildroot}%{phpdir}:./tests \ @@ -104,7 +103,12 @@ sed 's/colors="true"/colors="false"/' phpunit.xml.dist > phpunit.xml %endif +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc *.md composer.json @@ -113,6 +117,9 @@ sed 's/colors="true"/colors="false"/' phpunit.xml.dist > phpunit.xml %changelog +* Fri Oct 31 2014 Remi Collet - 2.1.0-1 +- backport 2.1.0 for remi repo. + * Mon Oct 27 2014 Shawn Iwinski - 2.1.0-1 - Updated to 2.1.0 -- cgit