summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-12-05 17:16:05 +0100
committerRemi Collet <fedora@famillecollet.com>2016-12-05 17:16:05 +0100
commitd844a7c5f0fb2d8b9f704ecadfe1a26c5ed1c9ea (patch)
treeaccb39fb1c865029d925f3dd01e20271608c2ff4
parentbbd4be660aa6895007ec90e37d555d93b952c1b9 (diff)
php-horde-Horde-Mapi: use php-pear-math-biginteger in F26+
-rw-r--r--php-horde-Horde-Mapi.spec14
1 files changed, 12 insertions, 2 deletions
diff --git a/php-horde-Horde-Mapi.spec b/php-horde-Horde-Mapi.spec
index dc143e3..f4cdf32 100644
--- a/php-horde-Horde-Mapi.spec
+++ b/php-horde-Horde-Mapi.spec
@@ -6,14 +6,13 @@
#
# Please, preserve the changelog entries
#
-%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
%{!?__pear: %global __pear %{_bindir}/pear}
%global pear_name Horde_Mapi
%global pear_channel pear.horde.org
Name: php-horde-Horde-Mapi
Version: 1.0.8
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: MAPI utility library
Group: Development/Libraries
@@ -30,7 +29,11 @@ BuildRequires: php-channel(%{pear_channel})
BuildRequires: php-bcmath
BuildRequires: php-pear(%{pear_channel}/Horde_Test) >= 2.1.0
BuildRequires: php-pear(%{pear_channel}/Horde_Date) >= 2.3.0
+%if 0%{?fedora} >= 26
+BuildRequires: php-pear(Math_BigInteger)
+%else
BuildRequires: php-pear(phpseclib.sourceforge.net/Math_BigInteger)
+%endif
Requires(post): %{__pear}
Requires(postun): %{__pear}
@@ -42,8 +45,12 @@ Requires: php-pear(%{pear_channel}/Horde_Date) >= 2.3.0
Requires: php-pear(%{pear_channel}/Horde_Date) < 3.0.0
Requires: php-pear(%{pear_channel}/Horde_Exception) >= 2.0.0
Requires: php-pear(%{pear_channel}/Horde_Exception) < 3.0.0
+%if 0%{?fedora} >= 26
+Requires: php-pear(Math_BigInteger)
+%else
# Use phpseclib version instead of the one from pear
Requires: php-pear(phpseclib.sourceforge.net/Math_BigInteger)
+%endif
# From phpcompatinfo report for version 1.0.0
Requires: php-date
@@ -115,6 +122,9 @@ fi
%changelog
+* Mon Dec 5 2016 Remi Collet <remi@fedoraproject.org> - 1.0.8-2
+- switch to php-pear(Math_BigInteger) in F26+
+
* Mon Mar 21 2016 Remi Collet <remi@fedoraproject.org> - 1.0.8-1
- Update to 1.0.8
- raise dependency on Horde_Date >= 2.3.0