220 lines
7.3 KiB
RPMSpec
220 lines
7.3 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: valgrind
|
|
Version: 3.24.0
|
|
Release: 1mamba
|
|
Summary: Valgrind Memory Debugger
|
|
Group: Development/Tools
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://valgrind.org/
|
|
Source: ftp://sourceware.org/pub/valgrind/valgrind-%{version}.tar.bz2
|
|
Patch0: %{name}-3.7.0-x86_64-fix-gcc-detection.patch
|
|
Patch1: %{name}-3.7.0-glibc-2.15.patch
|
|
Patch2: valgrind-3.16.1-respect-flags-mpi.patch
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
#BuildRequires: libmpi-devel
|
|
BuildRequires: perl >= %perl_major_ver
|
|
BuildRequires: gdb >= 6.3
|
|
|
|
%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.
|
|
This package contains static libraries and header files needed for development.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
#-D -T
|
|
#:<< ___EOF
|
|
#%patch0 -p1
|
|
#%patch1 -p1
|
|
%patch 2 -p1
|
|
# use our own find-requires
|
|
%define __find_provides %{_builddir}/%{name}-%{version}/find_provides.sh
|
|
|
|
# don't provide 'libpthread.so.0' library
|
|
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
|
|
|
|
%build
|
|
# NOTE: 3.6.1: mpi wrapper does not build with openmpi 4.0
|
|
%configure \
|
|
--with-mpicc=/bin/false \
|
|
%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
|
|
%dir %{_libdir}/valgrind
|
|
%{_libdir}/valgrind/*
|
|
%dir %{_libexecdir}/valgrind
|
|
%{_libexecdir}/valgrind/*
|
|
%{_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*
|
|
%{_mandir}/man1/valgrind-di-server.1*
|
|
%{_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
|
|
%dir %{_docdir}/valgrind-%{version}
|
|
%{_docdir}/valgrind-%{version}/*
|
|
%doc FAQ.txt NEWS README*
|
|
|
|
%changelog
|
|
* Sat Nov 02 2024 Automatic Build System <autodist@openmamba.org> 3.24.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Apr 27 2024 Automatic Build System <autodist@openmamba.org> 3.23.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Nov 01 2023 Automatic Build System <autodist@mambasoft.it> 3.22.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Apr 29 2023 Automatic Build System <autodist@mambasoft.it> 3.21.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Oct 25 2022 Automatic Build System <autodist@mambasoft.it> 3.20.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Apr 13 2022 Automatic Build System <autodist@mambasoft.it> 3.19.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Oct 17 2021 Automatic Build System <autodist@mambasoft.it> 3.18.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Mar 22 2021 Automatic Build System <autodist@mambasoft.it> 3.17.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Dec 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.16.1-1mamba
|
|
- update to 3.16.1
|
|
|
|
* Fri Oct 26 2018 Automatic Build System <autodist@mambasoft.it> 3.14.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Mar 21 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 3.13.0-1mamba
|
|
- update to 3.13.0
|
|
|
|
* Fri Oct 28 2016 Automatic Build System <autodist@mambasoft.it> 3.12.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Oct 02 2015 Automatic Build System <autodist@mambasoft.it> 3.11.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Nov 27 2014 Automatic Build System <autodist@mambasoft.it> 3.10.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Sep 16 2014 Automatic Build System <autodist@mambasoft.it> 3.10.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* 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
|