summaryrefslogtreecommitdiffstats
path: root/php-snuffleupagus.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-snuffleupagus.spec')
-rw-r--r--php-snuffleupagus.spec12
1 files changed, 10 insertions, 2 deletions
diff --git a/php-snuffleupagus.spec b/php-snuffleupagus.spec
index 2774397..a5bdddd 100644
--- a/php-snuffleupagus.spec
+++ b/php-snuffleupagus.spec
@@ -34,13 +34,16 @@ Version: 0.2.1
%if 0%{?gh_date}
Release: 1%{gh_date}.%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
%else
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
%endif
License: LGPLv3
Group: Development/Languages
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pkg_name}-%{version}-%{gh_short}.tar.gz
+Patch0: https://patch-diff.githubusercontent.com/raw/nbs-system/snuffleupagus/pull/185.patch
+
+BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel > 7
BuildRequires: pcre-devel
@@ -81,11 +84,12 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -q -n %{gh_project}-%{gh_commit}
+%patch0 -p1 -b .pr185
+
cd src
# Only RPM build flags
sed -e '/^CFLAGS/d' -i config.m4
-# TODO not ok for now
# Sanity check, really often broken
grep PHP_SNUFFLEUPAGUS_VERSION php_snuffleupagus.h
extver=$(sed -n '/#define PHP_SNUFFLEUPAGUS_VERSION/{s/.* "//;s/".*$//;p}' php_snuffleupagus.h)
@@ -199,6 +203,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Fri Jun 29 2018 Remi Collet <remi@remirepo.net> - 0.2.1-2
+- add patch for test suite with PHP 7.3 from
+ https://github.com/nbs-system/snuffleupagus/pull/185
+
* Wed Feb 7 2018 Remi Collet <remi@remirepo.net> - 0.2.1-1
- Update to 0.2.1