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