2006-12-19 00:17:32 +01:00
|
|
|
#
|
2011-03-23 09:19:34 +01:00
|
|
|
# spec file for package procps
|
2006-12-19 00:17:32 +01:00
|
|
|
#
|
2023-08-15 14:49:07 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2006-12-19 00:17:32 +01:00
|
|
|
#
|
2008-08-26 02:20: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.
|
|
|
|
|
2019-12-11 15:00:01 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:17:32 +01:00
|
|
|
#
|
|
|
|
|
2008-02-15 01:39:06 +01:00
|
|
|
|
2022-04-14 17:23:21 +02:00
|
|
|
%define somajor 8
|
|
|
|
%define libname libprocps%{somajor}
|
2023-01-09 11:22:42 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2017-06-29 10:30:44 +02:00
|
|
|
%bcond_with bin2usr
|
2020-11-20 14:11:33 +01:00
|
|
|
%else
|
|
|
|
%bcond_without bin2usr
|
|
|
|
%endif
|
2020-08-26 15:23:45 +02:00
|
|
|
%bcond_without pidof
|
2021-02-03 08:02:11 +01:00
|
|
|
%bcond_without nls
|
2006-12-19 00:17:32 +01:00
|
|
|
Name: procps
|
2022-04-14 17:23:21 +02:00
|
|
|
Version: 3.3.17
|
2012-06-04 16:22:08 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: The ps utilities for /proc
|
2018-04-04 15:18:39 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2017-06-29 10:30:44 +02:00
|
|
|
Group: System/Monitoring
|
2021-02-11 09:34:12 +01:00
|
|
|
URL: https://sf.net/projects/procps-ng/
|
2022-01-20 14:17:59 +01:00
|
|
|
Source: https://downloads.sourceforge.net/project/procps-ng/Production/procps-ng-%{version}.tar.xz
|
|
|
|
#Alternate: https://gitlab.com/procps-ng/procps/-/archive/v%{version}/procps-v%{version}.tar.gz
|
2018-04-05 11:47:29 +02:00
|
|
|
Source1: procps-rpmlintrc
|
2022-04-14 17:23:21 +02:00
|
|
|
Patch0: procps-ng-3.3.9-watch.patch
|
2012-06-04 16:22:08 +02:00
|
|
|
Patch1: procps-v3.3.3-ia64.diff
|
2014-05-20 18:01:01 +02:00
|
|
|
Patch3: procps-ng-3.3.9-w-notruncate.diff
|
2013-05-29 15:55:21 +02:00
|
|
|
Patch7: procps-ng-3.3.8-readeof.patch
|
2015-02-03 16:31:12 +01:00
|
|
|
Patch8: procps-ng-3.3.10-slab.patch
|
2022-04-14 17:23:21 +02:00
|
|
|
Patch10: procps-ng-3.3.8-accuracy.dif
|
2015-02-03 16:31:12 +01:00
|
|
|
Patch11: procps-ng-3.3.10-xen.dif
|
2022-04-14 17:23:21 +02:00
|
|
|
Patch12: procps-ng-3.3.10-fdleak.dif
|
2012-06-04 16:22:08 +02:00
|
|
|
Patch13: procps-v3.3.3-columns.dif
|
2022-04-14 17:23:21 +02:00
|
|
|
Patch14: procps-ng-3.3.10-integer-overflow.patch
|
|
|
|
Patch15: procps-ng-3.3.10-bnc634071_procstat2.diff
|
2013-05-29 15:55:21 +02:00
|
|
|
Patch16: procps-ng-3.3.8-bnc634840.patch
|
2012-06-04 16:22:08 +02:00
|
|
|
Patch17: procps-v3.3.3-read-sysctls-also-from-boot-sysctl.conf-kernelversion.diff
|
2013-05-29 15:55:21 +02:00
|
|
|
Patch18: procps-ng-3.3.8-petabytes.patch
|
2015-02-03 16:31:12 +01:00
|
|
|
Patch19: procps-ng-3.3.10-large_pcpu.patch
|
2013-05-29 15:55:21 +02:00
|
|
|
Patch20: procps-ng-3.3.8-tinfo.dif
|
2012-06-06 14:02:05 +02:00
|
|
|
Patch21: procps-v3.3.3-pwdx.patch
|
2013-08-02 15:03:50 +02:00
|
|
|
# PATCH-FIX-OPENSUSE -- trifle rest of the old terabyte patch
|
|
|
|
Patch28: procps-ng-3.3.8-vmstat-terabyte.dif
|
2014-03-25 14:45:53 +01:00
|
|
|
# PATCH-FIX-SUSE -- Ignore scan_unevictable_pages in sysctl
|
|
|
|
Patch31: procps-ng-3.3.8-ignore-scan_unevictable_pages.patch
|
2014-12-05 11:09:38 +01:00
|
|
|
# PATCH-FIX-SUSE -- Avoid errno set by setlocale()
|
2015-02-03 16:31:12 +01:00
|
|
|
Patch32: procps-ng-3.3.10-errno.patch
|
2021-03-31 12:27:27 +02:00
|
|
|
# PATCH-FEATURE-SUSE -- Let upstream pmap behave similar to old suse pmap
|
2016-01-27 11:03:19 +01:00
|
|
|
Patch33: procps-ng-3.3.11-pmap4suse.patch
|
2022-04-14 17:23:21 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- bsc#1181976
|
|
|
|
Patch34: procps-3.3.17-bsc1181976.patch
|
|
|
|
# PATCH-FIX-UPSTREAM -- bsc#1195468
|
|
|
|
Patch35: bsc1195468-23da4f40.patch
|
2023-08-15 14:49:07 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- bsc#1214290
|
|
|
|
Patch36: CVE-2023-4016.patch
|
2022-06-22 14:20:21 +02:00
|
|
|
# PATCH-BACKPORT-FROM-UPSTREAM -- bsc#1181475: 'free' command reports misleading "used" value
|
|
|
|
Patch42: procps-3.3.17-library-bsc1181475.patch
|
|
|
|
Patch43: procps-3.3.17-top-bsc1181475.patch
|
2023-08-18 10:10:13 +02:00
|
|
|
Patch44: procps-ng-3.3.17-logind.patch
|
2023-12-14 14:38:00 +01:00
|
|
|
Patch45: procps-3.3.17-ignore-sysctl_conf.patch
|
2017-06-29 10:30:44 +02:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: dejagnu
|
2018-04-05 11:47:29 +02:00
|
|
|
BuildRequires: diffutils
|
2017-06-29 10:30:44 +02:00
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: screen
|
|
|
|
BuildRequires: xz
|
2021-02-11 09:34:12 +01:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2017-06-29 10:30:44 +02:00
|
|
|
Provides: ps = %{version}-%{release}
|
|
|
|
Obsoletes: ps < %{version}-%{release}
|
2022-12-15 12:03:35 +01:00
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2017-06-29 10:30:44 +02:00
|
|
|
%ifarch ia64 x86_64 ppc64 ppc %{sparc}
|
|
|
|
BuildRequires: libnuma-devel
|
|
|
|
%endif
|
2021-02-03 08:02:11 +01:00
|
|
|
%lang_package
|
|
|
|
|
2006-12-19 00:17:32 +01:00
|
|
|
%description
|
|
|
|
The procps package contains a set of system utilities that provide
|
|
|
|
system information. Procps includes ps, free, skill, snice, tload, top,
|
|
|
|
uptime, vmstat, w, and watch. The ps command displays a snapshot of
|
|
|
|
running processes. The top command provides a repetitive update of the
|
|
|
|
statuses of running processes. The free command displays the amounts of
|
|
|
|
free and used memory on your system. The skill command sends a
|
|
|
|
terminate command (or another specified signal) to a specified set of
|
|
|
|
processes. The snice command is used to change the scheduling priority
|
|
|
|
of specified processes. The tload command prints a graph of the current
|
|
|
|
system load average to a specified tty. The uptime command displays the
|
|
|
|
current time, how long the system has been running, how many users are
|
|
|
|
logged on, and system load averages for the past one, five, and fifteen
|
|
|
|
minutes. The w command displays a list of the users who are currently
|
|
|
|
logged on and what they are running. The watch program watches a
|
|
|
|
running program. The vmstat command displays virtual memory statistics
|
|
|
|
about processes, memory, paging, block I/O, traps, and CPU activity.
|
|
|
|
|
2012-06-04 16:22:08 +02:00
|
|
|
%package devel
|
2018-04-06 10:14:13 +02:00
|
|
|
Summary: Development files for procps
|
2018-04-04 15:18:39 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2012-06-04 16:22:08 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-10-30 14:13:12 +01:00
|
|
|
Requires: %{libname} = %{version}
|
2012-06-04 16:22:08 +02:00
|
|
|
|
|
|
|
%description devel
|
2018-04-06 10:14:13 +02:00
|
|
|
The procps library can be used to read informations out from /proc
|
|
|
|
the process information pseudo-file system.
|
|
|
|
|
|
|
|
This subpackage contains the header files for libprocps.
|
2006-12-19 00:17:32 +01:00
|
|
|
|
2012-10-30 14:13:12 +01:00
|
|
|
%package -n %{libname}
|
2014-09-12 14:35:41 +02:00
|
|
|
Summary: The procps library
|
2018-04-04 15:18:39 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2012-06-04 16:22:08 +02:00
|
|
|
Group: System/Libraries
|
2006-12-19 00:17:32 +01:00
|
|
|
|
2012-10-30 14:13:12 +01:00
|
|
|
%description -n %{libname}
|
2014-09-12 14:35:41 +02:00
|
|
|
The procps library can be used to read informations out from /proc
|
2018-04-06 10:14:13 +02:00
|
|
|
the process information pseudo-file system.
|
2006-12-19 00:17:32 +01:00
|
|
|
|
|
|
|
%prep
|
2022-04-14 17:23:21 +02:00
|
|
|
%setup -q
|
2024-02-29 15:47:02 +01:00
|
|
|
%patch -P 0
|
|
|
|
%patch -P 1
|
|
|
|
%patch -P 3 -b .trcate
|
|
|
|
%patch -P 7 -b .rof
|
|
|
|
%patch -P 8 -b .cache
|
|
|
|
%patch -P 10 -b .acc
|
|
|
|
%patch -P 11
|
|
|
|
%patch -P 12
|
|
|
|
%patch -P 13 -b .column
|
|
|
|
%patch -P 14 -b .ovrflw
|
|
|
|
%patch -P 15
|
|
|
|
%patch -P 16
|
|
|
|
%patch -P 17 -b .sysctl
|
|
|
|
%patch -P 18
|
|
|
|
%patch -P 19
|
|
|
|
%patch -P 20
|
|
|
|
%patch -P 21
|
|
|
|
%patch -P 28
|
|
|
|
%patch -P 31 -p1
|
|
|
|
%patch -P 32
|
|
|
|
%patch -P 33 -b .pmap4us
|
|
|
|
%patch -P 34
|
|
|
|
%patch -P 35 -p1
|
|
|
|
%patch -P 36 -p0
|
|
|
|
%patch -P 42
|
|
|
|
%patch -P 43
|
|
|
|
%patch -P 44 -p1
|
|
|
|
%patch -P 45 -p1
|
2006-12-19 00:17:32 +01:00
|
|
|
|
|
|
|
%build
|
2012-06-06 13:44:52 +02:00
|
|
|
test -s .tarball-version || echo %{version} > .tarball-version
|
2013-05-29 15:55:21 +02:00
|
|
|
#./autogen.sh
|
2017-06-29 10:30:44 +02:00
|
|
|
autoreconf -fiv
|
|
|
|
major=$(sed -rn 's/^#define\s+NCURSES_VERSION_MAJOR\s+([0-9]+)/\1/p' %{_includedir}/ncurses.h)
|
2015-07-10 09:32:48 +02:00
|
|
|
export NCURSESW_CFLAGS="$(ncursesw${major}-config --cflags)"
|
|
|
|
export NCURSESW_LIBS="$(ncursesw${major}-config --libs)"
|
2012-10-30 14:13:12 +01:00
|
|
|
export LFS_CFLAGS="$(getconf LFS_CFLAGS)"
|
|
|
|
%global optflags %{optflags} -D_GNU_SOURCE $LFS_CFLAGS -DCPU_ZEROTICS -DUSE_X_COLHDR -pipe
|
2012-06-04 16:22:08 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
2021-02-03 08:02:11 +01:00
|
|
|
%if !%{with nls}
|
2012-06-04 16:22:08 +02:00
|
|
|
--disable-nls \
|
2021-02-03 08:02:11 +01:00
|
|
|
%endif
|
2012-06-04 16:22:08 +02:00
|
|
|
--disable-rpath \
|
|
|
|
--disable-kill \
|
2014-05-20 18:01:01 +02:00
|
|
|
%if !%{with pidof}
|
|
|
|
--disable-pidof \
|
|
|
|
%endif
|
2012-06-04 16:22:08 +02:00
|
|
|
--enable-watch8bit \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-skill \
|
|
|
|
--enable-w-from \
|
2013-05-29 15:55:21 +02:00
|
|
|
--enable-sigwinch \
|
|
|
|
--enable-wide-percent \
|
2014-05-15 14:14:34 +02:00
|
|
|
--enable-wide-memory \
|
2013-05-29 15:55:21 +02:00
|
|
|
--enable-w-from \
|
2013-08-30 17:29:12 +02:00
|
|
|
--enable-libselinux \
|
2012-06-04 16:22:08 +02:00
|
|
|
--with-pic=yes \
|
2013-05-29 15:55:21 +02:00
|
|
|
--with-systemd \
|
2015-07-07 13:49:48 +02:00
|
|
|
--with-gnu-ld \
|
|
|
|
--disable-modern-top
|
2021-02-11 09:34:12 +01:00
|
|
|
%make_build
|
2006-12-19 00:17:32 +01:00
|
|
|
|
2016-07-12 18:04:27 +02:00
|
|
|
LD_LIBRARY_PATH=$PWD/proc/.libs \
|
2013-10-07 14:40:09 +02:00
|
|
|
./pmap $$ || {
|
|
|
|
uname -a
|
|
|
|
echo /proc/$$/maps
|
|
|
|
cat /proc/$$/maps
|
|
|
|
echo /proc/$$/smaps
|
|
|
|
cat /proc/$$/smaps
|
|
|
|
exit 1
|
|
|
|
}
|
2013-09-30 15:07:47 +02:00
|
|
|
|
2006-12-19 00:17:32 +01:00
|
|
|
%install
|
2017-06-29 10:30:44 +02:00
|
|
|
%make_install
|
2012-06-04 16:22:08 +02:00
|
|
|
install -d %{buildroot}/bin
|
|
|
|
install -d %{buildroot}/sbin
|
2011-05-28 22:50:18 +02:00
|
|
|
|
2012-06-04 16:22:08 +02:00
|
|
|
# clean unwanted files (e.g. coreutils)
|
2017-06-29 10:30:44 +02:00
|
|
|
rm -f %{buildroot}%{_bindir}/kill
|
|
|
|
rm -f %{buildroot}%{_bindir}/uptime
|
2012-06-04 16:22:08 +02:00
|
|
|
rm -f %{buildroot}%{_mandir}/man1/kill.1
|
2021-03-11 07:47:32 +01:00
|
|
|
rm -f %{buildroot}%{_mandir}/*/man1/kill.1
|
2012-06-04 16:22:08 +02:00
|
|
|
rm -f %{buildroot}%{_mandir}/man1/uptime.1
|
2021-03-11 07:47:32 +01:00
|
|
|
rm -f %{buildroot}%{_mandir}/*/man1/uptime.1
|
2017-06-29 10:30:44 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2012-06-04 16:22:08 +02:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/procps-ng
|
|
|
|
|
2022-04-14 17:23:21 +02:00
|
|
|
if cmp -s %{buildroot}%{_mandir}/man1/procps.1 %{buildroot}%{_mandir}/man1/ps.1
|
2018-04-05 11:47:29 +02:00
|
|
|
then
|
2022-04-14 17:23:21 +02:00
|
|
|
rm -vf %{buildroot}%{_mandir}/man1/procps.1
|
|
|
|
(cat > %{buildroot}%{_mandir}/man1/procps.1)<<-'EOF'
|
|
|
|
.so man1/ps.1
|
2018-04-05 11:47:29 +02:00
|
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
2012-06-06 12:36:20 +02:00
|
|
|
%if %{with bin2usr}
|
2016-07-12 18:04:27 +02:00
|
|
|
#
|
|
|
|
# Identical binaries
|
|
|
|
#
|
|
|
|
if cmp -s %{buildroot}/%{_bindir}/pgrep %{buildroot}/%{_bindir}/pkill
|
|
|
|
then
|
|
|
|
rm -vf %{buildroot}/%{_bindir}/pkill
|
|
|
|
pushd %{buildroot}/%{_bindir}
|
|
|
|
ln pgrep pkill
|
|
|
|
popd
|
|
|
|
fi
|
|
|
|
if cmp -s %{buildroot}/%{_bindir}/snice %{buildroot}/%{_bindir}/skill
|
|
|
|
then
|
|
|
|
rm -vf %{buildroot}/%{_bindir}/skill
|
|
|
|
pushd %{buildroot}/%{_bindir}
|
|
|
|
ln snice skill
|
|
|
|
popd
|
|
|
|
fi
|
2023-01-09 11:22:42 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2012-06-06 12:36:20 +02:00
|
|
|
ln -s %{_bindir}/ps %{buildroot}/bin/
|
|
|
|
ln -s %{_bindir}/pgrep %{buildroot}/bin/
|
|
|
|
ln -s %{_bindir}/pkill %{buildroot}/bin/
|
|
|
|
ln -s %{_sbindir}/sysctl %{buildroot}/sbin/
|
2020-11-20 14:11:33 +01:00
|
|
|
%endif
|
2012-06-06 12:36:20 +02:00
|
|
|
%else
|
|
|
|
mv %{buildroot}%{_bindir}/ps %{buildroot}/bin/
|
|
|
|
mv %{buildroot}%{_bindir}/pgrep %{buildroot}/bin/
|
|
|
|
mv %{buildroot}%{_bindir}/pkill %{buildroot}/bin/
|
|
|
|
mv %{buildroot}%{_sbindir}/sysctl %{buildroot}/sbin/
|
2016-07-12 18:04:27 +02:00
|
|
|
#
|
|
|
|
# Identical binaries
|
|
|
|
#
|
|
|
|
if cmp -s %{buildroot}/bin/pgrep %{buildroot}/bin/pkill
|
|
|
|
then
|
|
|
|
rm -vf %{buildroot}/bin/pkill
|
|
|
|
pushd %{buildroot}/bin
|
|
|
|
ln pgrep pkill
|
|
|
|
popd
|
|
|
|
fi
|
|
|
|
if cmp -s %{buildroot}/%{_bindir}/snice %{buildroot}/%{_bindir}/skill
|
|
|
|
then
|
|
|
|
rm -vf %{buildroot}/%{_bindir}/skill
|
|
|
|
pushd %{buildroot}/%{_bindir}
|
|
|
|
ln snice skill
|
|
|
|
popd
|
|
|
|
fi
|
2012-06-04 16:22:08 +02:00
|
|
|
ln -s /bin/ps %{buildroot}%{_bindir}/ps
|
|
|
|
ln -s /bin/pgrep %{buildroot}%{_bindir}/pgrep
|
|
|
|
ln -s /bin/pkill %{buildroot}%{_bindir}/pkill
|
|
|
|
ln -s /sbin/sysctl %{buildroot}%{_sbindir}/sysctl
|
2012-06-06 12:36:20 +02:00
|
|
|
%endif
|
2021-02-10 11:58:18 +01:00
|
|
|
|
2021-02-11 09:34:12 +01:00
|
|
|
%find_lang procps-ng --with-man --all-name
|
2006-12-19 00:17:32 +01:00
|
|
|
|
2012-10-30 14:13:12 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2012-06-04 16:22:08 +02:00
|
|
|
|
2013-02-12 15:14:03 +01:00
|
|
|
%check
|
2016-07-12 18:04:27 +02:00
|
|
|
#
|
|
|
|
# Skip w test as there is no valid utmp
|
|
|
|
#
|
|
|
|
rm -rvf testsuite/w.test
|
|
|
|
#
|
|
|
|
# Provide a tty for testing
|
|
|
|
#
|
|
|
|
LANG=POSIX
|
|
|
|
LC_ALL=$LANG
|
|
|
|
unset LC_CTYPE
|
|
|
|
SCREENDIR=$(mktemp -d ${PWD}/screen.XXXXXX) || exit 1
|
|
|
|
SCREENRC=${SCREENDIR}/bash
|
|
|
|
export SCREENRC SCREENDIR
|
|
|
|
exec 0< /dev/null
|
|
|
|
SCREENLOG=${SCREENDIR}/log
|
|
|
|
cat > $SCREENRC<<-EOF
|
|
|
|
deflogin off
|
2017-01-19 13:39:38 +01:00
|
|
|
deflog on
|
2016-07-12 18:04:27 +02:00
|
|
|
logfile $SCREENLOG
|
|
|
|
logfile flush 1
|
|
|
|
logtstamp off
|
|
|
|
log on
|
|
|
|
setsid on
|
|
|
|
scrollback 0
|
|
|
|
silence on
|
|
|
|
utf8 on
|
|
|
|
EOF
|
|
|
|
TMPDIR=$(mktemp -d /tmp/bash.XXXXXXXXXX) || exit 1
|
|
|
|
> $SCREENLOG
|
|
|
|
tail -q -s 0.5 -f $SCREENLOG & pid=$!
|
|
|
|
env HOME=$PWD TERM=$TERM TMPDIR=$TMPDIR SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \
|
2017-01-19 13:39:38 +01:00
|
|
|
screen -D -m make check
|
2016-07-12 18:04:27 +02:00
|
|
|
kill -TERM $pid
|
2016-07-12 18:38:50 +02:00
|
|
|
error=no
|
|
|
|
for log in test-suite.log testsuite/*.log
|
|
|
|
do
|
|
|
|
if grep -E '^(XFAIL|FAIL|ERROR):' $log
|
|
|
|
then
|
|
|
|
cat $log
|
|
|
|
error=yes
|
|
|
|
fi
|
|
|
|
done
|
2021-07-02 15:51:30 +02:00
|
|
|
%if 0%{?qemu_user_space_build}
|
|
|
|
if test -x /usr/bin/qemu-%_build_arch
|
|
|
|
then
|
|
|
|
echo Do not fail as pgrep as well as ps will find unexpected qemu-%_build_arch on command lines
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
%endif
|
2016-07-12 18:38:50 +02:00
|
|
|
test $error = no || exit 1
|
2013-02-12 15:14:03 +01:00
|
|
|
|
2021-02-11 09:34:12 +01:00
|
|
|
%files
|
2006-12-19 00:17:32 +01:00
|
|
|
%defattr (-,root,root,755)
|
2018-02-27 10:46:50 +01:00
|
|
|
%license COPYING COPYING.LIB
|
|
|
|
%doc NEWS Documentation/bugs.md Documentation/FAQ
|
2012-06-06 12:36:20 +02:00
|
|
|
%if %{with bin2usr}
|
2023-01-09 11:22:42 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2012-06-06 12:36:20 +02:00
|
|
|
%verify(link) /bin/ps
|
|
|
|
%verify(link) /bin/pgrep
|
|
|
|
%verify(link) /bin/pkill
|
|
|
|
%verify(link) /sbin/sysctl
|
2020-11-20 14:11:33 +01:00
|
|
|
%endif
|
2012-06-06 12:36:20 +02:00
|
|
|
%{_bindir}/ps
|
|
|
|
%{_bindir}/pgrep
|
|
|
|
%{_bindir}/pkill
|
|
|
|
%{_sbindir}/sysctl
|
|
|
|
%else
|
2006-12-19 00:17:32 +01:00
|
|
|
/bin/ps
|
2009-08-14 15:07:13 +02:00
|
|
|
/bin/pgrep
|
|
|
|
/bin/pkill
|
2006-12-19 00:17:32 +01:00
|
|
|
/sbin/sysctl
|
2012-06-06 12:36:20 +02:00
|
|
|
%verify(link) %{_bindir}/ps
|
|
|
|
%verify(link) %{_bindir}/pgrep
|
|
|
|
%verify(link) %{_bindir}/pkill
|
|
|
|
%verify(link) %{_sbindir}/sysctl
|
|
|
|
%endif
|
|
|
|
%{_bindir}/free
|
2014-05-20 18:01:01 +02:00
|
|
|
%if %{with pidof}
|
|
|
|
%{_bindir}/pidof
|
|
|
|
%endif
|
2012-06-06 12:36:20 +02:00
|
|
|
%{_bindir}/pmap
|
2022-04-14 17:23:21 +02:00
|
|
|
%{_bindir}/pwait
|
2012-06-06 12:36:20 +02:00
|
|
|
%{_bindir}/pwdx
|
|
|
|
%{_bindir}/skill
|
|
|
|
%{_bindir}/slabtop
|
|
|
|
%{_bindir}/snice
|
|
|
|
%{_bindir}/tload
|
|
|
|
%{_bindir}/top
|
|
|
|
%{_bindir}/vmstat
|
|
|
|
%{_bindir}/w
|
|
|
|
%{_bindir}/watch
|
2021-02-11 09:34:12 +01:00
|
|
|
%{_mandir}/man1/free.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/pgrep.1%{?ext_man}
|
|
|
|
%if %{with pidof}
|
|
|
|
%{_mandir}/man1/pidof.1%{?ext_man}
|
|
|
|
%endif
|
|
|
|
%{_mandir}/man1/pkill.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/pmap.1%{?ext_man}
|
2022-04-14 17:23:21 +02:00
|
|
|
%{_mandir}/man1/procps.1%{?ext_man}
|
2021-02-11 09:34:12 +01:00
|
|
|
%{_mandir}/man1/ps.1%{?ext_man}
|
2022-04-14 17:23:21 +02:00
|
|
|
%{_mandir}/man1/pwait.1%{?ext_man}
|
2021-02-11 09:34:12 +01:00
|
|
|
%{_mandir}/man1/pwdx.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/skill.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/slabtop.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/snice.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/tload.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/top.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/w.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/watch.1%{?ext_man}
|
|
|
|
%{_mandir}/man5/sysctl.conf.5%{?ext_man}
|
|
|
|
%{_mandir}/man8/vmstat.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/sysctl.8%{?ext_man}
|
2007-12-12 18:18:44 +01:00
|
|
|
|
2012-06-04 16:22:08 +02:00
|
|
|
%files devel
|
|
|
|
%defattr (-,root,root,755)
|
2022-04-14 17:23:21 +02:00
|
|
|
%dir %{_includedir}/proc
|
|
|
|
%{_includedir}/proc/alloc.h
|
|
|
|
%{_includedir}/proc/devname.h
|
|
|
|
%{_includedir}/proc/escape.h
|
|
|
|
%{_includedir}/proc/numa.h
|
|
|
|
%{_includedir}/proc/procps.h
|
|
|
|
%{_includedir}/proc/pwcache.h
|
|
|
|
%{_includedir}/proc/readproc.h
|
|
|
|
%{_includedir}/proc/sig.h
|
|
|
|
%{_includedir}/proc/slab.h
|
|
|
|
%{_includedir}/proc/sysinfo.h
|
|
|
|
%{_includedir}/proc/version.h
|
|
|
|
%{_includedir}/proc/wchan.h
|
|
|
|
%{_includedir}/proc/whattime.h
|
|
|
|
%{_libdir}/libprocps.so
|
|
|
|
%{_libdir}/pkgconfig/libprocps.pc
|
|
|
|
%{_mandir}/man3/openproc.3%{?ext_man}
|
|
|
|
%{_mandir}/man3/readproc.3%{?ext_man}
|
|
|
|
%{_mandir}/man3/readproctab.3%{?ext_man}
|
2012-06-04 16:22:08 +02:00
|
|
|
|
2012-10-30 14:13:12 +01:00
|
|
|
%files -n %{libname}
|
2012-06-04 16:22:08 +02:00
|
|
|
%defattr (-,root,root,755)
|
2022-04-14 17:23:21 +02:00
|
|
|
%{_libdir}/libprocps.so.%{somajor}*
|
2012-06-04 16:22:08 +02:00
|
|
|
|
2021-02-11 09:34:12 +01:00
|
|
|
%files lang -f procps-ng.lang
|
2022-06-23 13:29:24 +02:00
|
|
|
%if 0%{?suse_version} < 1550
|
|
|
|
%dir %{_mandir}/uk/
|
|
|
|
%endif
|
2021-02-03 08:02:11 +01:00
|
|
|
|
2007-03-29 18:25:58 +02:00
|
|
|
%changelog
|