File ftop.spec of Package ftop

# spec file for package ftop
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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:           ftop
Version:        1.0
Release:        0
Summary:        Open File Monitoring
License:        GPL-3.0
Group:          System/Monitoring
Patch1:         ftop-ncurses.patch
Patch2:         ftop-fix_buffer_overflow.patch
Patch3:         ftop-fix_printf_format.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  libtool
BuildRequires:  make
BuildRequires:  ncurses-devel
BuildRequires:  pkgconfig
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Ftop is to files what top is to processes. The progress of all open files and
file systems can be monitored. If run as a regular user, the set of open files
will be limited to those in that user's processes (which is generally all that
is of interest to the user). In any case, the selection of which files to
display is possible through a wide assortment of options. As with top, the
items are displayed in order from most to least active.

%setup -q

export CFLAGS="%{optflags} -Wall -DHAVE_LIBCURSES=1"
make %{?_smp_mflags}

make DESTDIR=%{buildroot} install %{?_smp_mflags}

%doc %{_mandir}/man1/ftop.1%{ext_man}

openSUSE Build Service is sponsored by