[packages/php-monolog] Up to 3.10.0; test suite is gone
arekm
arekm at pld-linux.org
Wed Jun 17 17:28:40 CEST 2026
commit 951e1fb283cbc31c6b91998408180bf1ebf30abb
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Jun 17 17:28:04 2026 +0200
Up to 3.10.0; test suite is gone
php-monolog.spec | 59 ++++++++------------------------------------------------
1 file changed, 8 insertions(+), 51 deletions(-)
---
diff --git a/php-monolog.spec b/php-monolog.spec
index 0390dad..0bf7639 100644
--- a/php-monolog.spec
+++ b/php-monolog.spec
@@ -1,43 +1,20 @@
-#
-# Conditional build:
-%bcond_with tests # build without tests
-
-# "psr/log": "~1.0"
-%define psrlog_min_ver 1.0
-%define psrlog_max_ver 2.0
+# "psr/log": "^2.0 || ^3.0"
+%define psrlog_min_ver 2.0
+%define psrlog_max_ver 4.0
%define pkgname monolog
-%define php_min_version 5.3.0
+%define php_min_version 8.1.0
Summary: Sends your logs to files, sockets, inboxes, databases and various web services
Name: php-%{pkgname}
-Version: 1.22.0
-Release: 2
+Version: 3.10.0
+Release: 1
License: MIT
Group: Development/Languages/PHP
Source0: https://github.com/Seldaek/monolog/archive/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5: 6051711ed7031a4f61ab40939264e970
+# Source0-md5: 7764b1250e32ecb5bc088e39e573c52d
URL: https://github.com/Seldaek/monolog
BuildRequires: rpm-php-pearprov >= 4.4.2-11
BuildRequires: rpmbuild(macros) >= 1.654
-%if %{with tests}
-BuildRequires: php(core) >= %{php_min_version}
-BuildRequires: php(curl)
-BuildRequires: php(date)
-BuildRequires: php(filter)
-BuildRequires: php(hash)
-BuildRequires: php(json)
-BuildRequires: php(mbstring)
-BuildRequires: php(openssl)
-BuildRequires: php(pcre)
-BuildRequires: php(reflection)
-BuildRequires: php(sockets)
-BuildRequires: php(spl)
-BuildRequires: php(xml)
-BuildRequires: php-psr-Log < %{psrlog_max_ver}
-BuildRequires: php-psr-Log >= %{psrlog_min_ver}
-BuildRequires: php-symfony2-ClassLoader
-BuildRequires: phpunit
-%endif
Requires: php(core) >= %{php_min_version}
Requires: php-psr-Log < %{psrlog_max_ver}
Requires: php-psr-Log >= %{psrlog_min_ver}
@@ -71,26 +48,6 @@ use another compatible logger at a later time.
%prep
%setup -qn %{pkgname}-%{version}
-%build
-%if %{with tests}
-: Create tests bootstrap
-cat <<'BOOTSTRAP' | tee bootstrap.php
-BOOTSTRAP
-
-: Remove MongoDBHandlerTest because it requires a running MongoDB server
-rm tests/Monolog/Handler/MongoDBHandlerTest.php
-
-: Remove GitProcessorTest because it requires a git repo
-rm tests/Monolog/Processor/GitProcessorTest.php
-
-: Skip tests known to fail
-rm -f tests/Monolog/Handler/SwiftMailerHandlerTest.php
-sed 's/function testThrowsOnInvalidEncoding/function SKIP_testThrowsOnInvalidEncoding/' \
- -i tests/Monolog/Formatter/NormalizerFormatterTest.php
-
-phpunit --verbose --bootstrap bootstrap.php
-%endif
-
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{php_data_dir}
@@ -98,7 +55,7 @@ cp -a src/* $RPM_BUILD_ROOT%{php_data_dir}
%files
%defattr(644,root,root,755)
-%doc *.mdown doc LICENSE
+%doc *.md LICENSE
%{php_data_dir}/Monolog
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-monolog.git/commitdiff/951e1fb283cbc31c6b91998408180bf1ebf30abb
More information about the pld-cvs-commit
mailing list