[php-Monolog] Updated to 1.11.0 (BZ #1148336)

Shawn Iwinski siwinski at fedoraproject.org
Mon Nov 10 02:24:16 UTC 2014


commit 84c728652a73139873f9111838da11b7b3d3bb96
Author: Shawn Iwinski <shawn.iwinski at gmail.com>
Date:   Sun Nov 9 21:23:53 2014 -0500

    Updated to 1.11.0 (BZ #1148336)
    
    - Added php-composer(psr/log-implementation) virtual provide
    - %license usage

 .gitignore       |    1 +
 php-Monolog.spec |   38 +++++++++++++++++++++++++++-----------
 sources          |    2 +-
 3 files changed, 29 insertions(+), 12 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 94ca13e..4f36d30 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
 /php-Monolog-1.7.0-6225b22de9dcf36546be3a0b2fa8e3d986153f57.tar.gz
 /php-Monolog-1.9.1-65026b610f8c19e61d7242f600530677b0466aac.tar.gz
 /php-Monolog-1.10.0-25b16e801979098cb2f120e697bfce454b18bf23.tar.gz
+/php-Monolog-1.11.0-ec3961874c43840e96da3a8a1ed20d8c73d7e5aa.tar.gz
diff --git a/php-Monolog.spec b/php-Monolog.spec
index 3bc1a8a..0e60d29 100644
--- a/php-Monolog.spec
+++ b/php-Monolog.spec
@@ -11,8 +11,8 @@
 
 %global github_owner    Seldaek
 %global github_name     monolog
-%global github_version  1.10.0
-%global github_commit   25b16e801979098cb2f120e697bfce454b18bf23
+%global github_version  1.11.0
+%global github_commit   ec3961874c43840e96da3a8a1ed20d8c73d7e5aa
 
 %global lib_name        Monolog
 
@@ -34,6 +34,9 @@
 # Build using "--without tests" to disable tests
 %global with_tests      %{?_without_tests:0}%{!?_without_tests:1}
 
+%{!?phpdir:     %global phpdir     %{_datadir}/php}
+%{!?__phpunit:  %global __phpunit  %{_bindir}/phpunit}
+
 Name:      php-%{lib_name}
 Version:   %{github_version}
 Release:   1%{?dist}
@@ -46,12 +49,12 @@ Source0:   %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_co
 
 BuildArch:     noarch
 %if %{with_tests}
-# For tests: composer.json
+# composer.json
 BuildRequires: php(language)         >= %{php_min_ver}
 BuildRequires: php-composer(psr/log) >= %{psrlog_min_ver}
 BuildRequires: php-composer(psr/log) <  %{psrlog_max_ver}
 BuildRequires: php-phpunit-PHPUnit   >= %{phpunit_min_ver}
-# For tests: phpcompatinfo (computed from version 1.10.0)
+# phpcompatinfo (computed from version 1.11.0)
 BuildRequires: php-curl
 BuildRequires: php-date
 BuildRequires: php-filter
@@ -71,7 +74,7 @@ Requires:      php-swift-Swift
 Requires:      php(language)         >= %{php_min_ver}
 Requires:      php-composer(psr/log) >= %{psrlog_min_ver}
 Requires:      php-composer(psr/log) <  %{psrlog_max_ver}
-# phpcompatinfo (computed from version 1.10.0)
+# phpcompatinfo (computed from version 1.11.0)
 Requires:      php-curl
 Requires:      php-date
 Requires:      php-filter
@@ -84,7 +87,9 @@ Requires:      php-sockets
 Requires:      php-spl
 Requires:      php-xml
 
+# Composer
 Provides:      php-composer(monolog/monolog) = %{version}
+Provides:      php-composer(psr/log-implementation) = 1.0.0
 
 # Removed sub-packages
 Obsoletes:     %{name}-amqp   < %{version}-%{release}
@@ -113,7 +118,7 @@ at a later time.
 
 Optional:
 * php-aws-sdk (>= %{aws_min_ver}, < %{aws_max_ver})
-      Allow sending log messages to AWS DynamoDB
+      Allow sending log messages to AWS services like DynamoDB
 * php-pecl-amqp
       Allow sending log messages to an AMQP server (1.0+ required)
 * php-pecl-mongo
@@ -130,6 +135,8 @@ Optional:
       Allow sending log messages to Rollbar
 * https://github.com/ruflin/Elastica
       Allow sending log messages to an Elastic Search server
+* https://github.com/videlalvaro/php-amqplib
+      Allow sending log messages to an AMQP server using php-amqplib
 
 [1] https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
 
@@ -143,8 +150,8 @@ Optional:
 
 
 %install
-mkdir -pm 0755 %{buildroot}%{_datadir}/php
-cp -pr ./src/* %{buildroot}%{_datadir}/php/
+mkdir -pm 0755 %{buildroot}%{phpdir}
+cp -pr ./src/* %{buildroot}%{phpdir}/
 
 
 %check
@@ -167,16 +174,25 @@ rm -f tests/Monolog/Processor/GitProcessorTest.php
 # Create PHPUnit config w/ colors turned off
 sed 's/colors\s*=\s*"true"/colors="false"/' phpunit.xml.dist > phpunit.xml
 
-%{_bindir}/phpunit --include-path="./src:./tests" -d date.timezone="UTC"
+%{__phpunit} \
+    --include-path="%{buildroot}%{phpdir}:./tests" \
+    -d date.timezone="UTC"
 %endif
 
 
 %files
-%doc LICENSE *.mdown doc composer.json
-%{_datadir}/php/%{lib_name}
+%{!?_licensedir:%global license %%doc}
+%license LICENSE
+%doc *.mdown doc composer.json
+%{phpdir}/%{lib_name}
 
 
 %changelog
+* Sat Jun 07 2014 Shawn Iwinski <shawn.iwinski at gmail.com> - 1.11.0-1
+- Updated to 1.11.0 (BZ #1148336)
+- Added php-composer(psr/log-implementation) virtual provide
+- %%license usage
+
 * Sat Jun 07 2014 Shawn Iwinski <shawn.iwinski at gmail.com> - 1.10.0-1
 - Updated to 1.10.0 (BZ #1105816)
 - Removed max PHPUnit dependency
diff --git a/sources b/sources
index f6f032d..3c3e5e2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e81d77d52020ba23802f6f2f882e58ed  php-Monolog-1.10.0-25b16e801979098cb2f120e697bfce454b18bf23.tar.gz
+67f897921889e48de9c152474743b981  php-Monolog-1.11.0-ec3961874c43840e96da3a8a1ed20d8c73d7e5aa.tar.gz


More information about the scm-commits mailing list