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