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