summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-10-31 14:39:50 +0100
committerRemi Collet <fedora@famillecollet.com>2014-10-31 14:39:50 +0100
commit8c1aad5b142e66a6996d35b5187530ab1b84830c (patch)
tree95a82cb04832104de6f262c1c897d2977ed7f6e5
parent920deeddb37464d983e20ef842b501a14fee6b8c (diff)
php-react-promise: 2.1.0 (with backport stuff for EL-5)
-rw-r--r--php-react-promise.spec13
1 files 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 <remi@fedoraproject.org> - 2.1.0-1
+- backport 2.1.0 for remi repo.
+
* Mon Oct 27 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 2.1.0-1
- Updated to 2.1.0