]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | %define _rel test2 | |
3 | # | |
4 | Summary: An open-source memory debugger | |
5 | Summary(pl.UTF-8): Otwarty odpluskwiacz pamięci | |
6 | Name: valgrind | |
7 | Version: 3.6.0 | |
8 | Release: 0.%{_rel}.1 | |
9 | License: GPL | |
10 | Group: Development/Tools | |
11 | Source0: http://valgrind.org/downloads/%{name}-%{version}-%{_rel}.tar.bz2 | |
12 | # Source0-md5: 49b94fcba8d653da21601f0ad87c014e | |
13 | Patch0: %{name}-debuginfo.patch | |
14 | URL: http://valgrind.org/ | |
15 | BuildRequires: autoconf | |
16 | BuildRequires: automake | |
17 | # Needs libc.a | |
18 | BuildRequires: glibc-static | |
19 | BuildRequires: libgomp-devel | |
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 | |
33 | frustrating bug-hunting, making your programs more stable. You can | |
34 | also perform 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ą | |
40 | i wątkowaniem, dzięki czemu unika się frustrującego polowania na | |
41 | błędy, a także czyni się programy bardziej stabilnymi. Możliwe jest | |
42 | również dokładne profilowanie, dzięki któremu programy zaczną szybciej | |
43 | pracować. | |
44 | ||
45 | %prep | |
46 | %setup -q -n %{name}-%{version}-%{_rel} | |
47 | %patch0 -p1 | |
48 | ||
49 | sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in | |
50 | ||
51 | %build | |
52 | %{__aclocal} | |
53 | %{__autoheader} | |
54 | %{__autoconf} | |
55 | %{__automake} | |
56 | %configure \ | |
57 | --enable-tls \ | |
58 | %if %{_lib} != "lib" | |
59 | --enable-only64bit \ | |
60 | %endif | |
61 | LDFLAGS="" # no strip! | |
62 | %{__make} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %{__make} install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
70 | rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc | |
71 | mv docs/index.pdf docs/valgrind_manual.pdf | |
72 | mv docs/index.ps docs/valgrind_manual.ps | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc AUTHORS NEWS README README_MISSING_SYSCALL_OR_IOCTL | |
80 | %doc docs/html docs/valgrind_manual.pdf docs/valgrind_manual.ps | |
81 | %attr(755,root,root) %{_bindir}/* | |
82 | %{_includedir}/* | |
83 | %dir %{_libdir}/%{name} | |
84 | %attr(755,root,root) %{_libdir}/%{name}/*-linux | |
85 | %{_libdir}/%{name}/*.a | |
86 | %attr(755,root,root) %{_libdir}/%{name}/*.so | |
87 | %{_libdir}/%{name}/*.supp | |
88 | %{_mandir}/man1/*.1* | |
89 | %{_pkgconfigdir}/*.pc |