Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 6c580efd2e68bdf9bb1f02356ec78d69 > files > 4

valgrind-2.2.0-2mdk.src.rpm

%define	name	valgrind
%define	version	2.2.0
%define	release	2mdk

Summary: 	Valgrind, an open-source memory debugger for x86-linux
Name: 		%{name}
Version:	%{version}
Release:	%{release}
Source0:	%{name}-%{version}.tar.bz2
Source1: 	valgrind


Patch3:		valgrind-2.2.0-fix-compile.patch.bz2

License: 	GPL
Group: 		Development/Other
URL: 		http://valgrind.kde.org/
BuildRequires:	glibc-static-devel
BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
ExclusiveArch:	%{ix86}
%define		__find_requires %{_builddir}/%{name}-%version/find_requires.sh

%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 

%patch3 -p1 -b .fix_compile

cat > find_requires.sh << EOF
#!/bin/sh
%{_prefix}/lib/rpm/find-requires %{buildroot} %{_target_cpu} | grep -v GLIBC_PRIVATE
EOF
chmod +x find_requires.sh

%build
%configure
%make



%install
rm -rf $RPM_BUILD_ROOT
# Don't strip librairy ask by developer
export DONT_STRIP=1

%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* ACKNOWLEDGEMENTS TODO
%_bindir/*
%_libdir/%name

%dir %_includedir/valgrind/
%_includedir/valgrind/*.h
%_libdir/pkgconfig/valgrind.pc

%dir %_docdir/valgrind/
%doc %_docdir/valgrind/*.html
%doc %_docdir/valgrind/*.gif

%changelog
* 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)

* Fri Sep 03 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 2.2.0-1mdk
- 2.2.0

* Wed Jul 21 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)

* Thu Apr 22 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 2.1.1-3mdk
- Add calltree plugins for kcachegrind (kdesdk)

* Mon Apr 19 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

* Tue Mar 30 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 2.1.1-1mdk
- new version

* Tue Mar 30 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 2.1.0-3mdk
- Don't package twice manual.html bug #9314

* Mon Dec 22 2003 Stefan van der Eijk <stefan@eijk.nu> 2.1.0-2mdk
- rebuild for new pkgconfig Requires

* Mon Dec 15 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 2.1.0-1mdk
- 2.0.1

* Fri Nov 14 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 2.0.0-1mdk
- 2.0.0

* Mon Oct 20 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 1.9.6-2mdk
- 20031012

* Wed May 28 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 1.9.6-1mdk
- 1.9.6

* Mon Apr 28 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 1.9.5-2mdk
- Fix spec file

* Wed Apr 23 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 1.9.5-1mdk
- 1.9.5

* Sat Mar  1 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.0.4-2mdk
- Patch2: Handle __NR_exit_group
- Patch1: Add GLIBC_2.3.2 version for vg libpthread

* Sat Oct 19 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 1.0.4-1mdk
- 1.0.4

* Tue Oct 08 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 1.0.3-1mdk
- 1.0.3

* Wed Sep 18 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.0.2-1.1mdk
- Patch0: add pthread_mutexattr_setpshared

* Fri Sep 06 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 1.0.2-1mdk
- 1.0.2

* Tue Aug 27 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 1.0.1-1mdk
- 1.0.1

* Mon Jul 29 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 1.0.0-1mdk
- 1.0.0

* Sat Jul 06 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 1.0-0.pre4.1mdk
- pre4

* Sun Jun 30 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 1.0-0.pre3.1mdk
- pre3

* Thu Jun 20 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 1.0-0.pre2.1mdk
- pre2

* Wed Jun 19 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 1.0-0.pre1.1mdk
- pre1

* Sat Jun 08 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 0-0.20020606.1mdk
- Update version

* Wed May 29 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 0-0.20020524.1mdk
- Update version

* Mon May 06 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 0-0.20020503b.1mdk
- Update version

* Thu May 02 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 0-0.20020430.1mdk
- Update version

* Mon Apr 22 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 0-0.20020420.2mdk
- rebuild

* Sun Apr 21 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 0-0.20020420.1mdk
-  20020420

* Wed Mar 13 2002 Frederic Lepied <flepied@mandrakesoft.com> 0-0.20020312.1mdk
- 20020312

* Tue Feb 26 2002 Frederic Lepied <flepied@mandrakesoft.com> 0-0.20020225.1mdk
- 20020225

# end of file