#%define snap 20031012 Summary: An open-source memory debugger for x86-GNU/Linux Summary(pl): Otwarty odpluskwiacz pamięci dla Linuksa x86 Name: valgrind Version: 2.0.0 Release: 1 License: GPL Group: Development/Tools Source0: http://developer.kde.org/~sewardj/valgrind-%{version}.tar.bz2 # Source0-md5: 1f6a90d0ca494fb75eaeef498e8252b5 #Source0: %{name}-%{snap}.tar.bz2 Patch0: %{name}-sockios.patch URL: http://valgrind.kde.org/downloads.html BuildRequires: autoconf BuildRequires: automake ExclusiveArch: %{ix86} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # Valgrind binaries should _never_ be stripped %define no_install_post_strip 1 # Same name as libpthread %define _noautoprovfiles %{_libdir}/%{name}/libpthread.so.0 %{_libdir}/%{name}/libpthread.so %{_libdir}/%{name}/valgrind.so %{_libdir}/%{name}/valgrinq.so %description Valgrind is a flexible tool for debugging and profiling Linux-x86 executables. The tool consists of a core, which provides a synthetic x86 CPU in software, and a series of "skins", each of which is a debugging or profiling tool. The architecture is modular, so that new skins can be created easily and without disturbing the existing structure. A number of useful skins are supplied as standard. In summary, these are: - The memcheck skin detects memory-management problems in your programs, - cachegrind performs detailed simulation of the I1, D1 and L2 caches in your CPU and so can accurately pinpoint the sources of cache misses in your code, - addrcheck skin is a lightweight version of memcheck, - helgrind is designed to find data races in multithreaded programs. %description -l pl Valgrind jest elastycznym narzędziem służącym do odpluskwiania i profilowania programów pod Linuksem. Składa się z rdzenia dostarczającego syntetyczny emulowany procesor zgodny z x86 i ze "skórek" będących narzędziami o różnych zastosowaniach. Architektura programu jest modularna, wobec czego łatwo można stworzyć nowe skórki nie ryzykując popsucia reszty. Standardowo dostarczone jest kilka użytecznych skórek: - memcheck wykrywa problemy z zarządzaniem pamięcią w programach, - cachegrind przeprowadza symulację pamięci cache procesora w celu znalezienia miejsc, w których cache zawodzi, - addrcheck jest lekką wersją memchecka, - helgrind wykrywa konflikty dostępu w wielowątkowych programach. %prep %setup -q %patch0 -p1 %build %{__aclocal} %{__autoheader} %{__autoconf} %{__automake} %configure \ LDFLAGS="" # no strip! %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc ACKNOWLEDGEMENTS AUTHORS FAQ.txt NEWS PATCHES_APPLIED %doc README README_MISSING_SYSCALL_OR_IOCTL TODO %doc $RPM_BUILD_ROOT%{_docdir}/valgrind/*.html %attr(755,root,root) %{_bindir}/* %{_includedir}/* %{_libdir}/%{name}