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