summaryrefslogtreecommitdiffstats
path: root/php-pecl-psr.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-psr.spec')
-rw-r--r--php-pecl-psr.spec3
1 files changed, 3 insertions, 0 deletions
diff --git a/php-pecl-psr.spec b/php-pecl-psr.spec
index adda1a0..a264282 100644
--- a/php-pecl-psr.spec
+++ b/php-pecl-psr.spec
@@ -30,6 +30,8 @@ Source0: http://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstre
License: BSD
URL: http://pecl.php.net/package/psr
+Patch0: https://patch-diff.githubusercontent.com/raw/jbboehr/php-psr/pull/55.patch
+
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 5.6
BuildRequires: %{?scl_prefix}php-pear
@@ -106,6 +108,7 @@ mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS
%{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml}
cd NTS
+%patch0 -p1 -b .pr55
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_PSR_VERSION/{s/.* "//;s/".*$//;p}' php_psr.h)