|
|
|
@ -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 |
|
|
|
|
|
|
|
|
|