--- /dev/null
+--- valgrind-3.15.0/dhat/Makefile.am.orig 2019-04-13 12:56:21.000000000 +0200
++++ valgrind-3.15.0/dhat/Makefile.am 2019-06-08 21:33:09.268983176 +0200
+@@ -9,7 +9,7 @@
+ #----------------------------------------------------------------------------
+
+ # Ensure the viewer components get copied into the install tree.
+-dhatdir = $(pkglibexecdir)
++dhatdir = $(pkgdatadir)
+ dhat_DATA = dh_view.html dh_view.css dh_view.js
+
+ #----------------------------------------------------------------------------
# Source0-md5: 46e5fbdcbc3502a5976a317a0860a975
Patch0: %{name}-native-cpuid.patch
Patch1: %{name}-ld_linux_strlen.patch
+Patch2: %{name}-datadir.patch
URL: http://valgrind.org/
BuildRequires: autoconf >= 2.50
BuildRequires: automake >= 1:1.10
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.ac
%{_libdir}/%{name}/*.xml
%{_libdir}/%{name}/default.supp
%{_libdir}/%{name}/lib*-linux.a
-%{_libexecdir}/%{name}
+%{_datadir}/%{name}
%{_includedir}/valgrind
%{_mandir}/man1/callgrind_annotate.1*
%{_mandir}/man1/callgrind_control.1*