Browse Source

update php sub packages

Signed-off-by: webbuilder_pel7ppc64lebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64lebuilder0 2 months 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 @@


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

5
SPECS/php-pecl-igbinary.spec

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


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


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


# Check version # 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) extver=$(sed -n '/#define PHP_IGBINARY_VERSION/{s/.* "//;s/".*$//;p}' src/$subdir/igbinary.h)
if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
: Error: Upstream version is ${extver}, expecting %{upstream_version}%{?upstream_prever}. : Error: Upstream version is ${extver}, expecting %{upstream_version}%{?upstream_prever}.

2
SPECS/php-pecl-redis.spec

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

26
SPECS/php-phpiredis.spec

@ -13,7 +13,7 @@
# we don't want -z defs linker flag # we don't want -z defs linker flag
%undefine _strict_symbol_defs_build %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_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner nrk %global gh_owner nrk
%global gh_project phpiredis %global gh_project phpiredis
@ -28,8 +28,8 @@
%global with_tests 0%{!?_without_tests:1} %global with_tests 0%{!?_without_tests:1}


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


Summary: Client extension for Redis Summary: Client extension for Redis


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


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


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


# install configuration # 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} %if %{with_zts}
make -C ZTS install INSTALL_ROOT=%{buildroot} 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 %endif




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


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


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



Loading…
Cancel
Save