2004-09-09 10:52:17 +00:00
|
|
|
|
%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1}
|
|
|
|
|
%define WITH_SELINUX 1
|
|
|
|
|
%endif
|
2004-09-09 10:49:43 +00:00
|
|
|
|
%define with_pidof 0
|
|
|
|
|
|
2004-09-09 10:47:38 +00:00
|
|
|
|
Summary: Utilities for managing processes on your system.
|
|
|
|
|
Name: psmisc
|
2004-09-09 10:53:39 +00:00
|
|
|
|
Version: 21.4
|
2004-09-09 10:54:14 +00:00
|
|
|
|
Release: 3
|
2004-09-09 10:48:16 +00:00
|
|
|
|
License: BSD/GPL
|
2004-09-09 10:47:38 +00:00
|
|
|
|
Group: Applications/System
|
2004-09-09 10:49:43 +00:00
|
|
|
|
Source: ftp://ftp.sf.net/pub/sourceforge/psmisc/psmisc-%{version}.tar.gz
|
2004-09-09 10:48:56 +00:00
|
|
|
|
Patch0: psmisc-20.2-56186.patch
|
2004-09-09 10:53:39 +00:00
|
|
|
|
Patch2: psmisc-21.4-redhat-selinux-psmisc.patch
|
2004-09-09 10:49:43 +00:00
|
|
|
|
URL: http://psmisc.sourceforge.net
|
2004-09-09 10:48:56 +00:00
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
2004-09-09 10:48:16 +00:00
|
|
|
|
BuildRequires: libtermcap-devel
|
2004-09-09 10:47:38 +00: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
|
2004-09-09 10:47:58 +00:00
|
|
|
|
%setup -q
|
2004-09-09 10:48:56 +00:00
|
|
|
|
%patch0 -p1 -b .56186
|
2004-09-09 10:52:17 +00:00
|
|
|
|
%if %{WITH_SELINUX}
|
2004-09-09 10:53:39 +00:00
|
|
|
|
%patch2 -p1 -b .redhat-selinux-psmisc
|
2004-09-09 10:52:17 +00:00
|
|
|
|
%endif
|
2004-09-09 10:47:38 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2004-09-09 10:48:56 +00:00
|
|
|
|
|
2004-09-09 10:48:51 +00:00
|
|
|
|
perl -pi -e "s,^CFLAGS =,CFLAGS = $RPM_OPT_FLAGS -D_GNU_SOURCE,g" */Makefile.*
|
2004-09-09 10:49:43 +00:00
|
|
|
|
|
2004-09-09 10:53:39 +00:00
|
|
|
|
# FIXME: Is --prefix actually necessary here? I think it's redundant... test later...
|
2004-09-09 10:52:17 +00:00
|
|
|
|
%if %{WITH_SELINUX}
|
|
|
|
|
%configure --prefix=/usr --enable-selinux
|
|
|
|
|
%else
|
|
|
|
|
%configure --prefix=/usr
|
|
|
|
|
%endif
|
2004-09-09 10:48:56 +00:00
|
|
|
|
make
|
2004-09-09 10:47:38 +00:00
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 10:53:39 +00:00
|
|
|
|
# The rpm makeinstall macro breaks the build, so we do it the old way
|
|
|
|
|
make install DESTDIR="$RPM_BUILD_ROOT"
|
2004-09-09 10:49:43 +00:00
|
|
|
|
|
2004-09-09 10:47:38 +00:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
2004-09-09 10:49:43 +00:00
|
|
|
|
mv $RPM_BUILD_ROOT%{_bindir}/fuser $RPM_BUILD_ROOT/sbin
|
|
|
|
|
%if ! %{with_pidof}
|
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/pidof.1*
|
|
|
|
|
%endif
|
|
|
|
|
|
2004-09-09 10:48:51 +00:00
|
|
|
|
%find_lang %name
|
2004-09-09 10:47:38 +00:00
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
2004-09-09 10:49:43 +00:00
|
|
|
|
%files -f %{name}.lang
|
2004-09-09 10:47:38 +00:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
/sbin/fuser
|
2004-09-09 10:49:43 +00:00
|
|
|
|
%{_bindir}/killall
|
|
|
|
|
%{_bindir}/pstree
|
2004-09-09 10:53:39 +00:00
|
|
|
|
%{_bindir}/pstree.x11
|
2004-09-09 10:47:38 +00:00
|
|
|
|
%{_mandir}/man1/fuser.1*
|
|
|
|
|
%{_mandir}/man1/killall.1*
|
|
|
|
|
%{_mandir}/man1/pstree.1*
|
2004-09-09 10:49:43 +00:00
|
|
|
|
%if %{with_pidof}
|
|
|
|
|
%{_mandir}/man1/pidof.1*
|
|
|
|
|
%endif
|
2004-09-09 10:47:38 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 10:54:14 +00:00
|
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
2004-09-09 10:53:39 +00:00
|
|
|
|
* Sun Mar 15 2004 Mike A. Harris <mharris@redhat.com> 21.4-2
|
|
|
|
|
- Re-enabled SELINUX support
|
|
|
|
|
- Removed gcc33 patch, no longer needed it seems.
|
|
|
|
|
|
|
|
|
|
* Sun Mar 15 2004 Mike A. Harris <mharris@redhat.com> 21.4-1
|
|
|
|
|
- Updated to new upstream version 21.4
|
|
|
|
|
- Ported SELinux patch forward as psmisc-21.4-redhat-selinux-psmisc.patch,
|
|
|
|
|
but disabled SELINUX support temporarily until other build problems are
|
|
|
|
|
resolved
|
|
|
|
|
- Remove MKINSTALLDIRS-./mkinstalldirs from "make install" as that causes the
|
|
|
|
|
build to fail when "./" changes. If this option is ever added back, make
|
|
|
|
|
it relative to $RPM_BUILD_DIR instead of ./ so that things do not break
|
|
|
|
|
- Added pstree.x11 to file list after rpm reported it present in buildroot but
|
|
|
|
|
not packaged
|
|
|
|
|
|
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 21.3-8
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
2004-09-09 10:52:17 +00:00
|
|
|
|
* Mon Jan 26 2004 Dan Walsh <dwalsh@redhat.com> 21.3-7
|
|
|
|
|
- fix is_selinux_enabled call
|
|
|
|
|
|
|
|
|
|
* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 21.3-6.sel
|
|
|
|
|
- turn on selinux
|
|
|
|
|
- Hack to fix build problem on Fedora core
|
|
|
|
|
|
|
|
|
|
* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 21.3-6
|
|
|
|
|
- turn off selinux
|
|
|
|
|
|
|
|
|
|
* Thu Aug 28 2003 Dan Walsh <dwalsh@redhat.com> 21.3-5.sel
|
|
|
|
|
- change flags to -Z and build for selinux
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2003 Dan Walsh <dwalsh@redhat.com> 21.3-4
|
|
|
|
|
- Remove -lsecure check from configure.
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2003 Dan Walsh <dwalsh@redhat.com> 21.3-2
|
|
|
|
|
- Added SELinux patches
|
|
|
|
|
|
2004-09-09 10:51:12 +00:00
|
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
|
|
* Thu May 29 2003 Mike A. Harris <mharris@redhat.com> 21.3-1.RHEL.0
|
|
|
|
|
- Bump to 21.3-1.RHEL.0 and rebuild for Red Hat Enterprise Linux
|
|
|
|
|
|
|
|
|
|
* Thu May 29 2003 Mike A. Harris <mharris@redhat.com> 21.3-1
|
|
|
|
|
- Updated to new upstream version 21.3
|
|
|
|
|
- Removed dead script gensig.sh
|
|
|
|
|
- Disabled psmisc-21.2-gcc33.patch as it is included in 21.3
|
|
|
|
|
|
|
|
|
|
* Thu May 22 2003 Jeremy Katz <katzj@redhat.com> 21.2-5
|
|
|
|
|
- fix build with gcc 3.3
|
|
|
|
|
|
2004-09-09 10:49:43 +00:00
|
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
|
|
* Wed Nov 13 2002 Mike A. Harris <mharris@redhat.com> 21.2-3
|
|
|
|
|
- Remove pidof manpage from buildroot by adding with_pidof conditional
|
|
|
|
|
- _bindir cleanup
|
|
|
|
|
|
|
|
|
|
* Wed Nov 13 2002 Mike A. Harris <mharris@redhat.com> 21.2-2
|
|
|
|
|
- Updated to new upstream version 21.2
|
|
|
|
|
- Updated Source: URL to sourceforge's current ftp area
|
|
|
|
|
- Fixes fuser largefile bug (#66340)
|
|
|
|
|
- Disable prep time sh %%{SOURCE1} >src/signames.h as the 21.2 release
|
|
|
|
|
fixes this already now.
|
|
|
|
|
|
|
|
|
|
* Tue Oct 8 2002 Mike A. Harris <mharris@redhat.com> 20.2-7
|
|
|
|
|
- All-arch rebuild
|
|
|
|
|
- Updated spec file with _bindir et al. fixes.
|
|
|
|
|
|
|
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 20.2-6
|
2004-09-09 10:49:22 +00:00
|
|
|
|
- automated rebuild
|
|
|
|
|
|
2004-09-09 10:49:43 +00:00
|
|
|
|
* Sun May 26 2002 Tim Powers <timp@redhat.com> 20.2-5
|
2004-09-09 10:49:09 +00:00
|
|
|
|
- automated rebuild
|
|
|
|
|
|
2004-09-09 10:48:56 +00:00
|
|
|
|
* Thu May 16 2002 Bernhard Rosenkraenzer <bero@redhat.com> 20.2-4
|
|
|
|
|
- Autogenerate the signal list from %{_includedir}/bits/signum.h
|
|
|
|
|
to make sure it works on all arches and doesn't break again.
|
|
|
|
|
|
|
|
|
|
* Wed May 8 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 20.2-3
|
|
|
|
|
- Fix the signal list
|
|
|
|
|
- Don't strip when linking
|
|
|
|
|
- Use a %%{_tmppath}
|
|
|
|
|
|
2004-09-09 10:48:51 +00:00
|
|
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 20 2001 Bernhard Rosenkraenzer <bero@redhat.com> 20.2-1
|
|
|
|
|
- 20.2
|
|
|
|
|
- Add patch from bug report #56186; the problem is not reproducable,
|
|
|
|
|
but the patch can't hurt.
|
|
|
|
|
|
2004-09-09 10:48:16 +00:00
|
|
|
|
* Sat Jul 21 2001 Bernhard Rosenkraenzer <bero@redhat.com> 20.1-2
|
|
|
|
|
- Add BuildRequires (#49562)
|
|
|
|
|
- s/Copyright/License/
|
|
|
|
|
- Fix license (it's actually dual-licensed BSD/GPL, not just "distributable")
|
|
|
|
|
|
2004-09-09 10:47:58 +00:00
|
|
|
|
* Wed Apr 25 2001 Bernhard Rosenkraenzer <bero@redhat.com> 20.1-1
|
|
|
|
|
- 20.1
|
|
|
|
|
|
2004-09-09 10:47:38 +00:00
|
|
|
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
|
|
|
|
|
- FHS man paths
|
|
|
|
|
- patch makefile to enable non-root builds
|
|
|
|
|
|
|
|
|
|
* Sat Feb 5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Deal with compressed man pages
|
|
|
|
|
|
|
|
|
|
* Sun Nov 21 1999 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- update to v19
|
|
|
|
|
- handle RPM_OPT_FLAGS
|
|
|
|
|
|
|
|
|
|
* Mon Sep 27 1999 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- move fuser to /sbin
|
|
|
|
|
|
|
|
|
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- auto rebuild in the new build environment (release 2)
|
|
|
|
|
|
|
|
|
|
* Sat Mar 13 1999 Michael Maher <mike@redhat.com>
|
|
|
|
|
- updated package
|
|
|
|
|
|
|
|
|
|
* Fri May 01 1998 Prospector System <bugs@redhat.com>
|
|
|
|
|
- translations modified for de, fr, tr
|
|
|
|
|
|
|
|
|
|
* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- renamed the patch file .patch instead of .spec
|
|
|
|
|
|
|
|
|
|
* Thu Apr 09 1998 Erik Troan <ewt@redhat.com>
|
|
|
|
|
- updated to psmisc version 17
|
|
|
|
|
- buildrooted
|
|
|
|
|
|
|
|
|
|
* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
|
|
|
|
|
- updated from version 11 to version 16
|
|
|
|
|
- spec file cleanups
|
|
|
|
|
|
|
|
|
|
* Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
|
- built against glibc
|