diff options
Diffstat (limited to 'php-Analog.spec')
-rw-r--r-- | php-Analog.spec | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/php-Analog.spec b/php-Analog.spec index f6d8582..daf8ee6 100644 --- a/php-Analog.spec +++ b/php-Analog.spec @@ -7,7 +7,7 @@ # # Please preserve changelog entries # -%global commit 9e02358735912ed203c073d192b5e07cb6b663dd +%global commit 65dce6b5aff8c77307c783e607c04a35df8259d6 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global real_name Analog %global minus_name analog @@ -16,18 +16,17 @@ Name: php-Analog Summary: PHP micro logging package -Version: 1.0.9 +Version: 1.0.10 %if %{devver} Release: 9.git%{shortcommit}%{?dist} %else -Release: 3%{?dist} +Release: 1%{?dist} %endif Source0: https://github.com/jbroadway/%{real_name}/archive/%{commit}/%{minus_name}-%{version}-%{shortcommit}.tar.gz URL: https://github.com/jbroadway/analog License: MIT Group: Development/Libraries -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php-composer(fedora/autoloader) # For tests @@ -71,13 +70,16 @@ with examples for each in the examples folder. These include: - Ignore - Do nothing - LevelBuffer - Buffer messages and send only if sufficient error level reached +- LevelName - Convert log level numbers to names in log output - Mail - Send email notices -- Mongo - Save to MongoDB collection, requires php-pecl(mongo) +- Mongo - Save to MongoDB collection, requires php-pecl-mongodb package to be installed - Multi - Send different log levels to different handlers - Post - Send messages over HTTP POST to another machine +- Slackbot - Post messages to Slack via Slackbot - Stderr - Send messages to STDERR - Syslog - Send messages to syslog +- Threshold - Only writes log messages above a certain threshold - Variable - Buffer messages to a variable reference. So while it's a micro class, it's highly extensible and very capable @@ -113,28 +115,23 @@ cp -a lib/%{real_name} %{buildroot}%{_datadir}/php/ %check -: Relax 1 test -sed -e 's/0600/%%d/' -i tests/AnalogTest.php - : Use and test our autoloader cat <<EOF | tee tests/bootstrap.php <?php require '%{buildroot}%{_datadir}/php/%{real_name}/autoload.php'; EOF -: Upstream test suite -%{_bindir}/phpunit --include-path=%{buildroot}%{_datadir}/php - -if which php70; then - php70 %{_bindir}/phpunit --include-path=%{buildroot}%{_datadir}/php -fi - -%clean -rm -rf %{buildroot} +: Upstream test suite +ret=0 +for cmd in php php56 php70 php71 php72; do + if which $cmd; then + $cmd %{_bindir}/phpunit --verbose || ret=1 + fi +done +exit $ret %files -%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc README.md @@ -145,6 +142,9 @@ rm -rf %{buildroot} %changelog +* Tue Nov 14 2017 Remi Collet <remi@remirepo.net> - 1.0.10-1 +- update to 1.0.10 + * Mon Oct 31 2016 Remi Collet <remi@fedoraproject.org> - 1.0.9-2 - update to 1.0.9 - switch to fedora/autoloader |