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