summaryrefslogtreecommitdiffstats
path: root/php-pecl-libsodium.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-10-11 14:51:20 +0200
committerRemi Collet <remi@remirepo.net>2017-10-11 14:51:20 +0200
commitcb78af870fbfc17b8324d81735b6ec3fcc811aa3 (patch)
tree8a18e616a4bbc66df074c35d5508e5da5072772c /php-pecl-libsodium.spec
parent6916635a9d99d13a132a5fb25a692dd27c326c98 (diff)
Diffstat (limited to 'php-pecl-libsodium.spec')
-rw-r--r--php-pecl-libsodium.spec15
1 files changed, 9 insertions, 6 deletions
diff --git a/php-pecl-libsodium.spec b/php-pecl-libsodium.spec
index 5340c8f..19ad722 100644
--- a/php-pecl-libsodium.spec
+++ b/php-pecl-libsodium.spec
@@ -23,16 +23,13 @@
Summary: Wrapper for the Sodium cryptographic library
Name: %{?sub_prefix}php-pecl-%{pecl_name}
-Version: 1.0.6
-Release: 8%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Version: 1.0.7
+Release: 1%{?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
-# needed if libsodium.so loaded after sodium.so (only affects php 7.2)
-Patch0: %{pecl_name}-upstream.patch
-
# Ensure libsodium-last is used (upstream 0.6.0)
BuildRequires: pkgconfig(libsodium) >= 1.0.15
BuildRequires: %{?scl_prefix}php-devel > 5.4
@@ -105,7 +102,6 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
-%patch0 -p1 -b .upstream
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_LIBSODIUM_VERSION/{s/.* "//;s/".*$//;p}' php_libsodium.h)
@@ -128,6 +124,8 @@ EOF
%build
+%{?dtsenable}
+
cd NTS
%{_bindir}/phpize
%configure \
@@ -144,6 +142,8 @@ make %{?_smp_mflags}
%install
+%{?dtsenable}
+
make -C NTS install INSTALL_ROOT=%{buildroot}
# install config file
@@ -233,6 +233,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Wed Oct 11 2017 Remi Collet <remi@remirepo.net> - 1.0.7-1
+- Update to 1.0.7
+
* Sun Oct 1 2017 Remi Collet <remi@remirepo.net> - 1.0.7-1
- rebuild for libsodium 1.0.15