- split into a -32bit subpackage
OBS-URL: https://build.opensuse.org/package/show/devel:tools/valgrind?expand=0&rev=189
This commit is contained in:
parent
0021300e5b
commit
0d2dc0f61e
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 11 12:30:42 UTC 2019 - Dirk Mueller <dmueller@suse.com>
|
||||
|
||||
- split into a -32bit subpackage
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 6 02:53:30 UTC 2018 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
|
147
valgrind.spec
147
valgrind.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package valgrind
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -107,6 +107,35 @@ 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.
|
||||
|
||||
%ifarch x86_64 ppc64 s390x
|
||||
%package 32bit
|
||||
Summary: Memory Management Debugger
|
||||
Group: Development/Tools/Debuggers
|
||||
Requires: %{name} = %{version}
|
||||
Provides: valgrind:%{_libdir}/valgrind/32bit-core.xml
|
||||
|
||||
%description 32bit
|
||||
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 %{_docdir}/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.
|
||||
|
||||
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
@ -178,6 +207,10 @@ cp -a README* NEWS AUTHORS %{buildroot}/%{_defaultdocdir}/%{name}
|
||||
VALGRIND_LIB=$PWD/.in_place VALGRIND_LIB_INNER=$PWD/.in_place ./coregrind/valgrind /usr/bin/perl -wc tests/vg_regtest
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%{_includedir}/valgrind
|
||||
%{_libdir}/pkgconfig/valgrind.pc
|
||||
|
||||
%files
|
||||
%license COPYING COPYING.DOCS
|
||||
%{_bindir}/*
|
||||
@ -190,7 +223,7 @@ VALGRIND_LIB=$PWD/.in_place VALGRIND_LIB_INNER=$PWD/.in_place ./coregrind/valgri
|
||||
%ifarch x86_64
|
||||
%{_libdir}/valgrind/*-amd64-linux
|
||||
%endif
|
||||
%ifarch %ix86 x86_64
|
||||
%ifarch %ix86
|
||||
%{_libdir}/valgrind/*-x86-linux
|
||||
%endif
|
||||
%ifarch ppc ppc64
|
||||
@ -210,26 +243,78 @@ VALGRIND_LIB=$PWD/.in_place VALGRIND_LIB_INNER=$PWD/.in_place ./coregrind/valgri
|
||||
%endif
|
||||
%{_libdir}/valgrind/*-linux.so
|
||||
%{_libdir}/valgrind/*.supp
|
||||
%{_libdir}/valgrind/32bit-core.xml
|
||||
%{_libdir}/valgrind/32bit-linux.xml
|
||||
%{_libdir}/valgrind/32bit-sse.xml
|
||||
%{_libdir}/valgrind/64bit-core.xml
|
||||
%{_libdir}/valgrind/64bit-linux.xml
|
||||
%{_libdir}/valgrind/64bit-sse.xml
|
||||
%{_libdir}/valgrind/32bit-core-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/32bit-linux-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/32bit-sse-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/64bit-core-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/64bit-linux-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/64bit-sse-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/amd64-coresse-valgrind.xml
|
||||
%{_libdir}/valgrind/amd64-linux-valgrind.xml
|
||||
%{_libdir}/valgrind/power64-core-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/power64-core.xml
|
||||
%{_libdir}/valgrind/power64-core2-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/power64-linux-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/power64-linux.xml
|
||||
%{_libdir}/valgrind/64bit-avx-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/64bit-avx.xml
|
||||
%{_libdir}/valgrind/amd64-avx-coresse-valgrind.xml
|
||||
%{_libdir}/valgrind/amd64-avx-coresse.xml
|
||||
%{_libdir}/valgrind/amd64-avx-linux-valgrind.xml
|
||||
%{_libdir}/valgrind/amd64-avx-linux.xml
|
||||
%{_libdir}/valgrind/mips64-cp0-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/mips64-cp0.xml
|
||||
%{_libdir}/valgrind/mips64-cpu-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/mips64-cpu.xml
|
||||
%{_libdir}/valgrind/mips64-fpu-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/mips64-fpu.xml
|
||||
%{_libdir}/valgrind/mips64-linux-valgrind.xml
|
||||
%{_libdir}/valgrind/mips64-linux.xml
|
||||
%{_libdir}/valgrind/power-core-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/s390x-core64-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/s390x-core64.xml
|
||||
%{_libdir}/valgrind/s390x-generic-valgrind.xml
|
||||
%{_libdir}/valgrind/s390x-generic.xml
|
||||
%{_libdir}/valgrind/s390x-linux64-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/s390x-linux64.xml
|
||||
%{_libdir}/valgrind/s390x-vx-linux-valgrind.xml
|
||||
%{_libdir}/valgrind/s390x-vx-linux.xml
|
||||
|
||||
%ifarch x86_64 ppc64 s390x
|
||||
%files 32bit
|
||||
%endif
|
||||
%ifarch %ix86 x86_64
|
||||
%{_libdir}/valgrind/*-x86-linux
|
||||
%endif
|
||||
%ifarch ppc ppc64
|
||||
%{_libdir}/valgrind/*-ppc32-linux
|
||||
%endif
|
||||
%{_libdir}/valgrind/s390-acr-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/s390-acr.xml
|
||||
%{_libdir}/valgrind/s390-fpr-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/s390-fpr.xml
|
||||
%{_libdir}/valgrind/s390-vx-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/s390-vx.xml
|
||||
%{_libdir}/valgrind/mips-cp0-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/mips-cp0.xml
|
||||
%{_libdir}/valgrind/mips-cpu-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/mips-cpu.xml
|
||||
%{_libdir}/valgrind/mips-fpu-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/mips-fpu.xml
|
||||
%{_libdir}/valgrind/mips-linux-valgrind.xml
|
||||
%{_libdir}/valgrind/mips-linux.xml
|
||||
%{_libdir}/valgrind/32bit-core.xml
|
||||
%{_libdir}/valgrind/32bit-linux.xml
|
||||
%{_libdir}/valgrind/32bit-sse.xml
|
||||
%{_libdir}/valgrind/arm-core-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/arm-core.xml
|
||||
%{_libdir}/valgrind/arm-vfpv3-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/arm-vfpv3.xml
|
||||
%{_libdir}/valgrind/arm-with-vfpv3-valgrind.xml
|
||||
%{_libdir}/valgrind/arm-with-vfpv3.xml
|
||||
%{_libdir}/valgrind/32bit-core-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/32bit-linux-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/32bit-sse-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/i386-coresse-valgrind.xml
|
||||
%{_libdir}/valgrind/i386-linux-valgrind.xml
|
||||
%{_libdir}/valgrind/power-altivec-valgrind-s*.xml
|
||||
@ -242,55 +327,9 @@ VALGRIND_LIB=$PWD/.in_place VALGRIND_LIB_INNER=$PWD/.in_place ./coregrind/valgri
|
||||
%{_libdir}/valgrind/power-vsx-valgrind-s1.xml
|
||||
%{_libdir}/valgrind/power-vsx-valgrind-s2.xml
|
||||
%{_libdir}/valgrind/power-vsx.xml
|
||||
%{_libdir}/valgrind/power64-core-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/power64-core.xml
|
||||
%{_libdir}/valgrind/power64-core2-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/power64-linux-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/power64-linux.xml
|
||||
%{_libdir}/valgrind/powerpc-altivec32l-valgrind.xml
|
||||
%{_libdir}/valgrind/powerpc-altivec32l.xml
|
||||
%{_libdir}/valgrind/powerpc-altivec64l-valgrind.xml
|
||||
%{_libdir}/valgrind/powerpc-altivec64l.xml
|
||||
%{_libdir}/valgrind/64bit-avx-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/64bit-avx.xml
|
||||
%{_libdir}/valgrind/amd64-avx-coresse-valgrind.xml
|
||||
%{_libdir}/valgrind/amd64-avx-coresse.xml
|
||||
%{_libdir}/valgrind/amd64-avx-linux-valgrind.xml
|
||||
%{_libdir}/valgrind/amd64-avx-linux.xml
|
||||
%{_libdir}/valgrind/mips-cp0-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/mips-cp0.xml
|
||||
%{_libdir}/valgrind/mips-cpu-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/mips-cpu.xml
|
||||
%{_libdir}/valgrind/mips-fpu-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/mips-fpu.xml
|
||||
%{_libdir}/valgrind/mips-linux-valgrind.xml
|
||||
%{_libdir}/valgrind/mips-linux.xml
|
||||
%{_libdir}/valgrind/mips64-cp0-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/mips64-cp0.xml
|
||||
%{_libdir}/valgrind/mips64-cpu-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/mips64-cpu.xml
|
||||
%{_libdir}/valgrind/mips64-fpu-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/mips64-fpu.xml
|
||||
%{_libdir}/valgrind/mips64-linux-valgrind.xml
|
||||
%{_libdir}/valgrind/mips64-linux.xml
|
||||
%{_libdir}/valgrind/power-core-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/s390-acr-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/s390-acr.xml
|
||||
%{_libdir}/valgrind/s390-fpr-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/s390-fpr.xml
|
||||
%{_libdir}/valgrind/s390-vx-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/s390-vx.xml
|
||||
%{_libdir}/valgrind/s390x-core64-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/s390x-core64.xml
|
||||
%{_libdir}/valgrind/s390x-generic-valgrind.xml
|
||||
%{_libdir}/valgrind/s390x-generic.xml
|
||||
%{_libdir}/valgrind/s390x-linux64-valgrind-s*.xml
|
||||
%{_libdir}/valgrind/s390x-linux64.xml
|
||||
%{_libdir}/valgrind/s390x-vx-linux-valgrind.xml
|
||||
%{_libdir}/valgrind/s390x-vx-linux.xml
|
||||
|
||||
%files devel
|
||||
%{_includedir}/valgrind
|
||||
%{_libdir}/pkgconfig/valgrind.pc
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user