298a06
Summary: Utilities for managing processes on your system
298a06
Name: psmisc
298a06
Version: 22.20
298a06
Release: 9%{?dist}
298a06
License: GPLv2+
298a06
Group: Applications/System
298a06
URL: http://sourceforge.net/projects/psmisc
298a06
298a06
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
298a06
298a06
#The following has been reworked by upstream in a different way ... we'll see
298a06
#Patch1: psmisc-22.13-fuser-silent.patch
298a06
298a06
# Patch sent upstream 2012-10-08.
298a06
Patch2: psmisc-22.20-fix-selinux-in-pstree.patch
298a06
298a06
Patch3: psmisc-22.20-RH-man-page-scan.patch
298a06
298a06
Patch4: pstree-introduce-support-for-namespaces.patch
298a06
Patch5: pstree-introduce-namespace-transition-information.patch
298a06
Patch6: psmisc-22.20-null-ptr-dereference.patch
298a06
298a06
BuildRequires: libselinux-devel
298a06
BuildRequires: gettext
298a06
BuildRequires: ncurses-devel
298a06
BuildRequires: autoconf automake
298a06
298a06
298a06
%description
298a06
The psmisc package contains utilities for managing processes on your
298a06
system: pstree, killall and fuser.  The pstree command displays a tree
298a06
structure of all of the running processes on your system.  The killall
298a06
command sends a specified signal (SIGTERM if nothing is specified) to
298a06
processes identified by name.  The fuser command identifies the PIDs
298a06
of processes that are using specified files or filesystems.
298a06
298a06
%prep
298a06
%setup -q
298a06
298a06
%patch2 -p1
298a06
%patch3 -p1
298a06
%patch4 -p1
298a06
%patch5 -p1
298a06
%patch6 -p1
298a06
298a06
%build
298a06
%configure --prefix=%{_prefix} --enable-selinux
298a06
make %{?_smp_mflags}
298a06
298a06
%install
298a06
make install DESTDIR="$RPM_BUILD_ROOT"
298a06
298a06
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
298a06
mv $RPM_BUILD_ROOT%{_bindir}/fuser $RPM_BUILD_ROOT%{_sbindir}
298a06
298a06
%find_lang %name
298a06
298a06
%files -f %{name}.lang
298a06
%{_sbindir}/fuser
298a06
%{_bindir}/killall
298a06
%{_bindir}/pstree
298a06
%{_bindir}/pstree.x11
298a06
%{_bindir}/prtstat
298a06
%{_mandir}/man1/fuser.1*
298a06
%{_mandir}/man1/killall.1*
298a06
%{_mandir}/man1/pstree.1*
298a06
%{_mandir}/man1/prtstat.1*
298a06
%ifarch %{ix86} x86_64 ppc %{power64} %{arm} mipsel
298a06
%{_bindir}/peekfd
298a06
%endif
298a06
%{_mandir}/man1/peekfd.1*
298a06
%doc AUTHORS ChangeLog COPYING README
298a06
298a06
%changelog
298a06
* Sat Aug  2 2014 Peter Robinson <pbrobinson@redhat.com> 22.20-9
298a06
- Update ppc64 to power64 macro
298a06
- Resolves: rhbz#1125653
298a06
298a06
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 22.20-8
298a06
- Mass rebuild 2014-01-24
298a06
298a06
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 22.20-7
298a06
- Mass rebuild 2013-12-27
298a06
298a06
* Mon Oct 21 2013 Jaromir Capik <jcapik@redhat.com> - 22.20-6
298a06
- Fixing null pointer dereference introduced with namespaces
298a06
- Fixing bogus dates in the changelog
298a06
- Related: rhbz#980514
298a06
298a06
* Fri Oct 18 2013 Jaromir Capik <jcapik@redhat.com> - 22.20-5
298a06
- Moving fuser from /sbin to /usr/sbin
298a06
- Related: rhbz#980514
298a06
298a06
* Tue Sep 17 2013 Aristeu Rozanski <aris@redhat.com> - 22.20-4
298a06
- Introducing namespaces support (#980514)
298a06
298a06
* Tue Jul 30 2013 Jaromir Capik <jcapik@redhat.com> - 22.20-3
298a06
- RH man page scan (#948524)
298a06
298a06
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 22.20-2
298a06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
298a06
298a06
* Mon Oct 08 2012 Richard W.M. Jones <rjones@redhat.com> 22.20-1
298a06
- Update to 22.20.
298a06
  Contains a fix for: http://sourceforge.net/p/psmisc/bugs/53/
298a06
- Fix src/pstree.c when SELinux is available.
298a06
298a06
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 22.19-2
298a06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
298a06
298a06
* Thu Jun 28 2012 Jaromir Capik <jcapik@redhat.com> 22.19-1
298a06
- Update to 22.19 (#828244)
298a06
298a06
* Mon Mar 12 2012 Jaromir Capik <jcapik@redhat.com> 22.16-1
298a06
- Update to 22.16
298a06
298a06
* Fri Jan 27 2012 Jaromir Capik <jcapik@redhat.com> 22.15-1
298a06
- Update to 22.15
298a06
298a06
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 22.14-2
298a06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
298a06
298a06
* Tue Jul 19 2011 Jaromir Capik <jcapik@redhat.com> 22.14-1
298a06
- Update to 22.14
298a06
298a06
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 22.13-8
298a06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
298a06
298a06
* Thu Jan 27 2011 Jan Görig <jgorig@redhat.com> 22.13-7
298a06
- fix #671135 - peekfd utility doesn't work on ppc64 architecture
298a06
298a06
* Fri Jan 7 2011 Jan Görig <jgorig@redhat.com> 22.13-6
298a06
- fix #666213 - uninitialized memory leading to `killall -g name` failure
298a06
298a06
* Tue Nov 16 2010 Jan Görig <jgorig@redhat.com> 22.13-5
298a06
- fix #651794 - incorrect exit code of fuser -m -s
298a06
298a06
* Tue Oct 19 2010 Dan Horák <dan[at]danny.cz> 22.13-4
298a06
- peekfd still exists only on selected architectures
298a06
298a06
* Thu Oct 14 2010 Jan Görig <jgorig@redhat.com> 22.13-3
298a06
- fix #642800 - peekfd regression
298a06
298a06
* Wed Sep 29 2010 jkeating - 22.13-2
298a06
- Rebuilt for gcc bug 634757
298a06
298a06
* Thu Sep 16 2010 Jan Görig <jgorig@redhat.com> 22.13-1
298a06
- updated to new upstream version
298a06
- removed unused patch
298a06
- peekfd should work on all architectures now
298a06
- spec cleanups
298a06
298a06
* Tue May 25 2010 Jan Görig <jgorig@redhat.com> 22.10-1
298a06
- update to new upstream version
298a06
- remove unused patches
298a06
- docs are now in package
298a06
298a06
* Tue May 18 2010 Daniel Novotny <dnovotny@redhat.com> 22.6-14
298a06
- fix #588322 - fuser'ing a non-existent file yields two error messages
298a06
298a06
* Wed Aug 05 2009 Lubomir Rintel <lkundrak@v3.sk> - 22.6-13
298a06
- Fix a buffer overflow
298a06
298a06
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 22.6-12
298a06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
298a06
298a06
* Mon May 11 2009 Daniel Novotny <dnovotny@redhat.com> 22.6-11
298a06
- merge review (#226322): a few .spec changes
298a06
298a06
* Thu Apr 23 2009 Daniel Novotny <dnovotny@redhat.com> - 22.6-10
298a06
- fix #497303 -  fuser -m <dev> doesn't work after lazy unmount
298a06
298a06
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 22.6-9
298a06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
298a06
298a06
* Fri Aug 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> 22.6-8
298a06
- fix package so it builds again
298a06
298a06
* Fri Aug 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> 22.6-7
298a06
- fix license tag
298a06
298a06
* Mon Apr 14 2008 Tomas Smetana <tsmetana@redhat.com> 22.6-6
298a06
- fix #441871 - pstree fails to show most processes;
298a06
  patch by Emil Jerabek
298a06
298a06
* Mon Apr 07 2008 Tomas Smetana <tsmetana@redhat.com> 22.6-5
298a06
- fix configure.ac to include all the required headers for peekfd
298a06
- remove kernel-headers again -- not needed in rawhide
298a06
298a06
* Mon Apr 07 2008 Tomas Smetana <tsmetana@redhat.com> 22.6-4
298a06
- fix #440762 - add kernel-headers to build reuqirements
298a06
298a06
* Tue Feb 12 2008 Tomas Smetana <tsmetana@redhat.com> 22.6-3
298a06
- rebuild (gcc-4.3)
298a06
298a06
* Mon Dec 10 2007 Tomas Smetana <tsmetana@redhat.com> 22.6-2
298a06
- fix #417801 - exclude peekfd on secondary architectures
298a06
298a06
* Mon Dec 03 2007 Tomas Smetana <tsmetana@redhat.com> 22.6-1
298a06
- update to new upstream version
298a06
298a06
* Wed Aug 29 2007 Tomas Smetana <tsmetana@redhat.com> 22.5-2
298a06
- rebuild (because of BuildID)
298a06
298a06
* Thu Jun 07 2007 Tomas Smetana <tsmetana@redhat.com> 22.5-1.2
298a06
- exclude peekfd manpage on non-x86 archs
298a06
298a06
* Thu Jun 07 2007 Tomas Smetana <tsmetana@redhat.com> 22.5-1.1
298a06
- rebuild
298a06
298a06
* Wed Jun 06 2007 Tomas Smetana <tsmetana@redhat.com> 22.5-1
298a06
- update to new upstream version
298a06
298a06
* Thu Mar  1 2007 Karel Zak <kzak@redhat.com> 22.3-2
298a06
- fix #214214 - killall <path> misbehavior (prelink, etc)
298a06
298a06
* Thu Mar  1 2007 Karel Zak <kzak@redhat.com> 22.3-1
298a06
- update to upstream 22.3
298a06
- backport ipv6 bugfix from upstream CVS
298a06
- clean up spec file
298a06
298a06
* Wed Jul 19 2006 Karel Zak <kzak@redhat.com>  - 22.2-5
298a06
- spec file cleanup & rebuild
298a06
298a06
* Mon Jul 17 2006 Jesse Keating <jkeating@redhat.com> - 22.2-4
298a06
- rebuild
298a06
298a06
* Wed May 17 2006 Karel Zak <kzak@redhat.com> 22.2-2
298a06
- add BuildRequires: gettext-devel
298a06
- sync with upstream
298a06
298a06
* Wed Mar 22 2006 Karel Zak <kzak@redhat.com> 22.1.03072006cvs-1.1
298a06
- rebuild
298a06
298a06
* Tue Mar  7 2006 Karel Zak <kzak@redhat.com> 22.1.03072006cvs-1
298a06
- update to new upstream CVS version 
298a06
- enable new fuser version
298a06
- fix fuser return code 
298a06
- fix #183897 - "pstree -a" call results in segmentation fault
298a06
298a06
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 21.8-1.2.1
298a06
- bump again for double-long bug on ppc(64)
298a06
298a06
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 21.8-1.2
298a06
- rebuilt for new gcc4.1 snapshot and glibc changes
298a06
298a06
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
298a06
- rebuilt
298a06
298a06
* Wed Nov 30 2005 Karel Zak <kzak@redhat.com> 21.8-1
298a06
- fix #174585 - killall crashes on long variable name
298a06
- spec file cleanup
298a06
298a06
* Wed Oct  5 2005 Karel Zak <kzak@redhat.com> 21.7-1.cvs20051005
298a06
- sync with upstream CVS
298a06
- use old version of fuser
298a06
298a06
* Thu Sep  8 2005 Karel Zak <kzak@redhat.com> 21.6-1
298a06
- sync with upstream release 21.6
298a06
- cleanup selinux patch
298a06
- fix #165167 - buffer overflow detected in fuser
298a06
298a06
* Sat Mar  5 2005 Karel Zak <kzak@redhat.com> 21.5-4
298a06
- fixed problem with perl expression in the build .spec section
298a06
298a06
* Sat Mar  5 2005 Karel Zak <kzak@redhat.com> 21.5-3
298a06
- rebuilt
298a06
298a06
* Tue Dec 14 2004 Karel Zak <kzak@redhat.com> 21.5-2
298a06
- use other way for psmisc-21.5-term.patch
298a06
298a06
* Mon Dec 13 2004 Karel Zak <kzak@redhat.com> 21.5-1
298a06
- Updated to new upstream version 21.5
298a06
- Ported SELinux patch forward as psmisc-21.5-selinux.patch
298a06
- Added psmisc-21.5-term.patch that fix termcap.h and term.h conflicts
298a06
298a06
* Fri Sep 24 2004 Mike A. Harris <mharris@redhat.com> 21.4-4
298a06
- Added "BuildRequires: libselinux-devel" for WITH_SELINUX builds (#123754)
298a06
298a06
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> 21.4-3
298a06
- rebuilt
298a06
298a06
* Mon Mar 15 2004 Mike A. Harris <mharris@redhat.com> 21.4-2
298a06
- Re-enabled SELINUX support
298a06
- Removed gcc33 patch, no longer needed it seems.
298a06
298a06
* Mon Mar 15 2004 Mike A. Harris <mharris@redhat.com> 21.4-1
298a06
- Updated to new upstream version 21.4
298a06
- Ported SELinux patch forward as psmisc-21.4-redhat-selinux-psmisc.patch,
298a06
  but disabled SELINUX support temporarily until other build problems are
298a06
  resolved
298a06
- Remove MKINSTALLDIRS-./mkinstalldirs from "make install" as that causes the
298a06
  build to fail when "./" changes.  If this option is ever added back, make
298a06
  it relative to $RPM_BUILD_DIR instead of ./ so that things do not break
298a06
- Added pstree.x11 to file list after rpm reported it present in buildroot but
298a06
  not packaged
298a06
298a06
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 21.3-8
298a06
- rebuilt
298a06
298a06
* Mon Jan 26 2004 Dan Walsh <dwalsh@redhat.com> 21.3-7
298a06
- fix is_selinux_enabled call
298a06
298a06
* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 21.3-6.sel
298a06
- turn on selinux
298a06
- Hack to fix build problem on Fedora core
298a06
298a06
* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 21.3-6
298a06
- turn off selinux
298a06
298a06
* Thu Aug 28 2003 Dan Walsh <dwalsh@redhat.com> 21.3-5.sel
298a06
- change flags to -Z and build for selinux
298a06
298a06
* Mon Jul 28 2003 Dan Walsh <dwalsh@redhat.com> 21.3-4
298a06
- Remove -lsecure check from configure.
298a06
298a06
* Mon Jul 28 2003 Dan Walsh <dwalsh@redhat.com> 21.3-2
298a06
- Added SELinux patches
298a06
298a06
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
298a06
- rebuilt
298a06
298a06
* Thu May 29 2003 Mike A. Harris <mharris@redhat.com> 21.3-1.RHEL.0
298a06
- Bump to 21.3-1.RHEL.0 and rebuild for Red Hat Enterprise Linux
298a06
298a06
* Thu May 29 2003 Mike A. Harris <mharris@redhat.com> 21.3-1
298a06
- Updated to new upstream version 21.3
298a06
- Removed dead script gensig.sh
298a06
- Disabled psmisc-21.2-gcc33.patch as it is included in 21.3
298a06
298a06
* Thu May 22 2003 Jeremy Katz <katzj@redhat.com> 21.2-5
298a06
- fix build with gcc 3.3
298a06
298a06
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
298a06
- rebuilt
298a06
298a06
* Wed Nov 13 2002 Mike A. Harris <mharris@redhat.com> 21.2-3
298a06
- Remove pidof manpage from buildroot by adding with_pidof conditional
298a06
- _bindir cleanup
298a06
298a06
* Wed Nov 13 2002 Mike A. Harris <mharris@redhat.com> 21.2-2
298a06
- Updated to new upstream version 21.2
298a06
- Updated Source: URL to sourceforge's current ftp area
298a06
- Fixes fuser largefile bug (#66340)
298a06
- Disable prep time sh %%{SOURCE1} >src/signames.h as the 21.2 release
298a06
  fixes this already now.
298a06
298a06
* Tue Oct  8 2002 Mike A. Harris <mharris@redhat.com> 20.2-7
298a06
- All-arch rebuild
298a06
- Updated spec file with _bindir et al. fixes.
298a06
298a06
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 20.2-6
298a06
- automated rebuild
298a06
298a06
* Sun May 26 2002 Tim Powers <timp@redhat.com> 20.2-5
298a06
- automated rebuild
298a06
298a06
* Thu May 16 2002 Bernhard Rosenkraenzer <bero@redhat.com> 20.2-4
298a06
- Autogenerate the signal list from _includedir/bits/signum.h
298a06
  to make sure it works on all arches and doesn't break again.
298a06
298a06
* Wed May  8 2002 Trond Eivind Glomsrod <teg@redhat.com> 20.2-3
298a06
- Fix the signal list
298a06
- Don't strip when linking
298a06
- Use a %%{_tmppath}
298a06
298a06
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
298a06
- automated rebuild
298a06
298a06
* Tue Nov 20 2001 Bernhard Rosenkraenzer <bero@redhat.com> 20.2-1
298a06
- 20.2
298a06
- Add patch from bug report #56186; the problem is not reproducable,
298a06
  but the patch can't hurt.
298a06
298a06
* Sat Jul 21 2001 Bernhard Rosenkraenzer <bero@redhat.com> 20.1-2
298a06
- Add BuildRequires (#49562)
298a06
- s/Copyright/License/
298a06
- Fix license (it's actually dual-licensed BSD/GPL, not just "distributable")
298a06
298a06
* Wed Apr 25 2001 Bernhard Rosenkraenzer <bero@redhat.com> 20.1-1
298a06
- 20.1
298a06
298a06
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
298a06
- automatic rebuild
298a06
298a06
* Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
298a06
- FHS man paths
298a06
- patch makefile to enable non-root builds
298a06
298a06
* Sat Feb  5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
298a06
- Deal with compressed man pages
298a06
298a06
* Sun Nov 21 1999 Bernhard Rosenkraenzer <bero@redhat.com>
298a06
- update to v19
298a06
- handle RPM_OPT_FLAGS
298a06
298a06
* Mon Sep 27 1999 Bill Nottingham <notting@redhat.com>
298a06
- move fuser to /sbin
298a06
298a06
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
298a06
- auto rebuild in the new build environment (release 2)
298a06
298a06
* Sat Mar 13 1999 Michael Maher <mike@redhat.com>
298a06
- updated package
298a06
298a06
* Fri May 01 1998 Prospector System <bugs@redhat.com>
298a06
- translations modified for de, fr, tr
298a06
298a06
* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
298a06
- renamed the patch file .patch instead of .spec
298a06
298a06
* Thu Apr 09 1998 Erik Troan <ewt@redhat.com>
298a06
- updated to psmisc version 17
298a06
- buildrooted
298a06
298a06
* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
298a06
- updated from version 11 to version 16
298a06
- spec file cleanups
298a06
298a06
* Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
298a06
- built against glibc