summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-02-12 06:09:37 +0100
committerRemi Collet <remi@remirepo.net>2018-02-12 06:09:37 +0100
commit2f1b070f3964bf1a91c8541e6bab41d83fe0e62e (patch)
tree397127ecdd089b5d96f49af51f1a3e3d326bd422
parent8cd41f736eb1d7fdad1a6ade380b0fba098970b2 (diff)
v0.4.1
-rw-r--r--REFLECTION10
-rw-r--r--php-pecl-trader.spec34
2 files changed, 19 insertions, 25 deletions
diff --git a/REFLECTION b/REFLECTION
index 03aa9dd..bcbdfe8 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #150 trader version 0.4.0 ] {
+Extension [ <persistent> extension #154 trader version 0.4.1 ] {
- INI {
Entry [ trader.real_precision <ALL> ]
@@ -19,10 +19,10 @@ Extension [ <persistent> extension #150 trader version 0.4.0 ] {
Constant [ integer TRADER_MA_TYPE_KAMA ] { 6 }
Constant [ integer TRADER_MA_TYPE_MAMA ] { 7 }
Constant [ integer TRADER_MA_TYPE_T3 ] { 8 }
- Constant [ double TRADER_REAL_MIN ] { -3.0E+37 }
- Constant [ double TRADER_REAL_MAX ] { 3.0E+37 }
- Constant [ double TRADER_INTEGER_MIN ] { -2147483647 }
- Constant [ double TRADER_INTEGER_MAX ] { 2147483647 }
+ Constant [ float TRADER_REAL_MIN ] { -3,0E+37 }
+ Constant [ float TRADER_REAL_MAX ] { 3,0E+37 }
+ Constant [ float TRADER_INTEGER_MIN ] { -2147483647 }
+ Constant [ float TRADER_INTEGER_MAX ] { 2147483647 }
Constant [ integer TRADER_FUNC_UNST_ADX ] { 0 }
Constant [ integer TRADER_FUNC_UNST_ADXR ] { 1 }
Constant [ integer TRADER_FUNC_UNST_ATR ] { 2 }
diff --git a/php-pecl-trader.spec b/php-pecl-trader.spec
index 083e6f6..df3d903 100644
--- a/php-pecl-trader.spec
+++ b/php-pecl-trader.spec
@@ -1,11 +1,15 @@
# spec file for php-pecl-gender
#
-# Copyright (c) 2015-2017 Remi Collet
+# Copyright (c) 2015-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
+
+# we don't want -z defs linker flag
+%undefine _strict_symbol_defs_build
+
%if 0%{?scl:1}
%global sub_prefix %{scl_prefix}
%scl_package php-pecl-trader
@@ -24,16 +28,14 @@
Summary: Technical Analysis for traders
Name: %{?sub_prefix}php-pecl-%{pecl_name}
-Version: 0.4.0
-Release: 6%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Version: 0.4.1
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
# PHP ext is BSD-2, ta-lib is BSD-3
License: BSD
-Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: %{?scl_prefix}php-devel > 5.3
+BuildRequires: %{?scl_prefix}php-devel
BuildRequires: %{?scl_prefix}php-pear
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
@@ -50,14 +52,6 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{rele
%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
# Other third party repo stuff
-Obsoletes: php53-pecl-%{pecl_name} <= %{version}
-Obsoletes: php53u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php54-pecl-%{pecl_name} <= %{version}
-Obsoletes: php54w-pecl-%{pecl_name} <= %{version}
-%if "%{php_version}" > "5.5"
-Obsoletes: php55u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php55w-pecl-%{pecl_name} <= %{version}
-%endif
%if "%{php_version}" > "5.6"
Obsoletes: php56u-pecl-%{pecl_name} <= %{version}
Obsoletes: php56w-pecl-%{pecl_name} <= %{version}
@@ -125,6 +119,8 @@ EOF
%build
+%{?dtsenable}
+
cd NTS
%{_bindir}/phpize
%configure \
@@ -143,7 +139,7 @@ make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
+%{?dtsenable}
make -C NTS install INSTALL_ROOT=%{buildroot}
@@ -219,12 +215,7 @@ REPORT_EXIT_STATUS=1 \
%endif
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%doc %{pecl_docdir}/%{pecl_name}
%{?_licensedir:%license NTS/LICENSE}
@@ -239,6 +230,9 @@ rm -rf %{buildroot}
%changelog
+* Mon Feb 12 2018 Remi Collet <remi@remirepo.net> - 0.4.1-1
+- Update to 0.4.1
+
* Tue Jul 18 2017 Remi Collet <remi@remirepo.net> - 0.4.0-6
- rebuild for PHP 7.2.0beta1 new API