blob: ce0a10312a1ef7ccd961f538995f0a2786c5b0ef [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 []
sewardjda5402c2002-07-13 12:37:28 +000027- Some abuses of the POSIX Pthreads API
gobrye721a522002-03-22 13:38:30 +000028
29%prep
30%setup -n @PACKAGE@-@VERSION@
31
32%build
33./configure --prefix=/usr
34make
35
36%install
37make install prefix=$RPM_BUILD_ROOT/usr
38
39%files
gobrybcd3ed32002-09-02 11:31:21 +000040%defattr(-,root,root)
gobrye721a522002-03-22 13:38:30 +000041/usr/include/valgrind.h
42/usr/bin/valgrind
43/usr/lib/valgrind/*
44
45%doc
46/usr/share/doc/valgrind/*
47
48%clean
49[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf ${RPM_BUILD_ROOT}