2007-01-16 00:40:26 +01:00
|
|
|
#
|
2009-09-08 22:35:32 +02:00
|
|
|
# spec file for package valgrind (Version 3.5.0)
|
2007-01-16 00:40:26 +01:00
|
|
|
#
|
2009-01-23 02:28:09 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:40:26 +01:00
|
|
|
#
|
2008-11-07 15:52:12 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:40:26 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-04-28 02:03:35 +02:00
|
|
|
|
2007-01-16 00:40:26 +01:00
|
|
|
Name: valgrind
|
|
|
|
BuildRequires: gcc-c++ glibc-devel-32bit xorg-x11-devel
|
2007-09-12 16:49:23 +02:00
|
|
|
%ifarch x86_64 ppc64
|
2007-01-23 15:15:03 +01:00
|
|
|
BuildRequires: gcc-32bit
|
2007-01-16 00:40:26 +01:00
|
|
|
%endif
|
2007-09-14 16:28:27 +02:00
|
|
|
Url: http://valgrind.org/
|
2007-09-12 16:49:23 +02:00
|
|
|
License: GPL v2 only
|
2007-01-16 00:40:26 +01:00
|
|
|
Group: Development/Tools/Debuggers
|
2007-09-14 16:28:27 +02:00
|
|
|
Summary: Valgrind Suite of Tools for Debugging and Profiling
|
2007-01-16 00:40:26 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-09-08 22:35:32 +02:00
|
|
|
Version: 3.5.0
|
2009-01-23 02:28:09 +01:00
|
|
|
Release: 1
|
2007-12-12 21:29:12 +01:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2007-01-16 00:40:26 +01:00
|
|
|
# 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
|
2009-09-08 22:35:32 +02:00
|
|
|
Patch1: jit-runtime-support.diff
|
|
|
|
Patch2: deprecated.diff
|
2007-12-03 23:48:02 +01:00
|
|
|
Provides: callgrind = %version
|
|
|
|
Obsoletes: callgrind < %version
|
2007-09-14 16:28:27 +02:00
|
|
|
ExclusiveArch: %ix86 x86_64 ppc ppc64
|
2007-01-16 00:40:26 +01:00
|
|
|
|
|
|
|
%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,
|
2007-09-14 16:28:27 +02:00
|
|
|
illegal heap operations, memory leaks, and any illegal
|
2007-01-16 00:40:26 +01:00
|
|
|
new/malloc/free/delete commands. Another program in the package is
|
2007-09-14 16:28:27 +02:00
|
|
|
"cachegrind," a profiler based on the valgrind engine. It is plugin
|
|
|
|
based and many different tools are available.
|
2007-01-16 00:40:26 +01:00
|
|
|
|
2007-09-14 16:28:27 +02:00
|
|
|
To use valgrind you should launch the application like normal with
|
|
|
|
debuginfo packages installed, for example:
|
|
|
|
|
|
|
|
|
|
|
|
_memcheck --leak-check_
|
2007-01-16 00:40:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
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
|
2007-09-14 16:28:27 +02:00
|
|
|
memory, but is usually still usable.
|
2007-01-16 00:40:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-06 00:31:09 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Julian Seward <jseward@acm.org>
|
|
|
|
Cerion Armour-Brown
|
|
|
|
Jeremy Fitzhardinge
|
|
|
|
Tom Hughes
|
|
|
|
Nicholas Nethercote
|
|
|
|
Paul Mackerras
|
|
|
|
Dirk Mueller
|
|
|
|
Robert Walsh
|
|
|
|
|
|
|
|
%package devel
|
2008-04-28 02:03:35 +02:00
|
|
|
License: GPL v2 or later
|
2007-09-14 16:28:27 +02:00
|
|
|
Summary: Valgrind Suite of Tools for Debugging and Profiling
|
2007-04-06 00:31:09 +02:00
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
Requires: %name = %version
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
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,
|
2007-09-14 16:28:27 +02:00
|
|
|
illegal heap operations, memory leaks, and any illegal
|
2007-04-06 00:31:09 +02:00
|
|
|
new/malloc/free/delete commands. Another program in the package is
|
2007-09-14 16:28:27 +02:00
|
|
|
"cachegrind," a profiler based on the valgrind engine. It is plugin
|
|
|
|
based and many different tools are available.
|
|
|
|
|
|
|
|
To use valgrind you should launch the application like normal with
|
|
|
|
debuginfo packages installed, for example:
|
|
|
|
|
2007-04-06 00:31:09 +02:00
|
|
|
|
2007-09-14 16:28:27 +02:00
|
|
|
_memcheck --leak-check_
|
2007-04-06 00:31:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
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
|
2007-09-14 16:28:27 +02:00
|
|
|
memory, but is usually still usable.
|
2007-04-06 00:31:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:40:26 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Julian Seward <jseward@acm.org>
|
|
|
|
Cerion Armour-Brown
|
|
|
|
Jeremy Fitzhardinge
|
|
|
|
Tom Hughes
|
|
|
|
Nicholas Nethercote
|
|
|
|
Paul Mackerras
|
|
|
|
Dirk Mueller
|
|
|
|
Robert Walsh
|
|
|
|
|
|
|
|
%prep
|
2007-12-12 21:29:12 +01:00
|
|
|
%setup -q -n %{name}-%{version}
|
2007-01-16 00:40:26 +01:00
|
|
|
cd VEX
|
|
|
|
cd ..
|
2009-09-08 22:35:32 +02:00
|
|
|
#%patch1
|
|
|
|
%patch2
|
2007-01-16 00:40:26 +01:00
|
|
|
|
|
|
|
%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)
|
2009-09-08 22:35:32 +02:00
|
|
|
%doc README* NEWS AUTHORS COPYING COPYING.DOCS
|
2007-01-16 00:40:26 +01:00
|
|
|
/usr/bin/*
|
|
|
|
%_libdir/valgrind
|
|
|
|
%doc %_mandir/*/*
|
|
|
|
|
2007-04-06 00:31:09 +02:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/include/valgrind
|
|
|
|
/usr/%_lib/pkgconfig/valgrind.pc
|
|
|
|
|
2007-03-30 11:43:37 +02:00
|
|
|
%changelog
|