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