%define name valgrind %define version 3.2.3 %define release %mkrel 2 %define subrel 2 %define _requires_exceptions GLIBC_PRIVATE Name: %{name} Version: %{version} Release: %{release} Summary: an open-source memory debugger for x86-linux License: GPL Group: Development/Other Source0: http://www.valgrind.org/downloads/%{name}-%{version}.tar.bz2 Source1: valgrind Patch0: http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/dev-util/valgrind/files/valgrind-3.2.3-glibc-2.6.patch URL: http://valgrind.kde.org/ ExclusiveArch: %{ix86} x86_64 ppc BuildRequires: glibc-static-devel BuildRequires: gdb Suggests: gdb Obsoletes: valgrind-plugins BuildRoot: %{_tmppath}/%{name}-%{version} %description When a program is run under Valgrind's supervision, all reads and writes of memory are checked, and calls to malloc/new/free/delete are intercepted. As a result, Valgrind can detect problems such as: * Use of uninitialised memory * Reading/writing memory after it has been free'd * Reading/writing off the end of malloc'd blocks * Reading/writing inappropriate areas on the stack * Memory leaks -- where pointers to malloc'd blocks are lost forever * Passing of uninitialised and/or unaddressible memory to system calls * Mismatched use of malloc/new/new [] vs free/delete/delete [] %prep %setup -q %patch0 -p1 -b .glibc26 autoreconf # needed by patch0 %build %configure2_5x %make %install rm -rf %{buildroot} # Don't strip librairy ask by developer export DONT_STRIP=1 %makeinstall # move documentation where rpm expect it to be mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_datadir}/doc/%{name}-%{version} install -m 644 README* ACKNOWLEDGEMENTS %{buildroot}%{_datadir}/doc/%{name}-%{version} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_bindir}/* %{_libdir}/%name %{_includedir}/valgrind/ %{_libdir}/pkgconfig/valgrind.pc %{_datadir}/doc/%{name}-%{version} %{_mandir}/man1/valgrind.1* %changelog * Thu Feb 21 2008 Adam Williamson <awilliamson@mandriva.com> 3.2.3-2.2mdv2008.0 + Revision: 173470 - suggests gdb (#37755) - buildrequires gdb (#37739, could not attach gdb from within valgrind) * Mon Aug 06 2007 Olivier Blin <oblin@mandriva.com> 3.2.3-2mdv2008.0 + Revision: 59231 - use generic man page extension in files list (for lzma) - add glibc-2.6 support (patch from Gentoo) * Fri Mar 16 2007 Laurent Montel <lmontel@mandriva.com> 3.2.3-1mdv2007.1 + Revision: 144737 - 3.2.3 * Sat Jan 13 2007 Michael Scherer <misc@mandriva.org> 3.2.1-1mdv2007.1 + Revision: 108323 - update to 3.2.1, fix illegal instruction on current libstdc++ on x86_64 - Import valgrind * Sat Jun 17 2006 Guillaume Rousse <guillomovitch@mandriva.org> 3.2.0-2mdv2007.0 - obsoletes valgrind-plugins * Wed Jun 14 2006 Guillaume Rousse <guillomovitch@mandriva.org> 3.2.0-1mdv2007.0 - new version - rpmbuildupdate aware - spec cleanup - move doc file in doc directory * Sat Apr 29 2006 Jerome Soyer <saispo@mandriva.org> 3.1.1-1mdk - New release 3.1.1 * Fri Feb 17 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 3.1.0-2mdk - enable build for ppc * Thu Dec 01 2005 Laurent MONTEL <lmontel@mandriva.com> 3.1.0-1mdk - 3.1.0 * Tue Sep 06 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 3.0.1-1mdk - 3.0.1 * Fri Aug 05 2005 Laurent MONTEL <lmontel@mandriva.com> 3.0.0-1mdk - 3.0.0 * Thu Mar 24 2005 Laurent MONTEL <lmontel@mandrakesoft.com> 2.4.0-1mdk - 2.4.0 * Wed Jan 19 2005 Laurent MONTEL <lmontel@mandrakesoft.com> 2.2.0-2mdk - Remove calltree from this package create new package valgrind-plugins and put callgrind into (because we can't compile callgrind without valgrind) * Sat Sep 04 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 2.2.0-1mdk - 2.2.0 * Thu Jul 22 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 2.1.2-1mdk - 2.1.2 (see http://developer.kde.org/~sewardj/docs-2.0.0/NEWS.txt) * Fri Apr 23 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 2.1.1-3mdk - Add calltree plugins for kcachegrind (kdesdk) * Tue Apr 20 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 2.1.1-2mdk - fix buildrequires - use %%configure macro - update url - drop patches that wasn't applied * Wed Mar 31 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 2.1.1-1mdk - new version * Wed Mar 31 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 2.1.0-3mdk - Don't package twice manual.html bug #9314