summaryrefslogtreecommitdiffstats
path: root/php-pecl-redis.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-06-01 14:12:41 +0200
committerRemi Collet <remi@remirepo.net>2017-06-01 14:12:41 +0200
commit80b24625f7f3c240bcf8ec8c89a53c77c6eb588f (patch)
tree2021c89041dafc6cc87b50746b46f2bf59526547 /php-pecl-redis.spec
parentcfd747fdd9c6194cc055ad33d4dbee4aa0076fb7 (diff)
v3.1.3RC1
Diffstat (limited to 'php-pecl-redis.spec')
-rw-r--r--php-pecl-redis.spec27
1 files changed, 14 insertions, 13 deletions
diff --git a/php-pecl-redis.spec b/php-pecl-redis.spec
index 1b0eeaf..6412ae9 100644
--- a/php-pecl-redis.spec
+++ b/php-pecl-redis.spec
@@ -27,18 +27,18 @@
# after 40-igbinary
%global ini_name 50-%{pecl_name}.ini
%endif
-#global prever RC2
+%global upstream_version 3.1.3
+%global upstream_prever RC1
Summary: Extension for communicating with the Redis key-value store
Name: %{?sub_prefix}php-pecl-redis
-Version: 3.1.2
+Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
-Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
+Source0: http://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/redis
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: %{?scl_prefix}php-devel
BuildRequires: %{?scl_prefix}php-pear
%if %{with_igbin}
@@ -88,6 +88,10 @@ Obsoletes: php70w-pecl-%{pecl_name} <= %{version}
Obsoletes: php71u-pecl-%{pecl_name} <= %{version}
Obsoletes: php71w-pecl-%{pecl_name} <= %{version}
%endif
+%if "%{php_version}" > "7.2"
+Obsoletes: php72u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php72w-pecl-%{pecl_name} <= %{version}
+%endif
%endif
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
@@ -111,7 +115,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -q -c
# rename source folder
-mv %{pecl_name}-%{version}%{?prever} NTS
+mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS
# Don't install/register tests
sed -e 's/role="test"/role="src"/' \
@@ -122,8 +126,8 @@ cd NTS
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_REDIS_VERSION/{s/.* "//;s/".*$//;p}' php_redis.h)
-if test "x${extver}" != "x%{version}%{?gh_date:-dev}%{?prever}"; then
- : Error: Upstream extension version is ${extver}, expecting %{version}%{?gh_date:-dev}%{?prever}.
+if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
+ : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}.
exit 1
fi
cd ..
@@ -190,7 +194,6 @@ make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
%{?dtsenable}
# Install the NTS stuff
@@ -288,12 +291,7 @@ fi
%endif
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%{?_licensedir:%license NTS/COPYING}
%doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml
@@ -308,6 +306,9 @@ rm -rf %{buildroot}
%changelog
+* Thu Jun 1 2017 Remi Collet <remi@remirepo.net> - 3.1.3~RC1-1
+- update to 3.1.3RC1 (beta)
+
* Sat Mar 25 2017 Remi Collet <remi@remirepo.net> - 3.1.2-1
- Update to 3.1.2 (stable)