2006-12-19 00:17:33 +01:00
|
|
|
#
|
2010-09-20 15:48:26 +02:00
|
|
|
# spec file for package psmisc (Version 22.13)
|
2006-12-19 00:17:33 +01:00
|
|
|
#
|
2010-02-12 08:00:38 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:33 +01:00
|
|
|
#
|
2008-08-08 02:14:10 +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:33 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-05-22 04:14:34 +02:00
|
|
|
|
2006-12-19 00:17:33 +01:00
|
|
|
Name: psmisc
|
2007-04-26 18:58:12 +02:00
|
|
|
BuildRequires: gcc-c++ glibc-devel ncurses-devel
|
2008-08-22 20:17:12 +02:00
|
|
|
BuildRequires: libselinux-devel
|
2007-10-05 00:38:28 +02:00
|
|
|
Url: http://switch.dl.sourceforge.net/sourceforge/psmisc/
|
2010-02-12 08:00:38 +01:00
|
|
|
License: GPLv2+
|
2006-12-19 00:17:33 +01:00
|
|
|
Group: System/Monitoring
|
|
|
|
PreReq: %fillup_prereq %insserv_prereq
|
2010-09-20 15:48:26 +02:00
|
|
|
Version: 22.13
|
2010-10-15 16:44:11 +02:00
|
|
|
Release: 2
|
2006-12-19 00:17:33 +01:00
|
|
|
Provides: ps:/usr/bin/killall
|
|
|
|
Summary: Utilities for managing processes on your system
|
2010-09-20 15:48:26 +02:00
|
|
|
Source: http://switch.dl.sourceforge.net/sourceforge/psmisc/%{name}-%{version}.tar.bz2
|
2010-10-15 16:44:11 +02:00
|
|
|
Patch0: %name-22.13.dif
|
2010-07-13 18:50:33 +02:00
|
|
|
Patch1: %name-22.12-tigetstr.patch
|
|
|
|
Patch2: %name-22.12-pstree_overflow.patch
|
|
|
|
Patch3: %name-22.12-pstree.patch
|
|
|
|
Patch4: %name-22.12-leaks.patch
|
2011-02-08 17:55:25 +01:00
|
|
|
Patch5: %name-22.13-nfs4fuser.patch
|
2010-07-13 18:50:33 +02:00
|
|
|
Patch6: %name-22.12-writeonly.patch
|
2010-10-15 16:44:11 +02:00
|
|
|
Patch7: %name-22.13-peekfd-segv.patch
|
2010-07-13 18:50:33 +02:00
|
|
|
|
2006-12-19 00:17:33 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-07-13 18:50:33 +02:00
|
|
|
%define nopeek s390 s390x ia64 %sparc hppa
|
2006-12-19 00:17:33 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The psmisc package contains utilities for managing processes on your
|
|
|
|
system: pstree, killall and fuser. The pstree command displays a tree
|
|
|
|
structure of all of the running processes on your system. The killall
|
|
|
|
command sends a specified signal (SIGTERM if nothing is specified) to
|
|
|
|
processes identified by name. The fuser command identifies the PIDs of
|
|
|
|
processes that are using specified files or filesystems.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-07-13 18:50:33 +02:00
|
|
|
%patch1 -p0 -b .tigetstr
|
|
|
|
%patch2 -p0 -b .pstreeovfl
|
|
|
|
%patch3 -p0 -b .pstree
|
|
|
|
%patch4 -p0 -b .leaks
|
|
|
|
%patch5 -p0 -b .nfs4fuser
|
|
|
|
%patch6 -p0 -b .wrtonly
|
2010-10-15 16:44:11 +02:00
|
|
|
%patch7 -p1 -b .peekfd
|
2011-02-08 17:55:25 +01:00
|
|
|
%patch0 -p0 -b .0
|
2006-12-19 00:17:33 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
2010-07-13 18:50:33 +02:00
|
|
|
CFLAGS="-D_GNU_SOURCE ${RPM_OPT_FLAGS} -pipe"
|
2007-04-26 15:51:55 +02:00
|
|
|
CXXFLAGS="$CFLAGS"
|
2006-12-19 00:17:33 +01:00
|
|
|
CC=gcc
|
2007-04-26 15:51:55 +02:00
|
|
|
CXX=g++
|
|
|
|
export CFLAGS CXXFLAGS CC CXX
|
2008-08-22 20:17:12 +02:00
|
|
|
sh ./configure --prefix=%{_prefix} --mandir=%{_mandir} --enable-selinux
|
2010-06-28 23:24:20 +02:00
|
|
|
make %{?_smp_mflags} CFLAGS="$CFLAGS" "CC=$CC"
|
2006-12-19 00:17:33 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/bin/
|
|
|
|
mv $RPM_BUILD_ROOT/usr/bin/fuser $RPM_BUILD_ROOT/bin/
|
2007-04-26 18:58:12 +02:00
|
|
|
%ifarch %nopeek
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/peekfd.1*
|
|
|
|
%endif
|
2006-12-19 00:17:33 +01:00
|
|
|
%find_lang psmisc
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f psmisc.lang
|
|
|
|
%defattr (-,root,root,755)
|
|
|
|
/bin/fuser
|
|
|
|
%{_bindir}/killall
|
2007-04-26 18:58:12 +02:00
|
|
|
%ifnarch %nopeek
|
2007-04-26 15:51:55 +02:00
|
|
|
%{_bindir}/peekfd
|
2007-04-26 18:58:12 +02:00
|
|
|
%endif
|
2010-07-13 18:50:33 +02:00
|
|
|
%{_bindir}/prtstat
|
2006-12-19 00:17:33 +01:00
|
|
|
%{_bindir}/pstree
|
|
|
|
%{_bindir}/pstree.x11
|
|
|
|
%{_mandir}/man1/fuser.1*
|
|
|
|
%{_mandir}/man1/killall.1*
|
2007-04-26 18:58:12 +02:00
|
|
|
%ifnarch %nopeek
|
2007-04-26 15:51:55 +02:00
|
|
|
%{_mandir}/man1/peekfd.1*
|
2007-04-26 18:58:12 +02:00
|
|
|
%endif
|
2010-07-13 18:50:33 +02:00
|
|
|
%{_mandir}/man1/prtstat.1*
|
2006-12-19 00:17:33 +01:00
|
|
|
%{_mandir}/man1/pstree.1*
|
2007-12-19 22:14:01 +01:00
|
|
|
|
2007-03-29 18:26:08 +02:00
|
|
|
%changelog
|