summaryrefslogtreecommitdiffstats
path: root/php-pecl-libsodium.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-11-30 18:42:29 +0100
committerRemi Collet <fedora@famillecollet.com>2015-11-30 18:42:29 +0100
commitc739e4329b21987264ad544c2bd4c41ec963ae28 (patch)
tree50b9c0b22979d389f6d343a6cb1a03f2ae9905f8 /php-pecl-libsodium.spec
parent402ca2676c1a80aa77f1a034f6f29dafd7867b3c (diff)
php-pecl-libsodium: fix test
Diffstat (limited to 'php-pecl-libsodium.spec')
-rw-r--r--php-pecl-libsodium.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/php-pecl-libsodium.spec b/php-pecl-libsodium.spec
index b8151ce..f4f87ee 100644
--- a/php-pecl-libsodium.spec
+++ b/php-pecl-libsodium.spec
@@ -32,6 +32,9 @@ Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+# See https://github.com/jedisct1/libsodium-php/pull/70
+Patch0: %{pecl_name}-pr70.patch
+
BuildRequires: libsodium-devel >= 0.6.0
BuildRequires: php-devel > 5.2
BuildRequires: php-pear
@@ -66,6 +69,7 @@ mv %{pecl_name}-%{version} NTS
sed -e '/role="test"/d' -i package.xml
cd NTS
+%patch0 -p1 -b .pr70
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_LIBSODIUM_VERSION/{s/.* "//;s/".*$//;p}' php_libsodium.h)