summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-pecl-ssdeep.spec13
1 files changed, 8 insertions, 5 deletions
diff --git a/php-pecl-ssdeep.spec b/php-pecl-ssdeep.spec
index 79933ca..f0589e6 100644
--- a/php-pecl-ssdeep.spec
+++ b/php-pecl-ssdeep.spec
@@ -20,7 +20,7 @@
%global _root_prefix %{_prefix}
%endif
-%global with_zts 0%{?__ztsphp:1}
+%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global pecl_name ssdeep
%if "%{php_version}" < "5.6"
%global ini_name %{pecl_name}.ini
@@ -31,13 +31,13 @@
Summary: Wrapper for libfuzzy library
Name: %{?sub_prefix}php-pecl-%{pecl_name}
Version: 1.1.0
-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;')}}
License: BSD
-Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
-BuildRequires: %{?scl_prefix}php-devel > 5.2
+BuildRequires: %{?dtsprefix}gcc
+BuildRequires: %{?scl_prefix}php-devel
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: ssdeep-devel > 2.5
@@ -175,7 +175,7 @@ do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
done
-%if 0%{?fedora} < 24
+%if 0%{?fedora} < 24 && 0%{?rhel} < 8
# when pear installed alone, after us
%triggerin -- %{?scl_prefix}php-pear
if [ -x %{__pecl} ] ; then
@@ -239,6 +239,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Wed Jun 27 2018 Remi Collet <remi@remirepo.net> - 1.1.0-2
+- cleanup
+
* Tue Feb 20 2018 Remi Collet <remi@remirepo.net> - 1.1.0-1
- Update to 1.1.0