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