]>
Commit | Line | Data |
---|---|---|
1 | Summary: An open-source memory debugger | |
2 | Summary(pl.UTF-8): Otwarty odpluskwiacz pamięci | |
3 | Name: valgrind | |
4 | Version: 3.2.3 | |
5 | Release: 3 | |
6 | License: GPL | |
7 | Group: Development/Tools | |
8 | Source0: http://valgrind.org/downloads/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 978847992b136c8d8cb5c6559a91df1c | |
10 | Patch0: %{name}-debuginfo.patch | |
11 | Patch1: %{name}-glibc2.6.patch | |
12 | URL: http://valgrind.org/ | |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake | |
15 | # Needs libc.a | |
16 | BuildRequires: glibc-static | |
17 | Obsoletes: valgrind-callgrind | |
18 | Obsoletes: valgrind-calltree | |
19 | ExclusiveArch: %{ix86} %{x8664} ppc ppc64 | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %define _noautostrip .*/vgpreload.*\\.so | |
23 | # ld portion broken | |
24 | %undefine with_ccache | |
25 | ||
26 | %description | |
27 | Valgrind is a GPL'd system for debugging and profiling Linux programs. | |
28 | With the tools that come with Valgrind, you can automatically detect | |
29 | many memory management and threading bugs, avoiding hours of frustrating | |
30 | bug-hunting, making your programs more stable. You can also perform | |
31 | detailed profiling to help speed up your programs. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Valgrind jest systemem służącym do odpluskwiania i profilowania | |
35 | programów na Linuksie. Używając dostarczanych z nim narzędzi można | |
36 | automatycznie wykrywać wiele błędów związanych z zarządzaniem pamięcią i | |
37 | wątkowaniem, dzięki czemu unika się frustrującego polowania na błędy, a | |
38 | także czyni się programy bardziej stabilnymi. Możliwe jest również | |
39 | dokładne profilowanie, dzięki któremu programy zaczną szybciej pracować. | |
40 | ||
41 | %prep | |
42 | %setup -q | |
43 | %patch0 -p1 | |
44 | %patch1 -p1 | |
45 | ||
46 | %build | |
47 | %{__aclocal} | |
48 | %{__autoheader} | |
49 | %{__autoconf} | |
50 | %{__automake} | |
51 | %configure \ | |
52 | LDFLAGS="" # no strip! | |
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
61 | strip $RPM_BUILD_ROOT%{_libdir}/%{name}/hp2ps | |
62 | rm -rf _docs | |
63 | mv $RPM_BUILD_ROOT%{_docdir}/valgrind _docs | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc ACKNOWLEDGEMENTS AUTHORS FAQ.txt NEWS README README_MISSING_SYSCALL_OR_IOCTL | |
71 | %doc _docs/html | |
72 | %doc _docs/valgrind_manual.pdf | |
73 | %attr(755,root,root) %{_bindir}/* | |
74 | %dir %{_libdir}/%{name} | |
75 | %dir %{_libdir}/%{name}/*-linux | |
76 | %attr(755,root,root) %{_libdir}/%{name}/*-linux/* | |
77 | %attr(755,root,root) %{_libdir}/%{name}/hp2ps | |
78 | %{_libdir}/%{name}/*.supp | |
79 | %{_includedir}/* | |
80 | %{_pkgconfigdir}/*.pc | |
81 | %{_mandir}/man1/*.1* |