SHA256
8
0
forked from pool/log4cxx
Files
log4cxx/log4cxx.spec
Dirk Mueller 29dfedb848 - update to 1.1.0 (bsc#1211173, CVE-2023-31038):
* Fix CVE-2023-31038
  * Fix to build on Windows Server 2016
  * Fix compiling errors with older compilers
  * Make ODBC and SMTP opt-in instead of automatic
  * Parameterize statements for ODBC inserts. Add new generic
    DBAppender class that uses APR for database support
  * Fix Qt support
- update to 1.0.0:
  * This is a major release that fixes a number of long-standing
    issues and is desinged to make Log4cxx ABI stable moving
    forward.
  * Removed log4j style Java serialization. Due to Java's inherent
    problems with serialization, and the fact that Chainsaw no
    longer supports it, it has been completely removed.
  * A number of obsolete classes have been removed
  * Removal of TTCCLayout. If you still want this layout, use a
    PatternLayout with a format similar to the following: %r [%t] %-5p
    - %m%n
  * Removal of DateLayout. Use PatternLayout instead.
  * Classes now use an internal private class to store member
    variables in order to make them ABI stable
  * Multiprocess support is available, but Log4cxx must be
    explicitly compiled with this option
- implement gpg validation

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/log4cxx?expand=0&rev=14
2023-12-30 21:01:57 +00:00

126 lines
3.7 KiB
RPMSpec

#
# spec file for package log4cxx
#
# Copyright (c) 2023 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: log4cxx
Version: 1.1.0
Release: 0
%define soname 15
Summary: Log4j like C++ Logging Library
License: Apache-2.0
Group: Development/Libraries/C and C++
URL: https://logging.apache.org/log4cxx/latest_stable/
Source0: https://downloads.apache.org/logging/log4cxx/%{version}/apache-log4cxx-%{version}.tar.gz
Source1: https://downloads.apache.org/logging/log4cxx/%{version}/apache-log4cxx-%{version}.tar.gz.asc
Source2: log4cxx.keyring
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: graphviz
BuildRequires: libapr-util1-devel
BuildRequires: libapr1-devel
BuildRequires: libtool
BuildRequires: openldap2-devel
BuildRequires: pkg-config
BuildRequires: unixODBC-devel
BuildRequires: zip
%description
Log4cxx is a port to C++ of the log4j logging library.
The goal is have the same functionalities and interfaces of log4j.
It is built with the following features enabled:
- unicode
- thread: pthread
- XML: libxml2
- ODBC: unixODBC
And for the documentation it is built with:
- doxygen
- dot
- html-docs
- latex-docs
It's a flexible and highly configurable logging framework
Main features :
- Configurable logging destinations (appenders)
- Configurable logging format (layouts)
- Categorized logging statements through a hierarchy (loggers)
- Advanced filtering (filters)
- Thread safe library
- UTF-16 Unicode support
* Appenders:
AsyncAppender, ConsoleAppender, DailyRollingFileAppender,
FileAppender, NTEventLogAppender, ODBCAppender, RollingFileAppender,
SMTPAppender, SocketAppender,
SocketHubAappender, SyslogAppender, TelnetAppender, XMLSocketAppender
* Layouts:
HTMLLayout, PatternLayout, SimpleLayout, TTCCLayout, XMLLayout
* Filters:
DenyAllFilter, LevelMatchFilter, LevelRangeFilter, StringMatchFilter
* Configurators:
BasicConfigurator, DOMConfigurator, PropertyConfigurator
* Java like objects with dynamic cast and instanciation. Custom objects can
be configured through the DOMConfigurator and PropertyConfigurator classes
%package -n liblog4cxx%{soname}
Summary: Log4j like C++ Logging Library
Group: System/Libraries
%description -n liblog4cxx%{soname}
Log4cxx is a port to C++ of the log4j logging library.
%package -n liblog4cxx-devel
Summary: Log4j like C++ Logging Library
Group: Development/Libraries/C and C++
Requires: liblog4cxx%{soname} = %{version}
%description -n liblog4cxx-devel
Log4cxx is a port to C++ of the log4j logging library.
%prep
%setup -qn apache-log4cxx-%{version}
%build
%cmake -DLOG4CXX_CHARSET=utf-8
%cmake_build
%install
%cmake_install
mkdir -p %{buildroot}%{_docdir}/liblog4cxx
%post -n liblog4cxx%{soname} -p /sbin/ldconfig
%postun -n liblog4cxx%{soname} -p /sbin/ldconfig
%files -n liblog4cxx%{soname}
%{_libdir}/liblog4cxx.so.*
%files -n liblog4cxx-devel
%{_docdir}/liblog4cxx
%{_includedir}/log4cxx
%{_libdir}/cmake/log4cxx/
%{_libdir}/liblog4cxx.so
%{_libdir}/pkgconfig/liblog4cxx.pc
%changelog