From 94fcb229b00f9ad6ab09eb72eebd8da334150a0c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 28 Aug 2014 09:43:39 +0200 Subject: php-pecl-igbinary: 1.2.0 --- php-pecl-igbinary.spec | 61 ++++++++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 27 deletions(-) (limited to 'php-pecl-igbinary.spec') diff --git a/php-pecl-igbinary.spec b/php-pecl-igbinary.spec index e5af731..e96478b 100644 --- a/php-pecl-igbinary.spec +++ b/php-pecl-igbinary.spec @@ -13,9 +13,9 @@ %global extname igbinary %global with_zts 0%{?__ztsphp:1} -%global commit c35d48f3d14794373b2ef89a6d79020bb7418d7f -%global short %(c=%{commit}; echo ${c:0:7}) -%global prever -dev +#global commit c35d48f3d14794373b2ef89a6d79020bb7418d7f +#global short %(c=%{commit}; echo ${c:0:7}) +#global prever -dev %if "%{php_version}" < "5.6" %global ini_name %{extname}.ini %else @@ -24,17 +24,14 @@ Summary: Replacement for the standard PHP serializer Name: %{?scl_prefix}php-pecl-igbinary -Version: 1.1.2 +Version: 1.2.0 %if 0%{?short:1} Release: 0.11.git%{short}%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} Source0: https://github.com/%{extname}/%{extname}/archive/%{commit}/%{extname}-%{version}-%{short}.tar.gz %else -Release: 2%{?dist} +Release: 1%{?dist} Source0: http://pecl.php.net/get/%{extname}-%{version}.tgz -# http://pecl.php.net/bugs/22598 -Source1: %{extname}-tests.tgz %endif -# https://bugs.php.net/59669 License: BSD Group: System Environment/Libraries @@ -111,7 +108,7 @@ These are the files needed to compile programs using Igbinary %if 0%{?short:1} mv igbinary-%{commit}/package.xml . -mv igbinary-%{commit} %{extname}-%{version} +mv igbinary-%{commit} NTS sed -e '/release/s/-dev/dev/' -i package.xml cd %{extname}-%{version} @@ -119,11 +116,13 @@ cd %{extname}-%{version} %patch0 -p1 -b .apcu %else -cd %{extname}-%{version} -tar xzf %{SOURCE1} +mv %{extname}-%{version} NTS +cd NTS %endif # Check version +sed -e '/IGBINARY_VERSION/s/1.1.2-dev/%{version}/' -i igbinary.h + extver=$(sed -n '/#define IGBINARY_VERSION/{s/.* "//;s/".*$//;p}' igbinary.h) if test "x${extver}" != "x%{version}%{?prever}"; then : Error: Upstream version is ${extver}, expecting %{version}%{?prever}. @@ -132,7 +131,7 @@ fi cd .. %if %{with_zts} -cp -r %{extname}-%{version} %{extname}-%{version}-zts +cp -r NTS ZTS %endif cat < - 1.2.0-1 +- update to 1.1.1 + * Sun Aug 24 2014 Remi Collet - 1.1.2-0.11.git3b8ab7e - improve SCL stuff -- cgit