blob: 08416a67bbac2dc846f2c562f9bb661585a375ce [file] [log] [blame]
gobrye721a522002-03-22 13:38:30 +00001Summary: Valgrind Memory Debugger
2Name: @PACKAGE@
3Version: @VERSION@
4Release: 1
5Copyright: GPL
6Group: Development/Debuggers
7Packager: Frederic Gobry <frederic.gobry@smartdata.ch>
8Source: @PACKAGE@-@VERSION@.tar.gz
9
10Buildroot: %{_tmppath}/@PACKAGE@
11
12%description
13
14Valgrind is a GPL'd tool to help you find memory-management problems
15in your programs. When a program is run under Valgrind's supervision,
16all reads and writes of memory are checked, and calls to
17malloc/new/free/delete are intercepted. As a result, Valgrind can
18detect problems such as:
19
20- Use of uninitialised memory
21- Reading/writing memory after it has been free'd
22- Reading/writing off the end of malloc'd blocks
23- Reading/writing inappropriate areas on the stack
24- Memory leaks -- where pointers to malloc'd blocks are lost forever
25- Passing of uninitialised and/or unaddressible memory to system calls
26- Mismatched use of malloc/new/new [] vs free/delete/delete []
27
28%prep
29%setup -n @PACKAGE@-@VERSION@
30
31%build
32./configure --prefix=/usr
33make
34
35%install
36make install prefix=$RPM_BUILD_ROOT/usr
37
38%files
39/usr/include/valgrind.h
40/usr/bin/valgrind
41/usr/lib/valgrind/*
42
43%doc
44/usr/share/doc/valgrind/*
45
46%clean
47[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf ${RPM_BUILD_ROOT}