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
|
|
|
#
|
2013-01-14 16:37:41 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2006-12-19 00:17:32 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-02-15 01:39:06 +01:00
|
|
|
|
2012-06-06 12:36:20 +02:00
|
|
|
%bcond_with bin2usr
|
2012-10-30 14:13:12 +01:00
|
|
|
%define somajor 1
|
|
|
|
%define libname libprocps%{somajor}
|
2012-07-05 10:16:03 +02:00
|
|
|
|
2006-12-19 00:17:32 +01:00
|
|
|
Name: procps
|
2013-05-29 15:55:21 +02:00
|
|
|
#Also: http://gitorious.org/procps/
|
2013-01-14 16:37:41 +01:00
|
|
|
Url: http://sf.net/projects/procps-ng/
|
2013-01-15 12:12:06 +01:00
|
|
|
BuildRequires: automake
|
2013-05-29 21:06:12 +02:00
|
|
|
%ifarch ia64 x86_64 ppc64 ppc %sparc
|
2013-05-29 21:03:43 +02:00
|
|
|
BuildRequires: libnuma-devel
|
2013-05-29 21:06:12 +02:00
|
|
|
%endif
|
2013-01-15 12:12:06 +01:00
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: pkg-config
|
2013-05-29 21:34:18 +02:00
|
|
|
%if 0%{?suse_version} > 1230
|
2013-05-29 15:55:21 +02:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
%endif
|
|
|
|
BuildRequires: xz
|
|
|
|
Version: 3.3.8
|
2012-06-04 16:22:08 +02:00
|
|
|
Release: 0
|
2013-05-29 21:16:43 +02:00
|
|
|
Provides: ps = %version-%release
|
|
|
|
Obsoletes: ps < %version-%release
|
|
|
|
Requires(post): %fillup_prereq
|
|
|
|
Requires(post): %insserv_prereq
|
|
|
|
Requires(postun): %insserv_prereq
|
2012-06-04 16:22:08 +02:00
|
|
|
Summary: The ps utilities for /proc
|
2013-02-12 15:14:03 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2006-12-19 00:17:32 +01:00
|
|
|
Group: System/Monitoring
|
2013-05-29 15:55:21 +02:00
|
|
|
Source: http://downloads.sourceforge.net/project/procps-ng/Production/procps-ng-3.3.8.tar.xz
|
2012-06-05 14:47:25 +02:00
|
|
|
Source1: procps-pmap-legacy.tar.bz2
|
|
|
|
Source2: boot.sysctl
|
|
|
|
Source3: systat.xinetd
|
2013-05-29 15:55:21 +02:00
|
|
|
Patch0: procps-ng-3.3.8-watch.patch
|
2012-06-04 16:22:08 +02:00
|
|
|
Patch1: procps-v3.3.3-ia64.diff
|
2012-10-30 14:13:12 +01:00
|
|
|
Patch2: procps-v3.3.4-stealtime.patch
|
|
|
|
Patch3: procps-v3.3.4-w-notruncate.diff
|
|
|
|
Patch4: procps-v3.3.4-w-simply-work.diff
|
2013-05-29 15:55:21 +02:00
|
|
|
Patch5: procps-ng-3.3.8-top.1.diff
|
2012-06-04 16:22:08 +02:00
|
|
|
Patch6: procps-v3.3.3-buffersize.diff
|
2013-05-29 15:55:21 +02:00
|
|
|
Patch7: procps-ng-3.3.8-readeof.patch
|
2012-06-04 16:22:08 +02:00
|
|
|
Patch8: procps-v3.3.3-slab.patch
|
2013-05-29 15:55:21 +02:00
|
|
|
Patch9: procps-ng-3.3.8-selinux.patch
|
|
|
|
Patch10: procps-ng-3.3.8-accuracy.dif
|
2012-10-30 14:13:12 +01:00
|
|
|
Patch11: procps-v3.3.4-xen.dif
|
2012-06-04 16:22:08 +02:00
|
|
|
Patch12: procps-v3.3.3-fdleak.dif
|
|
|
|
Patch13: procps-v3.3.3-columns.dif
|
|
|
|
Patch14: procps-v3.3.3-integer-overflow.patch
|
2013-05-29 15:55:21 +02:00
|
|
|
Patch15: procps-ng-3.3.8-bnc634071_procstat2.diff
|
|
|
|
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
|
2012-10-30 14:13:12 +01:00
|
|
|
Patch19: procps-v3.3.4-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-06-21 16:17:27 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- Add the major version to dlopen of libnuma
|
|
|
|
Patch22: 0001-top-add-the-major-version-to-dlopen-of-libnuma-sonam.patch
|
2013-06-26 16:20:23 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- Use common mdoc nroff macros
|
|
|
|
Patch23: 0001-top-trade-two-groff_mdoc-macros-for-groff-equivalent.patch
|
|
|
|
# PATCH-FIX-UPSTREAM -- Let libproc support EPIPE in close_stream
|
|
|
|
Patch24: 0002-library-for-atexit-support-fix-fileutils-for-EPIPE.patch
|
2013-07-25 13:52:54 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- Do not clear screen after end-of-job
|
|
|
|
Patch25: 0001-top-enable-screen-contents-preservation-at-endofjob.patch
|
|
|
|
# PATCH-FIX-UPSTREAM -- Cursor repositioning includes line oriented input
|
|
|
|
Patch26: 0002-top-cursor-repositioning-includes-line-oriented-inpu.patch
|
|
|
|
# PATCH-FIX-UPSTREAM -- Suppress end-of-job report if top if not ended with 'q' key
|
|
|
|
Patch27: 0001-top-refine-some-miscellaneous-signals-interrupt-stuf.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
|
2006-12-19 00:17:32 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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
|
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2013-02-12 15:14:03 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
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
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
2006-12-19 00:17:32 +01:00
|
|
|
|
2012-10-30 14:13:12 +01:00
|
|
|
%package -n %{libname}
|
2012-06-04 16:22:08 +02:00
|
|
|
Summary: The props library
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/Libraries
|
2013-05-29 21:16:43 +02:00
|
|
|
Requires(post): /sbin/ldconfig
|
|
|
|
Requires(postun): /sbin/ldconfig
|
2006-12-19 00:17:32 +01:00
|
|
|
|
2012-10-30 14:13:12 +01:00
|
|
|
%description -n %{libname}
|
2012-06-04 16:22:08 +02:00
|
|
|
The props library can be used to read informations out from /proc
|
|
|
|
the process information pseudo-file system,
|
2006-12-19 00:17:32 +01:00
|
|
|
|
|
|
|
%prep
|
2013-05-29 15:55:21 +02:00
|
|
|
%setup -q -n %{name}-ng-%{version}
|
2012-06-04 16:22:08 +02:00
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
|
|
|
%patch4
|
|
|
|
%patch5
|
|
|
|
%patch6
|
|
|
|
%patch7
|
|
|
|
%patch8
|
|
|
|
%patch9
|
|
|
|
%patch10
|
|
|
|
%patch11
|
|
|
|
%patch12
|
|
|
|
%patch13
|
|
|
|
%patch14
|
|
|
|
%patch15
|
|
|
|
%patch16
|
2006-12-19 00:17:32 +01:00
|
|
|
%patch17
|
|
|
|
%patch18
|
2012-06-04 16:22:08 +02:00
|
|
|
%patch19
|
2007-12-12 18:18:44 +01:00
|
|
|
%patch20
|
2012-06-06 14:02:05 +02:00
|
|
|
%patch21
|
2013-06-21 16:17:27 +02:00
|
|
|
%patch22 -p1
|
2013-06-26 16:20:23 +02:00
|
|
|
%patch23 -p1
|
|
|
|
%patch24 -p1
|
2013-07-25 13:52:54 +02:00
|
|
|
%patch25 -p1
|
|
|
|
%patch26 -p1
|
|
|
|
%patch27 -p1
|
2013-08-02 15:03:50 +02:00
|
|
|
%patch28
|
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
|
|
|
|
autoreconf
|
2012-06-04 16:22:08 +02:00
|
|
|
export NCURSESW_CFLAGS="$(ncursesw5-config --cflags)"
|
|
|
|
export NCURSESW_LIBS="$(ncursesw5-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 \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-kill \
|
|
|
|
--enable-watch8bit \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-skill \
|
|
|
|
--enable-oomem \
|
|
|
|
--enable-w-from \
|
2013-05-29 15:55:21 +02:00
|
|
|
--enable-sigwinch \
|
|
|
|
--enable-wide-percent \
|
|
|
|
--enable-w-from \
|
2012-06-04 16:22:08 +02:00
|
|
|
--with-pic=yes \
|
2013-05-29 21:34:18 +02:00
|
|
|
%if 0%{?suse_version} > 1230
|
2013-05-29 15:55:21 +02:00
|
|
|
--with-systemd \
|
2013-05-29 21:34:18 +02:00
|
|
|
%else
|
|
|
|
--without-systemd \
|
2013-05-29 15:55:21 +02:00
|
|
|
%endif
|
2012-06-04 16:22:08 +02:00
|
|
|
--with-gnu-ld
|
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:17:32 +01:00
|
|
|
|
|
|
|
%install
|
2012-06-04 16:22:08 +02:00
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
install -d %{buildroot}/etc/xinetd.d
|
|
|
|
install -d %{buildroot}/bin
|
|
|
|
install -d %{buildroot}/sbin
|
2013-02-12 15:14:03 +01:00
|
|
|
%if 0%{?suse_version} < 1230
|
|
|
|
install -d %{buildroot}/etc/init.d
|
2012-06-05 14:47:25 +02:00
|
|
|
install -m 755 %{S:2} %{buildroot}/etc/init.d
|
2013-02-12 15:14:03 +01:00
|
|
|
%endif
|
2012-06-05 14:47:25 +02:00
|
|
|
install -m 644 %{S:3} %{buildroot}/etc/xinetd.d/systat
|
2011-05-28 22:50:18 +02:00
|
|
|
|
2012-06-04 16:22:08 +02:00
|
|
|
# clean unwanted files (e.g. coreutils)
|
|
|
|
rm -f %{buildroot}/usr/bin/kill
|
|
|
|
rm -f %{buildroot}/usr/bin/uptime
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/kill.1
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/uptime.1
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/procps-ng
|
|
|
|
|
2012-06-06 12:36:20 +02:00
|
|
|
%if %{with bin2usr}
|
|
|
|
ln -s %{_bindir}/ps %{buildroot}/bin/
|
|
|
|
ln -s %{_bindir}/pgrep %{buildroot}/bin/
|
|
|
|
ln -s %{_bindir}/pkill %{buildroot}/bin/
|
|
|
|
ln -s %{_sbindir}/sysctl %{buildroot}/sbin/
|
|
|
|
%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/
|
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
|
2006-12-19 00:17:32 +01:00
|
|
|
|
|
|
|
%post
|
2013-02-12 15:14:03 +01:00
|
|
|
%if 0%{?suse_version} < 1230
|
2006-12-19 00:17:32 +01:00
|
|
|
%{fillup_and_insserv -ny boot.sysctl boot.sysctl}
|
2013-02-12 15:14:03 +01:00
|
|
|
%endif
|
2011-05-28 22:50:18 +02:00
|
|
|
#
|
2006-12-19 00:17:32 +01:00
|
|
|
%postun
|
|
|
|
%insserv_cleanup
|
|
|
|
|
2012-10-30 14:13:12 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
2012-06-04 16:22:08 +02:00
|
|
|
|
2012-10-30 14:13:12 +01:00
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2012-06-04 16:22:08 +02:00
|
|
|
|
2013-02-12 15:14:03 +01:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2006-12-19 00:17:32 +01:00
|
|
|
%files
|
|
|
|
%defattr (-,root,root,755)
|
2012-06-04 16:22:08 +02:00
|
|
|
%doc NEWS README COPYING Documentation/BUGS Documentation/FAQ top/README.top
|
2013-02-12 15:14:03 +01:00
|
|
|
%if 0%{?suse_version} < 1230
|
2006-12-19 00:17:32 +01:00
|
|
|
%config /etc/init.d/boot.sysctl
|
2013-02-12 15:14:03 +01:00
|
|
|
%endif
|
2006-12-19 00:17:32 +01:00
|
|
|
%config(noreplace) /etc/xinetd.d/systat
|
2012-06-06 12:36:20 +02:00
|
|
|
%if %{with bin2usr}
|
|
|
|
%verify(link) /bin/ps
|
|
|
|
%verify(link) /bin/pgrep
|
|
|
|
%verify(link) /bin/pkill
|
|
|
|
%verify(link) /sbin/sysctl
|
|
|
|
%{_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
|
|
|
|
%{_bindir}/pmap
|
|
|
|
%{_bindir}/pwdx
|
|
|
|
%{_bindir}/skill
|
|
|
|
%{_bindir}/slabtop
|
|
|
|
%{_bindir}/snice
|
|
|
|
%{_bindir}/tload
|
|
|
|
%{_bindir}/top
|
|
|
|
%{_bindir}/vmstat
|
|
|
|
%{_bindir}/w
|
|
|
|
%{_bindir}/watch
|
2006-12-19 00:17:32 +01:00
|
|
|
%_mandir/man1/free.1.gz
|
|
|
|
%_mandir/man1/pgrep.1.gz
|
|
|
|
%_mandir/man1/pkill.1.gz
|
|
|
|
%_mandir/man1/pmap.1.gz
|
|
|
|
%_mandir/man1/ps.1.gz
|
|
|
|
%_mandir/man1/pwdx.1.gz
|
|
|
|
%_mandir/man1/skill.1.gz
|
|
|
|
%_mandir/man1/slabtop.1.gz
|
|
|
|
%_mandir/man1/snice.1.gz
|
|
|
|
%_mandir/man1/tload.1.gz
|
|
|
|
%_mandir/man1/top.1.gz
|
|
|
|
%_mandir/man1/w.1.gz
|
|
|
|
%_mandir/man1/watch.1.gz
|
|
|
|
%_mandir/man5/sysctl.conf.5.gz
|
|
|
|
%_mandir/man8/vmstat.8.gz
|
|
|
|
%_mandir/man8/sysctl.8.gz
|
2007-12-12 18:18:44 +01:00
|
|
|
|
2012-06-04 16:22:08 +02:00
|
|
|
%files devel
|
|
|
|
%defattr (-,root,root,755)
|
|
|
|
%dir %{_includedir}/proc
|
|
|
|
%{_includedir}/proc/alloc.h
|
|
|
|
%{_includedir}/proc/devname.h
|
|
|
|
%{_includedir}/proc/escape.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
|
2012-06-05 14:47:25 +02:00
|
|
|
%{_libdir}/pkgconfig/libprocps.pc
|
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)
|
2013-05-29 15:55:21 +02:00
|
|
|
%{_libdir}/libprocps.so.%{somajor}*
|
2012-06-04 16:22:08 +02:00
|
|
|
|
2007-03-29 18:25:58 +02:00
|
|
|
%changelog
|