summaryrefslogtreecommitdiffstats
path: root/php-pecl-mongodb.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-09-15 07:51:48 +0200
committerRemi Collet <remi@remirepo.net>2017-09-15 07:51:48 +0200
commit72d44e0f184091b79d5aceff276975bd25ded856 (patch)
treee6f4b41c7cbc730f7d144d0db6741a15f6077136 /php-pecl-mongodb.spec
parentf1ec1216bfae00f431d0a807b40d9cf3c83796e6 (diff)
update to 1.3.0RC1
raise dependency on libbson and mongo-c-driver 1.8.0 raise dependency on PHP 5.5
Diffstat (limited to 'php-pecl-mongodb.spec')
-rw-r--r--php-pecl-mongodb.spec30
1 files changed, 15 insertions, 15 deletions
diff --git a/php-pecl-mongodb.spec b/php-pecl-mongodb.spec
index 3903373..5df6060 100644
--- a/php-pecl-mongodb.spec
+++ b/php-pecl-mongodb.spec
@@ -31,7 +31,8 @@
%global with_tests 0%{?_with_tests:1}
%endif
-%if 0%{?fedora} >= 27
+%global libver 1.8.0
+%if 0%{?fedora} >= 99
%global with_syslib 1
%else
%global with_syslib 0
@@ -40,28 +41,25 @@
Summary: MongoDB driver for PHP
Name: %{?sub_prefix}php-pecl-%{pecl_name}
%global upstream_version 1.3.0
-%global upstream_prever beta1
-Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
-Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+%global upstream_prever RC1
+Version: %{upstream_version}~rc1
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: ASL 2.0
Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
-# https://github.com/mongodb/mongo-php-driver/pull/633
-Patch0: %{pecl_name}-pr633.patch
-
-BuildRequires: %{?scl_prefix}php-devel > 5.4
+BuildRequires: %{?scl_prefix}php-devel > 5.5
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: %{?scl_prefix}php-json
BuildRequires: cyrus-sasl-devel
BuildRequires: openssl-devel
%if %{with_syslib}
-BuildRequires: pkgconfig(libbson-1.0) >= 1.7
-BuildRequires: pkgconfig(libmongoc-1.0) >= 1.7
+BuildRequires: pkgconfig(libbson-1.0) >= %{libver}
+BuildRequires: pkgconfig(libmongoc-1.0) >= %{libver}
%else
-Provides: bundled(libbson) = 1.7.0
-Provides: bundled(mongo-c-driver) = 1.7.0
+Provides: bundled(libbson) = %{libver}
+Provides: bundled(mongo-c-driver) = %{libver}
%endif
BuildRequires: snappy-devel
BuildRequires: zlib-devel
@@ -88,10 +86,8 @@ Obsoletes: php53-pecl-%{pecl_name} <= %{version}
Obsoletes: php53u-pecl-%{pecl_name} <= %{version}
Obsoletes: php54-pecl-%{pecl_name} <= %{version}
Obsoletes: php54w-pecl-%{pecl_name} <= %{version}
-%if "%{php_version}" > "5.5"
Obsoletes: php55u-pecl-%{pecl_name} <= %{version}
Obsoletes: php55w-pecl-%{pecl_name} <= %{version}
-%endif
%if "%{php_version}" > "5.6"
Obsoletes: php56u-pecl-%{pecl_name} <= %{version}
Obsoletes: php56w-pecl-%{pecl_name} <= %{version}
@@ -135,7 +131,6 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
-%patch0 -p1 -b .pr633
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_MONGODB_VERSION/{s/.* "//;s/".*$//;p}' php_phongo.h)
@@ -325,6 +320,11 @@ exit $ret
%changelog
+* Fri Sep 15 2017 Remi Collet <remi@remirepo.net> - 1.3.0~RC1-1
+- update to 1.3.0RC1
+- raise dependency on libbson and mongo-c-driver 1.8.0
+- raise dependency on PHP 5.5
+
* Wed Aug 23 2017 Remi Collet <remi@remirepo.net> - 1.3.0~beta1-2
- add patch for upcoming PHP 7.2.0RC1 and new timelib from
https://github.com/mongodb/mongo-php-driver/pull/633