# # spec file for package exmap (Version 0.10) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: exmap BuildRequires: boost-devel c++_compiler gtkmm2-devel kernel-default kernel-source kernel-syms pcre-devel ExclusiveArch: %ix86 x86_64 %define kernel_version %(uname -r) %define kernel_version_ %(uname -r|tr - _) %define prefix /usr Summary: Memory analysis tool Version: 0.10 Release: 1 License: GPL Group: Development/Tools/Debuggers Url: http://www.berthels.co.uk/exmap/ Source: %name-%version.tgz Source1: exmap Patch1: kernel_path.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Exmap is a memory analysis tool which allows you to accurately determine how much physical memory and swap is used by individual processes and shared libraries on a running system. In particular, it accounts for the sharing of memory and swap between different processes. Authors: -------- John Berthels (jjberthels@gmail.com) %prep %setup -q %patch1 %build export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS" make %install rm -rf $RPM_BUILD_ROOT; mkdir -p $RPM_BUILD_ROOT/usr/lib/exmap install -m 0644 kernel/exmap.ko $RPM_BUILD_ROOT/usr/lib/exmap mkdir -p $RPM_BUILD_ROOT/usr/bin install -m 755 src/gexmap $RPM_BUILD_ROOT/usr/bin install -m 755 src/exmtool $RPM_BUILD_ROOT/usr/bin install -m 755 %SOURCE1 $RPM_BUILD_ROOT/usr/bin %clean rm -rf $RPM_BUILD_ROOT; %files %defattr(-,root,root) %doc COPYING README %prefix/bin/* %dir %prefix/lib/exmap %prefix/lib/exmap/exmap.ko %changelog