]>
Commit | Line | Data |
---|---|---|
7dd777b7 | 1 | Name: ccmalloc |
2 | Version: 0.3.2 | |
3 | %define fnversion %(echo %{version} | tr . -) | |
4 | Release: 1 | |
5 | Summary: C/C++ memory debugging and profiling library | |
6 | License: GPL | |
7 | Group: Development/Debuggers | |
8 | Group(pl): Programowanie/Odpluskwiacze | |
9 | Source0: http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/%{name}-%{fnversion}.tar.gz | |
10 | URL: http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/ | |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %description | |
14 | ccmalloc detects memory leaks, multiple deallocations, over-writes, | |
15 | under-writes and access of deallocated data in C and C++ code, all | |
16 | without source recompile. | |
17 | ||
18 | It also displays statistics on allocation and deallocation. | |
19 | ||
20 | %prep | |
21 | %setup -q -n %{name}-%{fnversion} | |
22 | ||
23 | %build | |
24 | ./configure --prefix=%{_prefix} | |
f619d324 | 25 | %{__make} |
7dd777b7 | 26 | |
27 | %install | |
28 | rm -rf $RPM_BUILD_ROOT | |
29 | install -d ${RPM_BUILD_ROOT}%{_libdir} | |
30 | install lib/libccmalloc.a ${RPM_BUILD_ROOT}%{_libdir} | |
31 | install obj/ccmalloc.o ${RPM_BUILD_ROOT}%{_libdir} | |
32 | gzip -9nf BUGS FEATURES INSTALL NEWS README TODO USAGE | |
33 | ||
34 | %clean | |
35 | rm -rf ${RPM_BUILD_ROOT} | |
36 | ||
37 | %files | |
38 | %defattr(644,root,root,755) | |
39 | %{_libdir} | |
40 | %doc {BUGS,FEATURES,INSTALL,NEWS,README,TODO,USAGE}.gz | |
41 | %doc ccmalloc.cfg |