4 Summary: A port to C++ of the Log4j project
6 Group: System Environment/Libraries
8 URL: http://logging.apache.org/log4cxx/index.html
9 Source0: http://www.apache.org/dist/logging/log4cxx/%{version}/apache-%{name}-%{version}.tar.gz
10 # Filed into upstream bugtracker at:
11 # https://issues.apache.org/jira/browse/LOGCXX-332
12 Patch0: log4cxx-gcc4.4.patch
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15 BuildRequires: apr-devel,apr-util-devel,doxygen
18 Log4cxx is a popular logging package written in C++. One of its distinctive
19 features is the notion of inheritance in loggers. Using a logger hierarchy it
20 is possible to control which log statements are output at arbitrary
21 granularity. This helps reduce the volume of logged output and minimize the
25 %setup -q -n apache-%{name}-%{version}
29 sed -i.libdir_syssearch -e \
30 '/sys_lib_dlsearch_path_spec/s|/usr/lib |/usr/lib /usr/lib64 /lib /lib64 |' \
33 make -k %{?_smp_mflags}
36 rm -rf $RPM_BUILD_ROOT
37 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
38 mv $RPM_BUILD_ROOT%{_datadir}/%{name}/html .
41 rm -rf $RPM_BUILD_ROOT
43 %post -p /sbin/ldconfig
44 %postun -p /sbin/ldconfig
47 %defattr(-,root,root,-)
48 %{_libdir}/liblog4cxx.so.10.0.0
49 %{_libdir}/liblog4cxx.so.10
51 %doc NOTICE LICENSE KEYS
54 Requires: %{name} = %{version}-%{release},pkgconfig,apr-devel
55 Group: Development/Libraries
56 Summary: Header files for Log4xcc - a port to C++ of the Log4j project
59 Header files and documentation you can use to develop with log4cxx
62 %defattr(-,root,root,-)
63 %exclude %{_libdir}/*.la
64 %exclude %{_libdir}/*.a
65 %{_includedir}/log4cxx
66 %{_libdir}/liblog4cxx.so
67 %{_libdir}/pkgconfig/liblog4cxx.pc
72 * Fri Nov 9 2012 HIBARI Michiro <hibari.michiro@lab.ntt.co.jp> - 0.10.0-1
74 - Patched log4cxx-gcc4.4.patch for provide gcc 4.4 compatibility.