+%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: 3
+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
- 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}