1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/apps/public/tools/dmalloc-5.5.2/dmalloc.spec
2024-07-22 01:58:46 -03:00

53 lines
1.6 KiB
RPMSpec
Executable File

#
# Dmalloc RPM file for building of .rpm files for Redhat Linux systems.
#
# $Id: //BBN_Linux/Branch/Branch_for_Rel_TP_ASEAN_20161216/tclinux_phoenix/apps/public/tools/dmalloc-5.5.2/dmalloc.spec#1 $
#
Summary: Debug Malloc (Dmalloc)
Name: dmalloc
Version: 5.5.2
Release: 1
Group: Development/Libraries
Copyright: public domain
URL: http://dmalloc.com/
Source: http://dmalloc.com/releases/%{name}-%{version}.tgz
BuildRoot: /var/tmp/%{name}-buildroot
Prefix: /usr
%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. Releases and documentation available online.
http://dmalloc.com/
%prep
%setup
%build
CFLAGS="${RPM_OPT_FLAGS}" ./configure --prefix=${RPM_BUILD_ROOT}/usr --enable-threads --enable-shlib --enable-cxx
# NOTE: we make the test program first because otherwise it screws up
# and tried to use the .so instead of the .a for some stupid reason
make dmalloc_t all light
%install
#make install installcxx installth installsl
make install
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(444,root,root,755)
%doc INSTALL README NEWS
%doc docs/dmalloc.info docs/dmalloc.html docs/dmalloc.texi
%attr(755,root,root) /usr/bin/dmalloc
/usr/include/dmalloc.h
/usr/lib/libdmalloc*