[packages/valgrind] - versioned Obsoletes - use arm macro - support any _libexecdir variant
qboosh
qboosh at pld-linux.org
Sat Apr 10 10:03:18 CEST 2021
commit 09b8d42f5a00c8a23224c1fa8dd43dbcad34968e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Apr 10 10:03:22 2021 +0200
- versioned Obsoletes
- use arm macro
- support any _libexecdir variant
valgrind.spec | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/valgrind.spec b/valgrind.spec
index 159cb89..0d02255 100644
--- a/valgrind.spec
+++ b/valgrind.spec
@@ -16,7 +16,7 @@ Source0: https://sourceware.org/pub/valgrind/%{name}-%{version}.tar.bz2
Patch0: %{name}-native-cpuid.patch
Patch1: %{name}-ld_linux_strlen.patch
Patch2: %{name}-datadir.patch
-URL: http://valgrind.org/
+URL: https://www.valgrind.org/
BuildRequires: autoconf >= 2.50
BuildRequires: automake >= 1:1.10
BuildRequires: gcc >= 5:3.0
@@ -28,9 +28,9 @@ BuildRequires: glibc-devel >= 6:2.2
BuildRequires: libgomp-devel
BuildRequires: libstdc++-devel
%{?with_mpi:BuildRequires: mpi-devel}
-Obsoletes: valgrind-callgrind
-Obsoletes: valgrind-calltree
-ExclusiveArch: %{ix86} %{x8664} arm ppc ppc64 s390x x32 aarch64
+Obsoletes: valgrind-callgrind < 0.11
+Obsoletes: valgrind-calltree < 0.10
+ExclusiveArch: %{ix86} %{x8664} %{arm} ppc ppc64 s390x x32 aarch64
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautostrip .*/vgpreload.*\\.so
@@ -76,7 +76,7 @@ ac_cv_path_GDB=/usr/bin/gdb \
%if "%{_lib}" != "lib"
--enable-only64bit \
%endif \
- --enable-lto=yes \
+ --enable-lto \
LDFLAGS="" # no strip!
%{__make}
@@ -114,7 +114,9 @@ rm -rf $RPM_BUILD_ROOT
# TODO: subpackage?
%attr(755,root,root) %{_libdir}/%{name}/libmpiwrap-*-linux.so
%endif
+%if "%{_libexecdir}" != "%{_libdir}"
%dir %{_libexecdir}/%{name}
+%endif
%attr(755,root,root) %{_libexecdir}/%{name}/*-linux
%attr(755,root,root) %{_libexecdir}/%{name}/vgpreload_*-linux.so
%{_libexecdir}/%{name}/*.xml
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/valgrind.git/commitdiff/09b8d42f5a00c8a23224c1fa8dd43dbcad34968e
More information about the pld-cvs-commit
mailing list