2014-09-08 09:25:31 +02:00
|
|
|
#
|
|
|
|
# spec file for package ftop
|
|
|
|
#
|
2022-04-22 15:09:00 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2014-09-08 09:25:31 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-04-22 15:09:00 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-09-08 09:25:31 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ftop
|
|
|
|
Version: 1.0
|
|
|
|
Release: 0
|
|
|
|
Summary: Open File Monitoring
|
2022-04-22 15:09:00 +02:00
|
|
|
License: GPL-3.0-only
|
2014-09-08 09:25:31 +02:00
|
|
|
Group: System/Monitoring
|
2022-04-22 15:09:00 +02:00
|
|
|
URL: https://code.google.com/p/ftop/
|
2014-09-08 09:25:31 +02:00
|
|
|
Source: http://ftop.googlecode.com/files/ftop-%{version}.tar.bz2
|
|
|
|
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
|
2010-06-15 21:55:05 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch1
|
|
|
|
%patch2
|
2010-06-15 23:21:53 +02:00
|
|
|
%patch3
|
2010-06-15 21:55:05 +02:00
|
|
|
|
|
|
|
%build
|
2022-04-22 15:09:00 +02:00
|
|
|
autoreconf -vfi
|
2010-06-15 21:55:05 +02:00
|
|
|
export CFLAGS="%{optflags} -Wall -DHAVE_LIBCURSES=1"
|
|
|
|
export CPPFLAGS="$CFLAGS"
|
|
|
|
%configure
|
2014-09-08 09:25:31 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-06-15 21:55:05 +02:00
|
|
|
|
|
|
|
%install
|
2014-09-08 09:25:31 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2010-06-15 21:55:05 +02:00
|
|
|
|
|
|
|
%files
|
2022-04-22 15:09:00 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ChangeLog NEWS README
|
2010-06-15 21:55:05 +02:00
|
|
|
%{_bindir}/ftop
|
2022-04-22 15:09:00 +02:00
|
|
|
%{_mandir}/man1/ftop.1%{?ext_man}
|
2010-06-15 21:55:05 +02:00
|
|
|
|
|
|
|
%changelog
|