Name: log4cxx Version: 0.10.0 Release: 22%{?dist} Summary: A port to C++ of the Log4j project License: ASL 2.0 URL: http://logging.apache.org/log4cxx/index.html Source0: http://www.apache.org/dist/logging/log4cxx/%{version}/apache-%{name}-%{version}.tar.gz # Filed into upstream bugtracker at: # https://issues.apache.org/jira/browse/LOGCXX-332 Patch0: log4cxx-cstring.patch # From Debian: # https://anonscm.debian.org/cgit/collab-maint/log4cxx.git/plain/debian/patches/170-gcc6-fix.patch Patch1: log4cxx-gcc6.patch Patch2: log4cxx-gcc6-tests.patch BuildRequires: apr-devel BuildRequires: apr-util-devel BuildRequires: doxygen %description Log4cxx is a popular logging package written in C++. One of its distinctive features is the notion of inheritance in loggers. Using a logger hierarchy it is possible to control which log statements are output at arbitrary granularity. This helps reduce the volume of logged output and minimize the cost of logging. %package devel Requires: %{name}%{?_isa} = %{version}-%{release} Summary: Header files for Log4xcc - a port to C++ of the Log4j project %description devel Header files and documentation you can use to develop with %{name}. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n apache-%{name}-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %build sed -i.libdir_syssearch -e \ '/sys_lib_dlsearch_path_spec/s|/usr/lib |/usr/lib /usr/lib64 /lib /lib64 |' \ configure %configure --disable-static sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool %make_build %install make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" mv $RPM_BUILD_ROOT%{_datadir}/%{name}/html . rm $RPM_BUILD_ROOT/%{_libdir}/liblog4cxx.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{_libdir}/liblog4cxx.so.10.0.0 %{_libdir}/liblog4cxx.so.10 %doc NOTICE KEYS %license LICENSE %files devel %{_includedir}/log4cxx %{_libdir}/liblog4cxx.so %{_libdir}/pkgconfig/liblog4cxx.pc %files doc %license LICENSE %doc html/ %changelog * Fri Dec 23 2016 Till Hofmann - 0.10.0-22 - Fix missing isa in devel's Requires: - Remove unused shlib dependencies - Do not build static libs * Fri Dec 23 2016 Till Hofmann - 0.10.0-21 - Split documentation into a subpackage - Remove unnecessary dependencies of devel on pkgconfig, apr-devel * Thu Dec 22 2016 Till Hofmann - 0.10.0-20 - Add patches to fix GCC6 errors * Wed Jun 17 2015 Fedora Release Engineering - 0.10.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 0.10.0-18 - Rebuilt for GCC 5 C++11 ABI change * Sun Aug 17 2014 Fedora Release Engineering - 0.10.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.10.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.10.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.10.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 0.10.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Feb 28 2012 Fedora Release Engineering - 0.10.0-12 - Rebuilt for c++ ABI breakage * Fri Jan 13 2012 Fedora Release Engineering - 0.10.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.10.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 01 2009 Caolán McNamara - 0.10.0-9 - Rebuild for new db4 * Sat Jul 25 2009 Fedora Release Engineering - 0.10.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sat Apr 25 2009 Milos Jakubicek - 0.10.0-7 - Fix FTBFS: updated log4cxx-cstring.patch for gcc 4.4 * Wed Feb 25 2009 Fedora Release Engineering - 0.10.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Dec 1 2008 Hayden James - 0.10.0-5 - Simplifed doc files in package * Sat Nov 29 2008 Hayden James - 0.10.0-4 - Moved doxygen docs into doc folder - Removed unnecessary apr-util-devel dependency * Thu Nov 27 2008 Hayden James - 0.10.0-3 - Remove need for chrpath and other misc changes. * Thu Nov 27 2008 Hayden James - 0.10.0-2 - Build requires doxygen for documentation * Sun Nov 16 2008 Hayden James - 0.10.0-1 - Initial package.