117 lines
3.5 KiB
RPMSpec
117 lines
3.5 KiB
RPMSpec
|
Name: psmisc
|
||
|
Version: 22.21
|
||
|
Release: 1mamba
|
||
|
Summary: Small utilities that use the /proc filesystem
|
||
|
Group: System/Tools
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://psmisc.sourceforge.net/
|
||
|
Source: http://downloads.sourceforge.net/psmisc/psmisc-%{version}.tar.gz
|
||
|
Patch0: psmisc-22.20-selinux-scontext.patch
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libncurses-devel
|
||
|
%if "%{stage1}" != "1"
|
||
|
BuildRequires: libselinux-devel
|
||
|
%endif
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: gettext-devel
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%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
|
||
|
#%patch0 -p1
|
||
|
|
||
|
%build
|
||
|
%configure \
|
||
|
%if "%{stage1}" != "1"
|
||
|
--enable-selinux \
|
||
|
%endif
|
||
|
%if "%{_host}" != "%{_build}"
|
||
|
ac_cv_func_malloc_0_nonnull=yes \
|
||
|
ac_cv_func_realloc_0_nonnull=yes
|
||
|
%endif
|
||
|
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall
|
||
|
|
||
|
install -d %{buildroot}/bin
|
||
|
mv %{buildroot}%{_bindir}/fuser %{buildroot}/bin/fuser
|
||
|
|
||
|
%find_lang %{name}
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files -f %{name}.lang
|
||
|
%defattr(-,root,root)
|
||
|
/bin/fuser
|
||
|
%{_bindir}/peekfd
|
||
|
%{_bindir}/killall
|
||
|
%{_bindir}/prtstat
|
||
|
%{_bindir}/pstree
|
||
|
%{_bindir}/pstree.x11
|
||
|
%{_mandir}/man1/fuser.1.gz
|
||
|
%{_mandir}/man1/killall.1.gz
|
||
|
%{_mandir}/man1/prtstat.1.gz
|
||
|
%{_mandir}/man1/pstree.1.gz
|
||
|
%{_mandir}/man1/peekfd.1.gz
|
||
|
|
||
|
%changelog
|
||
|
* Sat Feb 22 2014 Automatic Build System <autodist@mambasoft.it> 22.21-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sat Jun 29 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 22.20-2mamba
|
||
|
- arm: rebuild with recent ncurses to fix undefined symbol: __aeabi_idiv
|
||
|
|
||
|
* Fri Jan 18 2013 Automatic Build System <autodist@mambasoft.it> 22.20-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Fri Aug 10 2012 Automatic Build System <autodist@mambasoft.it> 22.19-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Sun Jun 26 2011 Automatic Build System <autodist@mambasoft.it> 22.14-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sun Oct 03 2010 Automatic Build System <autodist@mambasoft.it> 22.13-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sat Jul 31 2010 Automatic Build System <autodist@mambasoft.it> 22.12-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Fri Jun 25 2010 Automatic Build System <autodist@mambasoft.it> 22.11-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Tue Jun 03 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 22.6-1mamba
|
||
|
- update to 22.6
|
||
|
- removed fuser-ipv6 patch applied upstream
|
||
|
|
||
|
* Tue Mar 27 2007 Davide Madrisan <davide.madrisan@qilinux.it> 22.3-2qilnx
|
||
|
- fuser moved to the /bin directory (should be in /sbin but users need it)
|
||
|
|
||
|
* Fri Mar 23 2007 Davide Madrisan <davide.madrisan@qilinux.it> 22.3-1qilnx
|
||
|
- update to version 22.3 by autospec
|
||
|
- fuser moved to /sbin for lsb compliance
|
||
|
|
||
|
* Thu Dec 15 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 21.8-1qilnx
|
||
|
- update to version 21.8 by autospec
|
||
|
- specfile updated and fixed
|
||
|
- fixed package group
|
||
|
|
||
|
* Mon Jun 16 2003 Silvan Calarco <silvan.calarco@qinet.it> 21.3-1qilnx
|
||
|
- changed location of files
|
||
|
|
||
|
* Mon Apr 09 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it>
|
||
|
- creation of psmisc package
|