Name: log4cxx
Version: 0.10.0+git
Release: 0%{?dist}.0.exagrid1
Summary: A port to C++ of the Log4j project

Group: System Environment/Libraries
License: ASL 2.0
URL: http://logging.apache.org/log4cxx/index.html
Source: %{name}-src-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-root

BuildRequires: apr-devel >= 1.2.7
BuildRequires: apr-util-devel >= 1.2.7
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.

%prep
%setup -q

%build
./autogen.sh
%{configure}
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/html .

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/liblog4cxx.so.10.0.0
%{_libdir}/liblog4cxx.so.10
%doc NOTICE LICENSE KEYS

%package devel
Requires: %{name} = %{version}-%{release},pkgconfig,apr-devel
Group: Development/Libraries
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 log4cxx

%files devel
%defattr(-,root,root,-)
%exclude %{_libdir}/*.la
%{_includedir}/log4cxx
%{_libdir}/liblog4cxx.so
%{_libdir}/liblog4cxx.a
%{_libdir}/pkgconfig/liblog4cxx.pc
%doc html/

%changelog
* Fri Feb 12 2010 Brian J. Carlson <brian@briancarlson.org> - 0.10.0.0ad70dcb-0exagrid1
- See git repository (git://git.eng.local/git/bcarlson/log4cxx.git) for full changelog history
