summaryrefslogtreecommitdiffstats
path: root/php-pecl-varnish.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-varnish.spec')
-rw-r--r--php-pecl-varnish.spec12
1 files changed, 11 insertions, 1 deletions
diff --git a/php-pecl-varnish.spec b/php-pecl-varnish.spec
index 650b6fc..51c93fb 100644
--- a/php-pecl-varnish.spec
+++ b/php-pecl-varnish.spec
@@ -28,12 +28,18 @@
Summary: Varnish Cache bindings
Name: %{?sub_prefix}php-pecl-%{pecl_name}
Version: 1.2.1
-Release: 8%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 9%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: BSD
Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+# Upstream patches
+# http://svn.php.net/viewvc?view=revision&revision=340569
+# http://svn.php.net/viewvc?view=revision&revision=340570
+# http://svn.php.net/viewvc?view=revision&revision=340571
+Patch0: %{pecl_name}-upstream.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{?scl_prefix}php-devel > 5.3
BuildRequires: %{?scl_prefix}php-pear
@@ -105,6 +111,7 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
+%patch0 -p3 -b .upstream
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_VARNISH_VERSION/{s/.* "//;s/".*$//;p}' php_varnish.h)
@@ -290,6 +297,9 @@ rm -rf %{buildroot}
%changelog
+* Thu Oct 20 2016 Remi Collet <remi@fedoraproject.org> - 1.2.1-9
+- add patch for varnish 4.1 (F24) and 5.0 (F25)
+
* Wed Sep 14 2016 Remi Collet <remi@fedoraproject.org> - 1.2.1-8
- rebuild for PHP 7.1 new API version