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