X-Git-Url: http://git.pld-linux.org/?p=packages%2Fvalgrind.git;a=blobdiff_plain;f=valgrind.spec;h=535315a47bc60b89d1c99a4e2453e3bedd0c6db8;hp=7b4c27bd11270fc7be7cf13638d9df36a4b066c2;hb=e5bb550ce5f8bb68c4359c66cd12968937b53ca3;hpb=bf3b7fd9b1e3c38cb3c99b32b3b89ee9febe76bf diff --git a/valgrind.spec b/valgrind.spec index 7b4c27b..535315a 100644 --- a/valgrind.spec +++ b/valgrind.spec @@ -1,87 +1,93 @@ -%define snap 20030329 -Summary: An open-source memory debugger for x86-GNU/Linux -Summary(pl): Otwarty odpluskwiacz pamiêci dla Linuksa x86 +Summary: An open-source memory debugger +Summary(pl.UTF-8): Otwarty odpluskwiacz pamięci Name: valgrind -Version: 1.9.4 -Release: 1.%{snap}.1 +Version: 3.6.0 +Release: 3 License: GPL -ExclusiveArch: %{ix86} -Group: Networking/Utilities -#Source0: http://developer.kde.org/~sewardj/%{name}-%{version}.tar.bz2 -Source0: %{name}-%{snap}.tar.bz2 -URL: http://developer.kde.org/~sewardj/ +Group: Development/Tools +Source0: http://valgrind.org/downloads/%{name}-%{version}.tar.bz2 +# Source0-md5: b289c5f4ab8e39741602445f1dd09b34 +Patch0: %{name}-debuginfo.patch +Patch1: %{name}-pr262995.patch +Patch2: %{name}-native-cpuid.patch +URL: http://valgrind.org/ BuildRequires: autoconf BuildRequires: automake +# Needs libc.a +BuildRequires: glibc-static +BuildRequires: libgomp-devel +Obsoletes: valgrind-callgrind +Obsoletes: valgrind-calltree +ExclusiveArch: %{ix86} %{x8664} ppc ppc64 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 +%define _noautostrip .*/vgpreload.*\\.so +# ld portion broken +%undefine with_ccache %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. +Valgrind is a GPL'd system for debugging and profiling Linux programs. +With the tools that come with Valgrind, you can automatically detect +many memory management and threading bugs, avoiding hours of +frustrating bug-hunting, making your programs more stable. You can +also perform detailed profiling to help speed up your programs. -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. +%description -l pl.UTF-8 +Valgrind jest systemem służącym do odpluskwiania i profilowania +programów na Linuksie. Używając dostarczanych z nim narzędzi można +automatycznie wykrywać wiele błędów związanych z zarządzaniem pamięcią +i wątkowaniem, dzięki czemu unika się frustrującego polowania na +błędy, a także czyni się programy bardziej stabilnymi. Możliwe jest +również dokładne profilowanie, dzięki któremu programy zaczną szybciej +pracować. %prep -%setup -q -n %{name} +%setup -q +%patch0 +%patch1 -p1 +%patch2 -p1 -# pthread_atfork() not found (?) -echo "main(){}" > corecheck/tests/pth_atfork1.c +sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in %build -rm -f missing %{__aclocal} %{__autoheader} %{__autoconf} %{__automake} + +ac_cv_path_GDB=/usr/bin/gdb \ %configure \ + --enable-tls \ +%if %{_lib} != "lib" + --enable-only64bit \ +%endif LDFLAGS="" # no strip! + %{__make} %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc +mv docs/index.pdf docs/valgrind_manual.pdf +mv docs/index.ps docs/valgrind_manual.ps %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc ACKNOWLEDGEMENTS AUTHORS ChangeLog PATCHES_APPLIED -%doc README README_MISSING_SYSCALL_OR_IOCTL TODO -%doc $RPM_BUILD_ROOT%{_docdir}/valgrind/*.html +%doc AUTHORS NEWS README README_MISSING_SYSCALL_OR_IOCTL +%doc docs/html docs/valgrind_manual.pdf docs/valgrind_manual.ps %attr(755,root,root) %{_bindir}/* %{_includedir}/* -%{_libdir}/%{name} +%dir %{_libdir}/%{name} +%attr(755,root,root) %{_libdir}/%{name}/*-linux +%{_libdir}/%{name}/*.a +%attr(755,root,root) %{_libdir}/%{name}/*.so +%{_libdir}/%{name}/*.supp +%{_mandir}/man1/*.1* +%{_pkgconfigdir}/*.pc