4a743f
# The testsuite is unsuitable for running on buildsystems
4a743f
%global tests_enabled 0
4a743f
4a743f
Summary: System and process monitoring utilities
4a743f
Name: procps-ng
4a743f
Version: 3.3.15
4a743f
Release: 2%{?dist}
4a743f
License: GPL+ and GPLv2 and GPLv2+ and GPLv3+ and LGPLv2+
4a743f
Group: Applications/System
4a743f
URL: https://sourceforge.net/projects/procps-ng/
4a743f
4a743f
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
4a743f
# README files are missing in latest tarball
4a743f
# wget https://gitlab.com/procps-ng/procps/raw/e0784ddaed30d095bb1d9a8ad6b5a23d10a212c4/README.md
4a743f
Source1: README.md
4a743f
# wget https://gitlab.com/procps-ng/procps/raw/e0784ddaed30d095bb1d9a8ad6b5a23d10a212c4/top/README.top
4a743f
Source2: README.top
4a743f
4a743f
Patch1: procps-ng-3.3.15-pidof-show-worker-threads.patch
4a743f
4a743f
BuildRequires: ncurses-devel
4a743f
BuildRequires: libtool
4a743f
BuildRequires: autoconf
4a743f
BuildRequires: automake
4a743f
BuildRequires: gcc
4a743f
BuildRequires: gettext-devel
4a743f
BuildRequires: systemd-devel
4a743f
BuildRequires: git
4a743f
4a743f
%if %{tests_enabled}
4a743f
BuildRequires: dejagnu
4a743f
%endif
4a743f
4a743f
Provides: procps = %{version}-%{release}
4a743f
Obsoletes: procps < 3.2.9-1
4a743f
4a743f
# usrmove hack - will be removed once initscripts are fixed
4a743f
Provides: /sbin/sysctl
4a743f
Provides: /bin/ps
4a743f
4a743f
4a743f
%description
4a743f
The procps package contains a set of system utilities that provide
4a743f
system information. Procps includes ps, free, skill, pkill, pgrep,
4a743f
snice, tload, top, uptime, vmstat, pidof, pmap, slabtop, w, watch
4a743f
and pwdx.
4a743f
The ps command displays a snapshot of running processes. The top command
4a743f
provides a repetitive update of the statuses of running processes.
4a743f
The free command displays the amounts of free and used memory on your
4a743f
system. The skill command sends a terminate command (or another
4a743f
specified signal) to a specified set of processes. The snice
4a743f
command is used to change the scheduling priority of specified
4a743f
processes. The tload command prints a graph of the current system
4a743f
load average to a specified tty. The uptime command displays the
4a743f
current time, how long the system has been running, how many users
4a743f
are logged on, and system load averages for the past one, five,
4a743f
and fifteen minutes. The w command displays a list of the users
4a743f
who are currently logged on and what they are running. The watch
4a743f
program watches a running program. The vmstat command displays
4a743f
virtual memory statistics about processes, memory, paging, block
4a743f
I/O, traps, and CPU activity. The pwdx command reports the current
4a743f
working directory of a process or processes.
4a743f
4a743f
%package devel
4a743f
Summary:  System and process monitoring utilities
4a743f
Group:    Development/Libraries
4a743f
Requires: %{name}%{?_isa} = %{version}-%{release}
4a743f
Provides: procps-devel = %{version}-%{release}
4a743f
Obsoletes: procps-devel < 3.2.9-1
4a743f
4a743f
%description devel
4a743f
System and process monitoring utilities development headers
4a743f
4a743f
%package i18n
4a743f
Summary:  Internationalization pack for procps-ng
4a743f
Group:    Applications/System
4a743f
Requires: %{name} = %{version}-%{release}
4a743f
BuildArch: noarch
4a743f
4a743f
# fortunately the same release number for f21 and f22
4a743f
Conflicts: man-pages-de < 1.7-3
4a743f
Conflicts: man-pages-fr < 3.66-3
4a743f
Conflicts: man-pages-pl < 0.7-5
4a743f
4a743f
%description i18n
4a743f
Internationalization pack for procps-ng
4a743f
4a743f
%prep
4a743f
%autosetup -S git
4a743f
cp -p %{SOURCE1} .
4a743f
cp -p %{SOURCE2} top/
4a743f
4a743f
4a743f
%build
4a743f
# The following stuff is needed for git archives only
4a743f
#echo "%{version}" > .tarball-version
4a743f
#./autogen.sh
4a743f
4a743f
autoreconf --verbose --force --install
4a743f
4a743f
%configure \
4a743f
           --exec-prefix=/ \
4a743f
           --docdir=/unwanted \
4a743f
           --disable-static \
4a743f
           --enable-w-from \
4a743f
           --disable-kill \
4a743f
           --enable-watch8bit \
4a743f
           --enable-skill \
4a743f
           --enable-sigwinch \
4a743f
           --enable-libselinux \
4a743f
           --with-systemd \
4a743f
           --disable-modern-top
4a743f
4a743f
make CFLAGS="%{optflags}"
4a743f
4a743f
4a743f
%if %{tests_enabled}
4a743f
%check
4a743f
make check
4a743f
%endif
4a743f
4a743f
4a743f
%install
4a743f
make DESTDIR=%{buildroot} install
4a743f
4a743f
# translated man pages
4a743f
find man-po/ -type d -maxdepth 1 -mindepth 1 | while read dirname; do cp -a $dirname %{buildroot}%{_mandir}/ ; done
4a743f
rm -f %{buildroot}%{_mandir}/{de,fr,uk}/man1/kill.1
4a743f
4a743f
%find_lang %{name} --all-name --with-man
4a743f
4a743f
ln -s %{_bindir}/pidof %{buildroot}%{_sbindir}/pidof
4a743f
4a743f
%ldconfig_scriptlets
4a743f
4a743f
%files
4a743f
%doc AUTHORS Documentation/bugs.md Documentation/FAQ NEWS README.md top/README.top Documentation/TODO
4a743f
%{!?_licensedir:%global license %%doc}
4a743f
%license COPYING COPYING.LIB
4a743f
%{_libdir}/libprocps.so.*
4a743f
%{_bindir}/*
4a743f
%{_sbindir}/*
4a743f
%{_mandir}/man1/*
4a743f
%{_mandir}/man8/*
4a743f
%{_mandir}/man5/*
4a743f
4a743f
4a743f
%exclude %{_libdir}/libprocps.la
4a743f
%exclude /unwanted/*
4a743f
4a743f
%files devel
4a743f
%{!?_licensedir:%global license %%doc}
4a743f
%license COPYING COPYING.LIB
4a743f
%{_libdir}/libprocps.so
4a743f
%{_libdir}/pkgconfig/libprocps.pc
4a743f
%{_includedir}/proc
4a743f
%{_mandir}/man3/*
4a743f
4a743f
%files i18n -f %{name}.lang
4a743f
4a743f
%changelog
4a743f
* Tue Apr 14 2020 Jan Rybar <jrybar@redhat.com> - 3.3.15-2
4a743f
- pidof: show kernel workers
4a743f
- gating activated
4a743f
- Resolves: rhbz#1803640
4a743f
4a743f
* Wed Jul 04 2018 Jan Rybar <jrybar@redhat.com> - 3.3.15-1
4a743f
- Rebase to 3.3.15
4a743f
- Translated manual pages moved to -i18n subpackage
4a743f
4a743f
* Wed Feb 21 2018 Michael Cronenworth <mike@cchtml.com> - 3.3.12-1
4a743f
- Upgrading to 3.3.12
4a743f
4a743f
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.3.10-18
4a743f
- Escape macros in %%changelog
4a743f
4a743f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.10-17
4a743f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4a743f
4a743f
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.3.10-16
4a743f
- Switch to %%ldconfig_scriptlets
4a743f
4a743f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.10-15
4a743f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
4a743f
4a743f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.10-14
4a743f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4a743f
4a743f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.10-13
4a743f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4a743f
4a743f
* Mon Nov 28 2016 Lubomir Rintel - 3.3.10-12
4a743f
- Fix FTBFS with new systemd
4a743f
4a743f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.10-11
4a743f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4a743f
4a743f
* Thu Jan 14 2016 Jaromir Capik <jcapik@redhat.com> - 3.3.10-10
4a743f
- Enhancing find_elf_note to allow calling lib functions with dlopen (#1287752)
4a743f
4a743f
* Fri Aug 14 2015 Adam Jackson <ajax@redhat.com> 3.3.10-9
4a743f
- Use %%configure so the hardened cflags get applied correctly
4a743f
4a743f
* Mon Aug 10 2015 Jaromir Capik <jcapik@redhat.com> - 3.3.10-8
4a743f
- Fixing crashes in 'top' when a deep forking appears (#1153642)
4a743f
4a743f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.10-7
4a743f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4a743f
4a743f
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 3.3.10-6
4a743f
- Rebuilt for Fedora 23 Change
4a743f
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
4a743f
4a743f
* Tue Nov 25 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.10-5
4a743f
- Fixing locale dirs ownership (#1167443)
4a743f
4a743f
* Mon Oct 20 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.10-4
4a743f
- Bringing the old 'top' defaults back (#1153049)
4a743f
4a743f
* Mon Oct 06 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.10-3
4a743f
- Resolving file conflicts with man-pages-*
4a743f
- Replacing hardcoded paths with macros
4a743f
- Making the i18n subpackage noarch
4a743f
4a743f
* Tue Sep 30 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.10-2
4a743f
- Removing explicit dependency on systemd-libs
4a743f
- Removing /etc/sysctl.d (ownership quietly stolen by systemd)
4a743f
4a743f
* Tue Sep 09 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.10-1
4a743f
- Upgrading to 3.3.10
4a743f
4a743f
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.9-12
4a743f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4a743f
4a743f
* Thu Jul 31 2014 Tom Callaway <spot@fedoraproject.org> - 3.3.9-11
4a743f
- fix license handling
4a743f
4a743f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.9-10
4a743f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4a743f
4a743f
* Wed Apr 30 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.9-9
4a743f
- Dropping Cached -= Shmem (#963799)
4a743f
4a743f
* Tue Apr 08 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.9-8
4a743f
- Documenting the 't' process state code in the ps manual (#946864)
4a743f
4a743f
* Fri Mar 14 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.9-7
4a743f
- Fixing sysctl line length limit (#1071530)
4a743f
4a743f
* Thu Feb 27 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.9-6
4a743f
- Subtracting Shmem from Cached (#1070736)
4a743f
4a743f
* Wed Feb 05 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.9-5
4a743f
- Support for timestamps & wide diskstat (#1053428, #1025833)
4a743f
- Fixing fd leak in watch
4a743f
- Fixing format-security build issues
4a743f
4a743f
* Fri Jan 24 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.9-4
4a743f
- Skipping trailing zeros in read_unvectored (#1057600)
4a743f
4a743f
* Mon Jan 20 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.9-3
4a743f
- 'vmstat -w' was not wide enough (#1025833)
4a743f
4a743f
* Tue Jan 07 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.9-2
4a743f
- Replacing the /sbin/pidof wrapper with symlink
4a743f
4a743f
* Tue Dec 03 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.9-1
4a743f
- Update to 3.3.9
4a743f
4a743f
* Mon Nov 04 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-17
4a743f
- Fixing pidof compilation warnings
4a743f
- RPM workaround - changing sysvinit-tools Conflicts/Obsoletes (#1026504)
4a743f
4a743f
* Wed Oct 16 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-16
4a743f
- Introducing pidof (#987064)
4a743f
4a743f
* Tue Sep 17 2013 Aristeu Rozanski <aris@redhat.com> - 3.3.8-15
4a743f
- Introduce namespaces support (#1016242)
4a743f
4a743f
* Tue Sep 17 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-14
4a743f
- top: Fixing missing newline when running in the batch mode (#1008674)
4a743f
4a743f
* Fri Aug 09 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-13
4a743f
- Including forgotten man fixes (#948522)
4a743f
4a743f
* Wed Aug 07 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-12
4a743f
- Fixing the license tag
4a743f
4a743f
* Wed Aug 07 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-11
4a743f
- Support for libselinux (#975459)
4a743f
- Support for systemd (#994457)
4a743f
- Support for 'Shmem' in free (#993271)
4a743f
4a743f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.8-10
4a743f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4a743f
4a743f
* Fri Jul 19 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-9
4a743f
- RH man page scan (#948522)
4a743f
4a743f
* Tue Jul 02 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-8
4a743f
- Extending the end-of-job patch disabling the screen content restoration
4a743f
4a743f
* Mon Jul 01 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-7
4a743f
- Disabling screen content restoration when exiting 'top' (#977561)
4a743f
- Enabling SIGWINCH flood prevention
4a743f
4a743f
* Wed Jun 26 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-6
4a743f
- Avoiding "write error" messages when piping to grep (#976199)
4a743f
4a743f
* Wed Jun 26 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-5
4a743f
- Disabling tests - unsuitable for running on buildsystems
4a743f
4a743f
* Mon Jun 17 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-4
4a743f
- Enabling skill and snice (#974752)
4a743f
4a743f
* Wed Jun 12 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-3
4a743f
- Adding major version in the libnuma soname
4a743f
4a743f
* Thu May 30 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-2
4a743f
- watch: enabling UTF-8 (#965867)
4a743f
4a743f
* Wed May 29 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-1
4a743f
- Update to 3.3.8
4a743f
4a743f
* Wed May 22 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.7-4
4a743f
- top: inoculated against a window manager like 'screen' (#962022)
4a743f
4a743f
* Tue Apr 16 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.7-3
4a743f
- Avoid segfaults when reading zero bytes - file2str (#951391)
4a743f
4a743f
* Mon Apr 15 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.7-2
4a743f
- Moving libprocps.pc to the devel subpackage (#951726)
4a743f
4a743f
* Tue Mar 26 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.7-1
4a743f
- Update to 3.3.7
4a743f
- Reverting upstream commit for testsuite/unix.exp
4a743f
4a743f
* Tue Feb 05 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.6-4
4a743f
- Fixing empty pmap output on ppc/s390 (#906457)
4a743f
4a743f
* Tue Jan 15 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.6-3
4a743f
- Typo in the description, pdwx instead of pwdx (#891476)
4a743f
4a743f
* Tue Jan 08 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.6-2
4a743f
- Rebuilding with tests disabled (koji issue #853084)
4a743f
4a743f
* Tue Jan 08 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.6-1
4a743f
- Update to 3.3.6
4a743f
- Changing URL/Source from gitorious to recently created sourceforge page
4a743f
- Replacing autogen.sh with autoreconf
4a743f
4a743f
* Mon Jan 07 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.5-1
4a743f
- Update to 3.3.5
4a743f
4a743f
* Tue Dec 11 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.4-2
4a743f
- fixing the following regressions:
4a743f
-   negative ETIME field in ps (#871819)
4a743f
-   procps states a bug is hit when receiving a signal (#871824)
4a743f
-   allow core file generation by ps command (#871825)
4a743f
4a743f
* Tue Dec 11 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.4-1
4a743f
- Update to 3.3.4
4a743f
4a743f
* Tue Sep 25 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.3-3.20120807git
4a743f
- SELinux spelling fixes (#859900)
4a743f
4a743f
* Tue Aug 21 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.3-2.20120807git
4a743f
- Tests enabled
4a743f
4a743f
* Tue Aug 07 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.3-1.20120807git
4a743f
- Update to 3.3.3-20120807git
4a743f
4a743f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.2-4
4a743f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4a743f
4a743f
* Thu Mar 08 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.2-3
4a743f
- Second usrmove hack - providing /bin/ps
4a743f
4a743f
* Tue Mar 06 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.2-2
4a743f
- Fixing requires in the devel subpackage (missing %%{?_isa} macro)
4a743f
- License statement clarification (upstream patch referrenced in the spec header)
4a743f
4a743f
* Mon Feb 27 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.2-1
4a743f
- Initial version