+%define snap 20030329
Summary: An open-source memory debugger for x86-GNU/Linux
Summary(pl): Otwarty odpluskwiacz pamiêci dla Linuksa x86
Name: valgrind
-Version: 1.0.0
-Release: 2
+Version: 1.9.4
+Release: 1.%{snap}.1
License: GPL
ExclusiveArch: %{ix86}
Group: Networking/Utilities
-Source0: http://developer.kde.org/~sewardj/%{name}-%{version}.tar.bz2
+#Source0: http://developer.kde.org/~sewardj/%{name}-%{version}.tar.bz2
+Source0: %{name}-%{snap}.tar.bz2
URL: http://developer.kde.org/~sewardj/
BuildRequires: autoconf
BuildRequires: automake
# 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
+
%description
Valgrind is a GPL'd tool to help you find memory-management problems
in your programs. When a program is run under Valgrind's supervision,
- Niektóre nadu¿ycia API POSIX pthreads
%prep
-%setup -q
+%setup -q -n %{name}
+
+# pthread_atfork() not found (?)
+echo "main(){}" > corecheck/tests/pth_atfork1.c
%build
rm -f missing
-aclocal
+%{__aclocal}
+%{__autoheader}
%{__autoconf}
%{__automake}
%configure \
%defattr(644,root,root,755)
%doc ACKNOWLEDGEMENTS AUTHORS ChangeLog PATCHES_APPLIED
%doc README README_MISSING_SYSCALL_OR_IOCTL TODO
-%doc docs/*.html
+%doc $RPM_BUILD_ROOT%{_docdir}/valgrind/*.html
%attr(755,root,root) %{_bindir}/*
%{_includedir}/*
%{_libdir}/%{name}