psmisc/psmisc.spec

133 lines
4.1 KiB
RPMSpec
Raw Permalink Normal View History

Name: psmisc
Version: 23.5
Release: 2mamba
Summary: Small utilities that use the /proc filesystem
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://gitlab.com/psmisc/psmisc
Source: https://gitlab.com/psmisc/psmisc.git/v%{version}/psmisc-%{version}.tar.bz2
Patch0: psmisc-22.20-selinux-scontext.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libncurses-devel
## AUTOBUILDREQ-END
BuildRequires: gettext-devel
Provides: /bin/fuser
%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.
%debug_package
%prep
%setup -q
#%patch0 -p1
sed -i "/--wrap-po no/d" man-po/Makefile*
./autogen.sh
%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
%find_lang %{name} --with-man --all-name
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/fuser
%{_bindir}/peekfd
%{_bindir}/killall
%{_bindir}/prtstat
%{_bindir}/pslog
%{_bindir}/pstree
%{_bindir}/pstree.x11
%{_mandir}/man1/fuser.1*
%{_mandir}/man1/killall.1*
%{_mandir}/man1/prtstat.1*
%{_mandir}/man1/pslog.1*
%{_mandir}/man1/pstree.1*
%{_mandir}/man1/peekfd.1*
%doc AUTHORS COPYING
%changelog
* Fri May 27 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 23.5-2mamba
- provide /bin/fuser required by openmamba-lsb-core
* Thu May 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 23.5-1mamba
- update to 23.5
* Sat Mar 13 2021 Automatic Build System <autodist@mambasoft.it> 23.4-1mamba
- automatic version update by autodist
* Thu Nov 14 2019 Automatic Build System <autodist@mambasoft.it> 23.3-1mamba
- automatic version update by autodist
* Mon May 27 2019 Automatic Build System <autodist@mambasoft.it> 23.2-1mamba
- automatic version update by autodist
* 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