| 
									
										
										
										
											2007-01-15 23:31:03 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2011-11-11 11:19:33 +00:00
										 |  |  | # spec file for package perl-Log-Log4perl
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:31:03 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2025-10-22 16:45:30 +02:00
										 |  |  | # Copyright (c) 2025 SUSE LLC
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:31:03 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2008-09-08 16:12:02 +00:00
										 |  |  | # All modifications and additions to the file contributed by third parties
 | 
					
						
							|  |  |  | # remain the property of their copyright owners, unless otherwise agreed
 | 
					
						
							|  |  |  | # upon. The license for this file, and modifications and additions to the
 | 
					
						
							|  |  |  | # file, is the same license as for the pristine package itself (unless the
 | 
					
						
							|  |  |  | # license for the pristine package is not an Open Source License, in which
 | 
					
						
							|  |  |  | # case the license is the MIT License). An "Open Source License" is a
 | 
					
						
							|  |  |  | # license that conforms to the Open Source Definition (Version 1.9)
 | 
					
						
							|  |  |  | # published by the Open Source Initiative.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-04 16:21:51 +00:00
										 |  |  | # Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:31:03 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-11-11 11:19:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-09 14:25:57 +00:00
										 |  |  | %define cpan_name Log-Log4perl
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:31:03 +00:00
										 |  |  | Name:           perl-Log-Log4perl
 | 
					
						
							| 
									
										
										
										
											2025-10-22 16:45:30 +02:00
										 |  |  | Version:        1.570.0
 | 
					
						
							| 
									
										
										
										
											2011-12-19 15:42:30 +00:00
										 |  |  | Release:        0
 | 
					
						
							| 
									
										
										
										
											2025-10-22 16:45:30 +02:00
										 |  |  | # 1.57 -> normalize -> 1.570.0
 | 
					
						
							|  |  |  | %define cpan_version 1.57
 | 
					
						
							| 
									
										
										
										
											2020-08-04 16:21:51 +00:00
										 |  |  | License:        Artistic-1.0 OR GPL-1.0-or-later
 | 
					
						
							| 
									
										
										
										
											2022-06-16 14:05:15 +00:00
										 |  |  | Summary:        Log4j implementation for Perl
 | 
					
						
							| 
									
										
										
										
											2020-08-04 16:21:51 +00:00
										 |  |  | URL:            https://metacpan.org/release/%{cpan_name}
 | 
					
						
							| 
									
										
										
										
											2025-10-22 16:45:30 +02:00
										 |  |  | Source0:        https://cpan.metacpan.org/authors/id/E/ET/ETJ/%{cpan_name}-%{cpan_version}.tar.gz
 | 
					
						
							| 
									
										
										
										
											2015-09-08 15:53:14 +00:00
										 |  |  | Source1:        cpanspec.yml
 | 
					
						
							| 
									
										
										
										
											2025-08-12 18:15:09 +02:00
										 |  |  | Source100:      README.md
 | 
					
						
							| 
									
										
										
										
											2010-07-20 18:44:16 +00:00
										 |  |  | BuildArch:      noarch
 | 
					
						
							| 
									
										
										
										
											2010-01-11 17:06:53 +00:00
										 |  |  | BuildRequires:  perl
 | 
					
						
							|  |  |  | BuildRequires:  perl-macros
 | 
					
						
							| 
									
										
										
										
											2025-10-22 16:45:30 +02:00
										 |  |  | BuildRequires:  perl(File::Path) >= 2.07
 | 
					
						
							| 
									
										
										
										
											2022-06-16 14:05:15 +00:00
										 |  |  | BuildRequires:  perl(Test::More) >= 0.88
 | 
					
						
							| 
									
										
										
										
											2025-10-22 16:45:30 +02:00
										 |  |  | Requires:       perl(File::Path) >= 2.07
 | 
					
						
							|  |  |  | Provides:       perl(L4pResurrectable) = 0.10.0
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl) = %{version}
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender::Buffer) = 1.530.0
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender::DBI)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender::File)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender::Limit) = 1.530.0
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender::RRDs)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender::Screen)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender::ScreenColoredLevels)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender::Socket)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender::String)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender::Synchronized) = 1.530.0
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender::TestArrayBuffer)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender::TestBuffer)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Appender::TestFileCreeper)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Catalyst) = 1.530.0
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Config)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Config::BaseConfigurator)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Config::DOMConfigurator) = 0.30.0
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Config::PropertyConfigurator)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Config::Watch)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::DateFormat)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Filter)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Filter::Boolean)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Filter::LevelMatch)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Filter::LevelRange)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Filter::MDC)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Filter::StringMatch)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::InternalDebug)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::JavaMap)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::JavaMap::ConsoleAppender)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::JavaMap::FileAppender)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::JavaMap::JDBCAppender)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::JavaMap::NTEventLogAppender)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::JavaMap::RollingFileAppender)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::JavaMap::SyslogAppender)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::JavaMap::TestBuffer)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Layout)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Layout::NoopLayout)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Layout::PatternLayout)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Layout::PatternLayout::Multiline)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Layout::SimpleLayout)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Level)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Logger)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::MDC)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::NDC)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Resurrector)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Util)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Util::Semaphore)
 | 
					
						
							|  |  |  | Provides:       perl(Log::Log4perl::Util::TimeTracker)
 | 
					
						
							|  |  |  | %undefine       __perllib_provides
 | 
					
						
							|  |  |  | Recommends:     perl(DBD::CSV) >= 0.330
 | 
					
						
							| 
									
										
										
										
											2020-09-07 10:01:27 +00:00
										 |  |  | Recommends:     perl(DBD::SQLite)
 | 
					
						
							|  |  |  | Recommends:     perl(DBI) >= 1.607
 | 
					
						
							|  |  |  | Recommends:     perl(Log::Dispatch)
 | 
					
						
							| 
									
										
										
										
											2025-10-22 16:45:30 +02:00
										 |  |  | Recommends:     perl(Log::Dispatch::FileRotate) >= 1.100
 | 
					
						
							|  |  |  | Recommends:     perl(SQL::Statement) >= 1.200
 | 
					
						
							|  |  |  | Recommends:     perl(XML::DOM) >= 1.290
 | 
					
						
							| 
									
										
										
										
											2012-05-30 11:23:43 +00:00
										 |  |  | %{perl_requires}
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:31:03 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							| 
									
										
										
										
											2010-07-20 18:44:16 +00:00
										 |  |  | Log::Log4perl lets you remote-control and fine-tune the logging behaviour
 | 
					
						
							| 
									
										
										
										
											2011-08-23 13:36:21 +00:00
										 |  |  | of your system from the outside. It implements the widely popular
 | 
					
						
							|  |  |  | (Java-based) Log4j logging package in pure Perl.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *For a detailed tutorial on Log::Log4perl usage, please read*
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:31:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-21 10:13:37 +00:00
										 |  |  | http://www.perl.com/pub/a/2002/09/11/log4perl.html
 | 
					
						
							| 
									
										
										
										
											2011-08-23 13:36:21 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | Logging beats a debugger if you want to know what's going on in your code
 | 
					
						
							|  |  |  | during runtime. However, traditional logging packages are too static and
 | 
					
						
							|  |  |  | generate a flood of log messages in your log files that won't help you.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 'Log::Log4perl' is different. It allows you to control the number of
 | 
					
						
							|  |  |  | logging messages generated at three different levels:
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-21 10:13:37 +00:00
										 |  |  |   * At a central location in your system (either in a configuration file or in
 | 
					
						
							|  |  |  | the startup code) you specify _which components_ (classes, functions) of
 | 
					
						
							|  |  |  | your system should generate logs.
 | 
					
						
							| 
									
										
										
										
											2011-08-23 13:36:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-21 10:13:37 +00:00
										 |  |  |   * You specify how detailed the logging of these components should be by
 | 
					
						
							|  |  |  | specifying logging _levels_.
 | 
					
						
							| 
									
										
										
										
											2011-08-23 13:36:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-21 10:13:37 +00:00
										 |  |  |   * You also specify which so-called _appenders_ you want to feed your log
 | 
					
						
							|  |  |  | messages to ("Print it to the screen and also append it to /tmp/my.log")
 | 
					
						
							|  |  |  | and which format ("Write the date first, then the file name and line
 | 
					
						
							|  |  |  | number, and then the log message") they should be in.
 | 
					
						
							| 
									
										
										
										
											2011-08-23 13:36:21 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | This is a very powerful and flexible mechanism. You can turn on and off
 | 
					
						
							|  |  |  | your logs at any time, specify the level of detail and make that dependent
 | 
					
						
							|  |  |  | on the subsystem that's currently executed.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Let me give you an example: You might find out that your system has a
 | 
					
						
							|  |  |  | problem in the 'MySystem::Helpers::ScanDir' component. Turning on detailed
 | 
					
						
							|  |  |  | debugging logs all over the system would generate a flood of useless log
 | 
					
						
							|  |  |  | messages and bog your system down beyond recognition. With 'Log::Log4perl',
 | 
					
						
							|  |  |  | however, you can tell the system: "Continue to log only severe errors to
 | 
					
						
							|  |  |  | the log file. Open a second log file, turn on full debug logs in the
 | 
					
						
							|  |  |  | 'MySystem::Helpers::ScanDir' component and dump all messages originating
 | 
					
						
							|  |  |  | from there into the new log file". And all this is possible by just
 | 
					
						
							|  |  |  | changing the parameters in a configuration file, which your system can
 | 
					
						
							|  |  |  | re-read even while it's running!
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:31:03 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							| 
									
										
										
										
											2025-10-22 16:45:30 +02:00
										 |  |  | %autosetup -n %{cpan_name}-%{cpan_version} -p1
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:31:03 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
										
										
											2020-08-04 16:21:51 +00:00
										 |  |  | perl Makefile.PL INSTALLDIRS=vendor
 | 
					
						
							| 
									
										
										
										
											2021-02-09 14:25:57 +00:00
										 |  |  | %make_build
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:31:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-09-16 17:28:06 +00:00
										 |  |  | %check
 | 
					
						
							| 
									
										
										
										
											2020-08-04 16:21:51 +00:00
										 |  |  | make test
 | 
					
						
							| 
									
										
										
										
											2008-09-16 17:28:06 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:31:03 +00:00
										 |  |  | %install
 | 
					
						
							| 
									
										
										
										
											2008-09-16 17:28:06 +00:00
										 |  |  | %perl_make_install
 | 
					
						
							| 
									
										
										
										
											2011-08-23 13:36:21 +00:00
										 |  |  | %perl_process_packlist
 | 
					
						
							| 
									
										
										
										
											2010-01-11 17:06:53 +00:00
										 |  |  | %perl_gen_filelist
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:31:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-01-11 17:06:53 +00:00
										 |  |  | %files -f %{name}.files
 | 
					
						
							| 
									
										
										
										
											2017-02-28 14:17:30 +00:00
										 |  |  | %doc Changes README
 | 
					
						
							|  |  |  | %license LICENSE
 | 
					
						
							| 
									
										
										
										
											2007-01-15 23:31:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-07-16 16:16:13 +00:00
										 |  |  | %changelog
 |