summaryrefslogtreecommitdiffstats
path: root/php-pecl-seaslog.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-seaslog.spec')
-rw-r--r--php-pecl-seaslog.spec31
1 files changed, 19 insertions, 12 deletions
diff --git a/php-pecl-seaslog.spec b/php-pecl-seaslog.spec
index 6534b2e..1b990fb 100644
--- a/php-pecl-seaslog.spec
+++ b/php-pecl-seaslog.spec
@@ -25,14 +25,13 @@
Summary: A effective,fast,stable log extension for PHP
Name: %{?sub_prefix}php-pecl-%{pecl_name}
-Version: 1.6.9
-Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
-License: ASL 2.0
+Version: 1.7.5
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/%{proj_name}
Source0: http://pecl.php.net/get/%{proj_name}-%{version}.tgz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{?scl_prefix}php-devel
BuildRequires: %{?scl_prefix}php-pear
@@ -92,6 +91,11 @@ A effective,fast,stable log extension for PHP.
- Analysis of early warning framework preliminary
- Buffer debug efficient log buffer, convenient
- With PSR-3 Logger interface
+- Error and exception automatic logging
+- Support appender with File,TCP,UDP
+- Send to Rsyslog(TCP/UDP) with RFC5424
+- Support RequestId differentiated requests
+- Support for log template customizations
Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}.
@@ -108,7 +112,7 @@ sed -e 's/role="test"/role="src"/' \
cd NTS
: Sanity check, really often broken
-extver=$(sed -n '/#define SEASLOG_VERSION/{s/.* "//;s/".*$//;p}' php_seaslog.h)
+extver=$(sed -n '/#define SEASLOG_VERSION /{s/.* "//;s/".*$//;p}' include/SeasLog.h)
if test "x${extver}" != "x%{version}"; then
: Error: Upstream extension version is ${extver}, expecting %{version}.
exit 1
@@ -127,7 +131,8 @@ extension=%{pecl_name}.so
; Configuration
;seaslog.default_basepath = '/var/log/www'
-;seaslog.default_datetime_format = 'Y:m:d H:i:s '
+;seaslog.default_datetime_format = 'Y-m-d H:i:s'
+;seaslog.default_template = '%T | %L | %P | %Q | %t | %M'
;seaslog.logger = 'default'
;seaslog.disting_type = 0
;seaslog.disting_by_hour = 0
@@ -139,6 +144,9 @@ extension=%{pecl_name}.so
;seaslog.appender = 1
;seaslog.remote_host = '127.0.0.1'
;seaslog.remote_port = 514
+;seaslog.trim_wrap = 0
+;seaslog.throw_exception = 1
+;seaslog.ignore_warning = 1
EOF
@@ -163,7 +171,6 @@ make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
%{?dtsenable}
make -C NTS install INSTALL_ROOT=%{buildroot}
@@ -224,12 +231,7 @@ fi
%endif
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%doc %{pecl_docdir}/%{pecl_name}
%{?_licensedir:%license NTS/LICENSE}
@@ -244,6 +246,11 @@ rm -rf %{buildroot}
%changelog
+* Tue Sep 19 2017 Remi Collet <remi@remirepo.net> - 1.7.5-1
+- Update to 1.7.5
+- Update license from Apache License 2.0 to PHP License 3.01
+- open https://github.com/Neeke/SeasLog/issues/152 segfault
+
* Tue Jul 18 2017 Remi Collet <remi@remirepo.net> - 1.6.9-2
- rebuild for PHP 7.2.0beta1 new API