summaryrefslogtreecommitdiffstats
path: root/php-pecl-libsodium2.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-libsodium2.spec')
-rw-r--r--php-pecl-libsodium2.spec13
1 files changed, 7 insertions, 6 deletions
diff --git a/php-pecl-libsodium2.spec b/php-pecl-libsodium2.spec
index 6b4e4b7..76e7539 100644
--- a/php-pecl-libsodium2.spec
+++ b/php-pecl-libsodium2.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-libsodium
#
-# Copyright (c) 2014-2018 Remi Collet
+# Copyright (c) 2014-2019 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -20,7 +20,7 @@
Summary: Wrapper for the Sodium cryptographic library
Name: %{?sub_prefix}php-pecl-%{proj_name}2
-Version: 2.0.20
+Version: 2.0.21
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: BSD
URL: http://pecl.php.net/package/%{proj_name}
@@ -50,10 +50,6 @@ Provides: %{?scl_prefix}php-pecl-%{proj_name}2%{?_isa} = %{version}-%{rele
%endif
%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
-%if "%{php_version}" > "7.0"
-Obsoletes: php70u-pecl-%{proj_name}2 <= %{version}
-Obsoletes: php70w-pecl-%{proj_name}2 <= %{version}
-%endif
%if "%{php_version}" > "7.1"
Obsoletes: php71u-pecl-%{proj_name}2 <= %{version}
Obsoletes: php71w-pecl-%{proj_name}2 <= %{version}
@@ -83,6 +79,8 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
+sed -e '/PHP_SODIUM_VERSION/s/2.0.20/%{version}/' -i php_libsodium.h
+
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_SODIUM_VERSION/{s/.* "//;s/".*$//;p}' php_libsodium.h)
if test "x${extver}" != "x%{version}"; then
@@ -213,6 +211,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Thu Feb 21 2019 Remi Collet <remi@remirepo.net> - 2.0.21-1
+- update to 2.0.21
+
* Tue Dec 18 2018 Remi Collet <remi@remirepo.net> - 2.0.20-1
- update to 2.0.20