File fatrace.spec of Package fatrace

# spec file for package fatrace
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Philipp Thomas <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           fatrace
Version:        0.13
Release:        0
Summary:        System wide file access event reporting utility
License:        GPL-3.0-or-later
Group:          System/Monitoring
BuildRequires:  glibc-devel

The fatrace trace uses fanotify, a couple of /proc lookups and some
glue to trace file access events system-wide, in an effort to
identify processes which keep waking up the disk even when the
computer is idle.

By default, it monitors the whole system, i.e. all mounts except
virtual ones like /proc, tmpfs, etc. It can be told to monitor just
the mount of the current directory. The log can be written to a file
and runtime be capped. Optional time stamps and PID filters are also

%setup -q

make %{?_smp_mflags} CFLAGS="%{optflags}" PREFIX="%{_prefix}"

%make_install CFLAGS="%{optflags}" PREFIX="%{_prefix}"

%license COPYING
%doc NEWS