182 lines
5.4 KiB
RPMSpec
182 lines
5.4 KiB
RPMSpec
|
#
|
||
|
# spec file for package valgrind (Version 3.2.1)
|
||
|
#
|
||
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
# This file and all modifications and additions to the pristine
|
||
|
# package are under the same license as the package itself.
|
||
|
#
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
# norootforbuild
|
||
|
|
||
|
Name: valgrind
|
||
|
BuildRequires: gcc-c++ glibc-devel-32bit xorg-x11-devel
|
||
|
%ifarch x86_64
|
||
|
%if %suse_version > 1010
|
||
|
BuildRequires: gcc41-32bit
|
||
|
%endif
|
||
|
%if %suse_version < 1010
|
||
|
BuildRequires: gcc-32bit glibc-32bit
|
||
|
%endif
|
||
|
%endif
|
||
|
URL: http://valgrind.org/
|
||
|
License: Other License(s), see package
|
||
|
Group: Development/Tools/Debuggers
|
||
|
Summary: Memory Management Debugger
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
Version: 3.2.1
|
||
|
Release: 10
|
||
|
Source0: %{name}-%{version}.tar.bz2
|
||
|
# svn di svn://svn.valgrind.org/valgrind/tags/VALGRIND_3_2_1 svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_2_BRANCH > 3_2_BRANCH.diff
|
||
|
# svn di svn://svn.valgrind.org/vex/tags/VEX_3_2_1 svn://svn.valgrind.org/vex/branches/VEX_3_2_BRANCH > VEX_3_2_BRANCH.diff
|
||
|
Patch0: 3_2_BRANCH.diff
|
||
|
#Patch1: VEX_3_1_BRANCH.diff
|
||
|
Source1: valgrind-6012-drd-2006-08-26.tar.bz2
|
||
|
Patch3: valgrind-6012.patch
|
||
|
Patch4: drd-fixes.diff
|
||
|
Patch5: omega_RC_01.patch
|
||
|
Provides: callgrind
|
||
|
Obsoletes: callgrind
|
||
|
ExclusiveArch: %ix86 x86_64 ppc ppc64
|
||
|
|
||
|
%description
|
||
|
Valgrind checks all memory operations in an application, like read,
|
||
|
write, malloc, new, free, and delete. Valgrind can find uses of
|
||
|
uninitialized memory, access to already freed memory, overflows,
|
||
|
illegal stack operations, memory leaks, and any illegal
|
||
|
new/malloc/free/delete commands. Another program in the package is
|
||
|
"cachegrind," a profiler based on the valgrind engine.
|
||
|
|
||
|
To use valgrind you should compile your application with "-g -O0"
|
||
|
compiler options. Afterwards you can use it with:
|
||
|
|
||
|
valgrind --tool=memcheck --sloppy-malloc=yes --leak-check=yes
|
||
|
--db-attach=yes my_application, for example.
|
||
|
|
||
|
More valgrind options can be listed via "valgrind --help". There is
|
||
|
also complete documentation in the /usr/share/doc/packages/valgrind/
|
||
|
directory. A debugged application runs slower and needs much more
|
||
|
memory, but is usually still usable. Valgrind is still in development,
|
||
|
but it has been successfully used to optimize several KDE applications.
|
||
|
|
||
|
|
||
|
|
||
|
Authors:
|
||
|
--------
|
||
|
Julian Seward <jseward@acm.org>
|
||
|
Cerion Armour-Brown
|
||
|
Jeremy Fitzhardinge
|
||
|
Tom Hughes
|
||
|
Nicholas Nethercote
|
||
|
Paul Mackerras
|
||
|
Dirk Mueller
|
||
|
Robert Walsh
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{name}-%{version}
|
||
|
%patch
|
||
|
cd VEX
|
||
|
#%patch1
|
||
|
cd ..
|
||
|
tar xf %SOURCE1
|
||
|
#%patch3
|
||
|
%patch4
|
||
|
%ifarch %ix86 x86_64
|
||
|
%patch5
|
||
|
%endif
|
||
|
|
||
|
%build
|
||
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||
|
autoreconf -fi
|
||
|
export GDB=/usr/bin/gdb
|
||
|
%configure
|
||
|
make %{?jobs:-j%jobs}
|
||
|
|
||
|
%install
|
||
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||
|
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages
|
||
|
mv $RPM_BUILD_ROOT/usr/share/doc/valgrind $RPM_BUILD_ROOT/usr/share/doc/packages
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc README* NEWS ACKNOWLEDGEMENTS AUTHORS COPYING
|
||
|
/usr/bin/*
|
||
|
/usr/include/valgrind
|
||
|
/usr/%_lib/pkgconfig/valgrind.pc
|
||
|
%_libdir/valgrind
|
||
|
%doc %_mandir/*/*
|
||
|
|
||
|
%changelog -n valgrind
|
||
|
* Tue Oct 17 2006 - dmueller@suse.de
|
||
|
- disable omega plugin for ppc/ppc64
|
||
|
* Mon Oct 16 2006 - dmueller@suse.de
|
||
|
- update to 3.2 BRANCH:
|
||
|
* support glibc 2.5
|
||
|
* update suppressions
|
||
|
- add omega plugin
|
||
|
* Sat Sep 16 2006 - dmueller@suse.de
|
||
|
- update to 3.2.1:
|
||
|
* suppresion updates
|
||
|
* Fri Sep 15 2006 - dmueller@suse.de
|
||
|
- update to 3.2.1rc1:
|
||
|
* about 36 bugfixes
|
||
|
* Wed Sep 13 2006 - stbinner@suse.de
|
||
|
- fix build with < Factory
|
||
|
* Mon Aug 28 2006 - dmueller@suse.de
|
||
|
- fix suppressions
|
||
|
- update drd plugin
|
||
|
* Thu Aug 24 2006 - dmueller@suse.de
|
||
|
- add experimental drd plugin
|
||
|
- fix build on x86_64
|
||
|
* Wed Aug 02 2006 - dmueller@suse.de
|
||
|
- also fix multibyte NOP parsing for x86_64
|
||
|
* Tue Aug 01 2006 - dmueller@suse.de
|
||
|
- add patch to handle multibyte NOPs as generated by
|
||
|
recent binutils
|
||
|
* Wed Jun 07 2006 - dmueller@suse.de
|
||
|
- update to 3.2.0 final
|
||
|
* only marginal changes since rc1
|
||
|
* Tue May 30 2006 - dmueller@suse.de
|
||
|
- update to 3.2.0 rc1:
|
||
|
* ppc64 support
|
||
|
* callgrind now integrated part
|
||
|
* massive performance improvements
|
||
|
* lots of emulation fixlets
|
||
|
* Thu Mar 16 2006 - dmueller@suse.de
|
||
|
- update to 3.1.1 (FATE #300493)
|
||
|
* Mon Mar 06 2006 - dmueller@suse.de
|
||
|
- various updates from branch to fix PPC32 support
|
||
|
* Mon Feb 06 2006 - dmueller@suse.de
|
||
|
- Fix GDB support
|
||
|
* Mon Feb 06 2006 - dmueller@suse.de
|
||
|
- Reduce BuildRequires
|
||
|
* Wed Jan 25 2006 - mls@suse.de
|
||
|
- converted neededforbuild to BuildRequires
|
||
|
* Wed Jan 04 2006 - dmueller@suse.de
|
||
|
- update to 3.1 branch
|
||
|
* Fri Dec 09 2005 - dmueller@suse.de
|
||
|
- fix strict-aliasing issue
|
||
|
* Mon Nov 28 2005 - dmueller@suse.de
|
||
|
- 3.1.0 final update
|
||
|
* Mon Nov 21 2005 - dmueller@suse.de
|
||
|
- 3.1.0 RC1 update
|
||
|
* Thu Nov 10 2005 - dmueller@suse.de
|
||
|
- update to 3.1 SVN
|
||
|
* Tue Nov 08 2005 - dmueller@suse.de
|
||
|
- add hack to make valgrind work with apps that require executable stack
|
||
|
* Thu Sep 15 2005 - dmueller@suse.de
|
||
|
- update 3.0.1 final
|
||
|
* Thu Aug 25 2005 - dmueller@suse.de
|
||
|
- make massif work again
|
||
|
* Sun Aug 21 2005 - dmueller@suse.de
|
||
|
- fix trace-children=yes failure
|
||
|
- add default suppressions for SL 10
|
||
|
* Mon Aug 15 2005 - dmueller@suse.de
|
||
|
- regenerate VEX offset headers, otherwise it just hangs
|
||
|
* Fri Aug 12 2005 - dmueller@suse.de
|
||
|
- update to 3.0 branch to make it work on non-SSE platforms (#104181)
|
||
|
* Fri Aug 05 2005 - dmueller@suse.de
|
||
|
- initial package of 3.0
|