2024-01-05 18:54:28 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: valgrind
|
2024-01-05 18:54:29 +01:00
|
|
|
Version: 3.21.0
|
2024-01-05 18:54:28 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Valgrind Memory Debugger
|
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 18:54:29 +01:00
|
|
|
URL: https://valgrind.org/
|
2024-01-05 18:54:29 +01:00
|
|
|
Source: ftp://sourceware.org/pub/valgrind/valgrind-%{version}.tar.bz2
|
2024-01-05 18:54:28 +01:00
|
|
|
Patch0: %{name}-3.7.0-x86_64-fix-gcc-detection.patch
|
|
|
|
Patch1: %{name}-3.7.0-glibc-2.15.patch
|
2024-01-05 18:54:29 +01:00
|
|
|
Patch2: valgrind-3.16.1-respect-flags-mpi.patch
|
2024-01-05 18:54:28 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 18:54:29 +01:00
|
|
|
#BuildRequires: libmpi-devel
|
|
|
|
BuildRequires: perl >= %perl_major_ver
|
|
|
|
BuildRequires: gdb >= 6.3
|
2024-01-05 18:54:28 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Valgrind is a GPL'd system for debugging and profiling x86-Linux programs.
|
|
|
|
With the tools that come with Valgrind, you can automatically detect many memory management and threading bugs, avoiding hours of frustrating bug-hunting, making your programs more stable. You can also perform detailed profiling to help speed up your programs.
|
|
|
|
|
|
|
|
The Valgrind distribution includes five tools: two memory error detectors, a thread error detector, a cache profiler and a heap profiler.
|
|
|
|
Several other tools have been built with Valgrind.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Static libraries and headers for %{name}
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Valgrind is a GPL'd system for debugging and profiling x86-Linux programs.
|
|
|
|
With the tools that come with Valgrind, you can automatically detect many memory management and threading bugs, avoiding hours of frustrating bug-hunting, making your programs more stable. You can also perform detailed profiling to help speed up your programs.
|
|
|
|
The Valgrind distribution includes five tools: two memory error detectors, a thread error detector, a cache profiler and a heap profiler.
|
|
|
|
Several other tools have been built with Valgrind.
|
2024-01-05 18:54:29 +01:00
|
|
|
This package contains static libraries and header files needed for development.
|
2024-01-05 18:54:28 +01:00
|
|
|
|
2024-01-05 18:54:29 +01:00
|
|
|
%debug_package
|
2024-01-05 18:54:28 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 18:54:29 +01:00
|
|
|
#-D -T
|
|
|
|
#:<< ___EOF
|
2024-01-05 18:54:28 +01:00
|
|
|
#%patch0 -p1
|
|
|
|
#%patch1 -p1
|
2024-01-05 18:54:29 +01:00
|
|
|
%patch 2 -p1
|
2024-01-05 18:54:28 +01:00
|
|
|
# use our own find-requires
|
|
|
|
%define __find_provides %{_builddir}/%{name}-%{version}/find_provides.sh
|
|
|
|
|
2024-01-05 18:54:29 +01:00
|
|
|
# don't provide 'libpthread.so.0' library
|
2024-01-05 18:54:28 +01:00
|
|
|
cat > find_provides.sh << EOF
|
|
|
|
#! /bin/sh
|
|
|
|
%{_prefix}/lib/rpm/find-provides %{buildroot} %{_target_cpu} | \
|
|
|
|
grep -v "libpthread.so.0*"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x find_provides.sh
|
|
|
|
|
|
|
|
sed -i "s|armv7|arm|" configure.ac
|
|
|
|
|
|
|
|
autoreconf
|
2024-01-05 18:54:29 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
# NOTE: 3.6.1: mpi wrapper does not build with openmpi 4.0
|
2024-01-05 18:54:28 +01:00
|
|
|
%configure \
|
2024-01-05 18:54:29 +01:00
|
|
|
--with-mpicc=/bin/false \
|
2024-01-05 18:54:28 +01:00
|
|
|
%ifarch x86_64
|
|
|
|
--enable-only64bit
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
# note: do *not* strip the debug info off stage2 or libpthread.so
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
mv -f %{buildroot}%{_defaultdocdir}/%{name} \
|
|
|
|
%{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/callgrind_*
|
|
|
|
%{_bindir}/cg_annotate
|
|
|
|
%{_bindir}/cg_diff
|
|
|
|
%{_bindir}/cg_merge
|
|
|
|
%{_bindir}/valgrind
|
|
|
|
%{_bindir}/valgrind-di-server
|
|
|
|
%{_bindir}/valgrind-listener
|
|
|
|
%{_bindir}/ms_print
|
|
|
|
%{_bindir}/vgdb
|
2024-01-05 18:54:29 +01:00
|
|
|
%dir %{_libdir}/valgrind
|
2024-01-05 18:54:28 +01:00
|
|
|
%{_libdir}/valgrind/*
|
2024-01-05 18:54:29 +01:00
|
|
|
%dir %{_libexecdir}/valgrind
|
2024-01-05 18:54:29 +01:00
|
|
|
%{_libexecdir}/valgrind/*
|
2024-01-05 18:54:28 +01:00
|
|
|
%{_mandir}/man1/valgrind.*
|
|
|
|
%{_mandir}/man1/callgrind_*.1*
|
|
|
|
%{_mandir}/man1/cg_annotate.1*
|
|
|
|
%{_mandir}/man1/cg_diff.1*
|
|
|
|
%{_mandir}/man1/cg_merge.1*
|
|
|
|
%{_mandir}/man1/ms_print.1*
|
2024-01-05 18:54:29 +01:00
|
|
|
%{_mandir}/man1/valgrind-di-server.1*
|
2024-01-05 18:54:28 +01:00
|
|
|
%{_mandir}/man1/valgrind-listener.1*
|
|
|
|
%{_mandir}/man1/vgdb.1*
|
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/valgrind
|
|
|
|
%{_includedir}/valgrind/*
|
|
|
|
%{_libdir}/pkgconfig/valgrind.pc
|
2024-01-05 18:54:29 +01:00
|
|
|
%dir %{_docdir}/valgrind-%{version}
|
|
|
|
%{_docdir}/valgrind-%{version}/*
|
2024-01-05 18:54:28 +01:00
|
|
|
%doc FAQ.txt NEWS README*
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 18:54:29 +01:00
|
|
|
* Sat Apr 29 2023 Automatic Build System <autodist@mambasoft.it> 3.21.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:54:29 +01:00
|
|
|
* Tue Oct 25 2022 Automatic Build System <autodist@mambasoft.it> 3.20.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:54:29 +01:00
|
|
|
* Wed Apr 13 2022 Automatic Build System <autodist@mambasoft.it> 3.19.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:54:29 +01:00
|
|
|
* Sun Oct 17 2021 Automatic Build System <autodist@mambasoft.it> 3.18.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:54:29 +01:00
|
|
|
* Mon Mar 22 2021 Automatic Build System <autodist@mambasoft.it> 3.17.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:54:29 +01:00
|
|
|
* Fri Dec 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.16.1-1mamba
|
|
|
|
- update to 3.16.1
|
|
|
|
|
2024-01-05 18:54:29 +01:00
|
|
|
* Fri Oct 26 2018 Automatic Build System <autodist@mambasoft.it> 3.14.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:54:29 +01:00
|
|
|
* Wed Mar 21 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 3.13.0-1mamba
|
|
|
|
- update to 3.13.0
|
|
|
|
|
2024-01-05 18:54:29 +01:00
|
|
|
* Fri Oct 28 2016 Automatic Build System <autodist@mambasoft.it> 3.12.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:54:29 +01:00
|
|
|
* Fri Oct 02 2015 Automatic Build System <autodist@mambasoft.it> 3.11.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:54:28 +01:00
|
|
|
* Thu Nov 27 2014 Automatic Build System <autodist@mambasoft.it> 3.10.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:54:28 +01:00
|
|
|
* Tue Sep 16 2014 Automatic Build System <autodist@mambasoft.it> 3.10.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:54:28 +01:00
|
|
|
* Mon Nov 18 2013 Automatic Build System <autodist@mambasoft.it> 3.9.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Jan 01 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.8.1-2mamba
|
|
|
|
- rebuilt with libboost 1.52
|
|
|
|
|
|
|
|
* Fri Oct 12 2012 Automatic Build System <autodist@mambasoft.it> 3.8.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Aug 19 2012 Automatic Build System <autodist@mambasoft.it> 3.8.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Jul 24 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.0-2mamba
|
|
|
|
- rebuilt with glibc 2.15 (patch added)
|
|
|
|
|
|
|
|
* Thu Mar 15 2012 Automatic Build System <autodist@mambasoft.it> 3.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Feb 23 2011 Automatic Build System <autodist@mambasoft.it> 3.6.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Dec 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.0-1mamba
|
|
|
|
- update to 3.6.0
|
|
|
|
|
|
|
|
* Tue Sep 01 2009 Automatic Build System <autodist@mambasoft.it> 3.5.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Mar 20 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Jan 09 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Jul 16 2008 gil <puntogil@libero.it> 3.3.1-1mamba
|
|
|
|
- update to 3.3.1
|
|
|
|
- removed buildrequires: libXorg-devel
|
|
|
|
|
|
|
|
* Thu Jun 08 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 3.2.0-1qilnx
|
|
|
|
- update to version 3.2.0 by autospec
|
|
|
|
|
|
|
|
* Fri Sep 23 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.4.1-1qilnx
|
|
|
|
- update to version 2.4.1 by autospec
|
|
|
|
- created devel package
|
|
|
|
|
|
|
|
* Fri Dec 10 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.2.0-2qilnx
|
|
|
|
- removed `libpthread.so.0' from the list of the package provides
|
|
|
|
|
|
|
|
* Fri Dec 03 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.2.0-1qilnx
|
|
|
|
- package created by autospec
|