Summary: A library for controlling and tracing dynamic memory allocations Summary(pl): Biblioteka do kontroli i śledzenia dynamicznej alokacji pamięcie Name: dmalloc Version: 4.8.2 Release: 1 License: LGPL Group: Development/Debuggers Source0: http://download.sourceforge.net/dmalloc/%{name}-%{version}.tgz Patch0: %{name}-info.patch PAtch1: %{name}-pic.patch URL: http://dmalloc.com/ BuildRequires: autoconf BuildRequires: automake BuildRequires: texinfo Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The debug memory allocation or "dmalloc" library has been designed as a drop in replacement for the system's `malloc', `realloc', `calloc', `free' and other memory management routines while providing powerful debugging facilities configurable at runtime. These facilities include such things as memory-leak tracking, fence-post write detection, file/line number reporting, and general logging of statistics. It also provides support for the debugging of threaded programs. %description -l pl Biblioteka do odpluskwiania programów zastępuje systemowe funkcje takie jak `malloc', `realloc', `calloc', `free' i inne funkcje do zarządzania pamięcią. Możliwości to wykrywanie wycieków pamięci, wykrywanie zapisów poza zaalokowanym obszarem, informowanie o pliku/numerze linii, w której występuje problem oraz generalne statystyki. Biblioteka umożliwia odpluskwianie programów wątkowych. %package static Summary: Static dmalloc libraries Summary(pl): Biblioteki statyczne dmalloc Group: Development/Debuggers Requires: %{name} = %{version} %description static Static dmalloc libraries. %description static -l pl Biblioteki statyczne dmalloc. %prep %setup -q %patch0 -p1 %patch1 -p1 %build aclocal autoconf %configure \ --enable-cxx \ --enable-threads \ --enable-shlib %{__make} dmalloc_t all light dmalloc.info %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_infodir} %{makeinstall} \ installsl installcxx installth installinfo \ shlibdir=$RPM_BUILD_ROOT%{_libdir} \ incdir=$RPM_BUILD_ROOT%{_includedir} gzip -9nf README NEWS ChangeLog %post /sbin/ldconfig [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 %postun /sbin/ldconfig [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc *.gz %attr(755,root,root) %{_bindir}/* %{_includedir}/* %attr(755,root,root) %{_libdir}/lib*.so %{_infodir}/* %files static %defattr(644,root,root,755) %{_libdir}/lib*.a