]>
Commit | Line | Data |
---|---|---|
23a3ecde AM |
1 | # TODO: |
2 | # - fix CC detection in configure, so CC=gcc won't be needed | |
9fd66024 | 3 | Summary: An open-source memory debugger |
81257f7b | 4 | Summary(pl.UTF-8): Otwarty odpluskwiacz pamięci |
cccdc142 | 5 | Name: valgrind |
23a3ecde | 6 | Version: 3.7.0 |
3a93a74d | 7 | Release: 2 |
cccdc142 | 8 | License: GPL |
c5631d09 | 9 | Group: Development/Tools |
4ff172b5 | 10 | Source0: http://valgrind.org/downloads/%{name}-%{version}.tar.bz2 |
23a3ecde | 11 | # Source0-md5: a855fda56edf05614f099dca316d1775 |
a75fc68f | 12 | Patch0: %{name}-debuginfo.patch |
6a71ccd9 | 13 | Patch1: %{name}-native-cpuid.patch |
3a93a74d | 14 | Patch2: %{name}-automake-1.11.2.patch |
e0752a56 | 15 | URL: http://valgrind.org/ |
cccdc142 JK |
16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
54375cc9 | 18 | BuildRequires: gcc >= 5:3.0 |
c3075ce6 | 19 | # Needs libc.a |
3a93a74d JK |
20 | BuildRequires: glibc-devel >= 6:2.2 |
21 | BuildRequires: glibc-devel < 6:2.15 | |
c3075ce6 | 22 | BuildRequires: glibc-static |
1abb996b | 23 | BuildRequires: libgomp-devel |
54375cc9 | 24 | BuildRequires: libstdc++-devel |
11f54799 | 25 | Obsoletes: valgrind-callgrind |
26 | Obsoletes: valgrind-calltree | |
54375cc9 | 27 | ExclusiveArch: %{ix86} %{x8664} arm ppc ppc64 s390x |
cccdc142 JK |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
9fd66024 | 30 | %define _noautostrip .*/vgpreload.*\\.so |
79e9a7b2 ER |
31 | # ld portion broken |
32 | %undefine with_ccache | |
a803692b | 33 | |
cccdc142 | 34 | %description |
9fd66024 | 35 | Valgrind is a GPL'd system for debugging and profiling Linux programs. |
36 | With the tools that come with Valgrind, you can automatically detect | |
6b924c54 JP |
37 | many memory management and threading bugs, avoiding hours of |
38 | frustrating bug-hunting, making your programs more stable. You can | |
39 | also perform detailed profiling to help speed up your programs. | |
cccdc142 | 40 | |
f86a5f7e JR |
41 | %description -l pl.UTF-8 |
42 | Valgrind jest systemem służącym do odpluskwiania i profilowania | |
43 | programów na Linuksie. Używając dostarczanych z nim narzędzi można | |
6b924c54 JP |
44 | automatycznie wykrywać wiele błędów związanych z zarządzaniem pamięcią |
45 | i wątkowaniem, dzięki czemu unika się frustrującego polowania na | |
46 | błędy, a także czyni się programy bardziej stabilnymi. Możliwe jest | |
47 | również dokładne profilowanie, dzięki któremu programy zaczną szybciej | |
48 | pracować. | |
a3b1e5f5 | 49 | |
cccdc142 | 50 | %prep |
4ff172b5 JP |
51 | %setup -q |
52 | %patch0 | |
1dc3004f | 53 | %patch1 -p1 |
3a93a74d | 54 | %patch2 -p0 |
68bd9ee3 AM |
55 | |
56 | sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in | |
1437dfea | 57 | |
cccdc142 | 58 | %build |
c594fc71 | 59 | %{__aclocal} |
1437dfea | 60 | %{__autoheader} |
cccdc142 JK |
61 | %{__autoconf} |
62 | %{__automake} | |
e7968d53 PS |
63 | |
64 | ac_cv_path_GDB=/usr/bin/gdb \ | |
9eb4ec2b | 65 | %configure \ |
23a3ecde | 66 | CC=gcc \ |
1abb996b | 67 | --enable-tls \ |
68bd9ee3 AM |
68 | %if %{_lib} != "lib" |
69 | --enable-only64bit \ | |
70 | %endif | |
9eb4ec2b | 71 | LDFLAGS="" # no strip! |
e7968d53 | 72 | |
cccdc142 JK |
73 | %{__make} |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
a273c144 JB |
78 | %{__make} install \ |
79 | DESTDIR=$RPM_BUILD_ROOT | |
cccdc142 | 80 | |
54375cc9 | 81 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc |
6b924c54 JP |
82 | mv docs/index.pdf docs/valgrind_manual.pdf |
83 | mv docs/index.ps docs/valgrind_manual.ps | |
84 | ||
cccdc142 JK |
85 | %clean |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
a15e5165 | 90 | %doc AUTHORS NEWS README README_MISSING_SYSCALL_OR_IOCTL |
6b924c54 | 91 | %doc docs/html docs/valgrind_manual.pdf docs/valgrind_manual.ps |
54375cc9 JB |
92 | %attr(755,root,root) %{_bindir}/callgrind_annotate |
93 | %attr(755,root,root) %{_bindir}/callgrind_control | |
94 | %attr(755,root,root) %{_bindir}/cg_annotate | |
95 | %attr(755,root,root) %{_bindir}/cg_diff | |
96 | %attr(755,root,root) %{_bindir}/cg_merge | |
97 | %attr(755,root,root) %{_bindir}/ms_print | |
98 | %attr(755,root,root) %{_bindir}/valgrind | |
99 | %attr(755,root,root) %{_bindir}/valgrind-listener | |
100 | %attr(755,root,root) %{_bindir}/vgdb | |
f1c36ddf | 101 | %dir %{_libdir}/%{name} |
1abb996b | 102 | %attr(755,root,root) %{_libdir}/%{name}/*-linux |
54375cc9 | 103 | %attr(755,root,root) %{_libdir}/%{name}/vgpreload_*-linux.so |
23a3ecde | 104 | %{_libdir}/%{name}/*.xml |
54375cc9 JB |
105 | %{_libdir}/%{name}/default.supp |
106 | %{_libdir}/%{name}/lib*-linux.a | |
107 | %{_includedir}/valgrind | |
108 | %{_mandir}/man1/callgrind_annotate.1* | |
109 | %{_mandir}/man1/callgrind_control.1* | |
110 | %{_mandir}/man1/cg_annotate.1* | |
111 | %{_mandir}/man1/ms_print.1* | |
112 | %{_mandir}/man1/valgrind.1* | |
113 | %{_pkgconfigdir}/valgrind.pc |