Browse Source

update php sub packages

Signed-off-by: webbuilder_pel7ppc64lebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64lebuilder0 1 month ago
parent
commit
4223f3f2e0
  1. 2
      SPECS/php-pecl-apcu.spec
  2. 5
      SPECS/php-pecl-igbinary.spec
  3. 2
      SPECS/php-pecl-redis.spec
  4. 26
      SPECS/php-phpiredis.spec

2
SPECS/php-pecl-apcu.spec

@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@

Name: php-pecl-apcu
Summary: APC User Cache
Version: 5.1.18
Version: 5.1.23
Release: 1%{?dist}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
Source1: %{pecl_name}.ini

5
SPECS/php-pecl-igbinary.spec

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
%global with_zts 0%{?__ztsphp:1}
%global ini_name 40-%{pecl_name}.ini

%global upstream_version 3.1.1
%global upstream_version 3.2.15
#global upstream_prever RC1

Summary: Replacement for the standard PHP serializer
@ -68,7 +68,8 @@ sed -e '/COPYING/s/role="doc"/role="src"/' -i package.xml @@ -68,7 +68,8 @@ sed -e '/COPYING/s/role="doc"/role="src"/' -i package.xml
cd NTS

# Check version
subdir="php$(%{__php} -r 'echo PHP_MAJOR_VERSION;')"
#subdir="php$(%{__php} -r 'echo PHP_MAJOR_VERSION;')"
subdir="php7"
extver=$(sed -n '/#define PHP_IGBINARY_VERSION/{s/.* "//;s/".*$//;p}' src/$subdir/igbinary.h)
if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
: Error: Upstream version is ${extver}, expecting %{upstream_version}%{?upstream_prever}.

2
SPECS/php-pecl-redis.spec

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
Summary: Extension for communicating with the Redis key-value store
Name: php-pecl-redis
Version: 3.1.6
Release: 1%{?dist}
Release: 2%{?dist}
License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/redis

26
SPECS/php-phpiredis.spec

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
# we don't want -z defs linker flag
%undefine _strict_symbol_defs_build

%global gh_commit 981d455034a48bb19db39c578e9c16d889289b99
%global gh_commit 4afea215663c6cd0c962c9c67c015c61ef9983f3
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner nrk
%global gh_project phpiredis
@ -28,8 +28,8 @@ @@ -28,8 +28,8 @@
%global with_tests 0%{!?_without_tests:1}

Name: php-%{pecl_name}
Version: 1.0.0
Release: 12%{?dist}
Version: 1.1.0
Release: 1%{?dist}

Summary: Client extension for Redis

@ -66,12 +66,12 @@ mv %{gh_project}-%{gh_commit} NTS @@ -66,12 +66,12 @@ mv %{gh_project}-%{gh_commit} NTS

cd NTS
# Check extension version
ver=$(sed -n '/define PHP_PHPIREDIS_VERSION/{s/.* "//;s/".*$//;p}' php_phpiredis.h)
if test "$ver" != "%{version}%{?prever}%{?gh_date:-dev}"; then
: Error: Upstream VERSION version is ${ver}, expecting %{version}%{?prever}%{?gh_date:-dev}.
exit 1
fi
cd ..
#ver=$(sed -n '/define PHP_PHPIREDIS_VERSION/{s/.* "//;s/".*$//;p}' php_phpiredis.h)
#if test "$ver" != "%{version}%{?prever}%{?gh_date:-dev}"; then
# : Error: Upstream VERSION version is ${ver}, expecting %{version}%{?prever}%{?gh_date:-dev}.
# exit 1
#fi
#cd ..

cat << 'EOF' | tee %{ini_name}
; Enable %{pecl_name} extension module
@ -103,11 +103,11 @@ make %{?_smp_mflags} @@ -103,11 +103,11 @@ make %{?_smp_mflags}
make -C NTS install INSTALL_ROOT=%{buildroot}

# install configuration
install -Dpm 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
#install -Dpm 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}

%if %{with_zts}
make -C ZTS install INSTALL_ROOT=%{buildroot}
install -Dpm 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
#install -Dpm 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif


@ -171,11 +171,11 @@ exit $ret @@ -171,11 +171,11 @@ exit $ret
%license NTS/LICENSE
%doc NTS/README.md

%config(noreplace) %{php_inidir}/%{ini_name}
#%config(noreplace) %{php_inidir}/%{ini_name}
%{php_extdir}/%{pecl_name}.so

%if %{with_zts}
%config(noreplace) %{php_ztsinidir}/%{ini_name}
#%config(noreplace) %{php_ztsinidir}/%{ini_name}
%{php_ztsextdir}/%{pecl_name}.so
%endif


Loading…
Cancel
Save