459053
# The testsuite is unsuitable for running on buildsystems
459053
%global tests_enabled 0
459053
459053
Summary: System and process monitoring utilities
459053
Name: procps-ng
459053
Version: 3.3.10
9a85b1
Release: 23%{?dist}
459053
License: GPL+ and GPLv2 and GPLv2+ and GPLv3+ and LGPLv2+
459053
Group: Applications/System
459053
URL: https://sourceforge.net/projects/procps-ng/
459053
459053
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
459053
459053
Patch0: procps-ng-3.3.10-pmap-skip-vmflags.patch
459053
Patch1: procps-ng-3.3.10-free-uninitialized-errno.patch
459053
Patch2: procps-ng-3.3.10-ps-thcount-format-option.patch
459053
Patch3: procps-ng-3.3.10-vmstat-devlen.patch
459053
Patch4: procps-ng-3.3.10-find_elf_note-memory-error-fix.patch
459053
Patch5: procps-ng-3.3.10-ps-scattered-thread-cgroups.patch
459053
Patch6: procps-ng-3.3.10-vmstat-long-device-name.patch
459053
Patch7: procps-ng-3.3.10-ps-full-wchan-name.patch
459053
Patch8: procps-ng-3.3.10-pmap-lines-twice.patch
459053
Patch9: procps-ng-3.3.10-slabtop-use-val-float.patch
459053
Patch10: procps-ng-3.3.10-sysctl-conf-manpage-predef-note.patch 
459053
Patch11: procps-ng-3.3.10-top-instant-cpu-stats.patch
459053
Patch12: procps-ng-3.3.10-sysctl-man-conf-override-hint.patch
459053
Patch13: procps-ng-3.3.10-top-strange-mem-val-scaling.patch 
9a85b1
Patch14: procps-ng-3.3.10-sysctl-empty-value-allowed.patch
9a85b1
Patch15: procps-ng-3.3.10-top-locale-independent-float-delay.patch
9a85b1
Patch16: procps-ng-3.3.10-free-mem-petabytes-segfault.patch
9a85b1
Patch17: procps-ng-3.3.10-ps-new-option-loginid-luid.patch
b67d5b
Patch18: procps-ng-3.3.10-CVE-2018-1124.patch
459053
459053
459053
Requires(post): /sbin/ldconfig
459053
Requires(postun): /sbin/ldconfig
459053
459053
BuildRequires: ncurses-devel
459053
BuildRequires: libtool
459053
BuildRequires: autoconf
459053
BuildRequires: automake
459053
BuildRequires: gettext-devel
459053
BuildRequires: systemd-devel
459053
459053
%if %{tests_enabled}
459053
BuildRequires: dejagnu
459053
%endif
459053
459053
Provides: procps = %{version}-%{release}
459053
Obsoletes: procps < 3.2.9-1
459053
459053
# usrmove hack - will be removed once initscripts are fixed
459053
Provides: /sbin/sysctl
459053
Provides: /bin/ps
459053
459053
%description
459053
The procps package contains a set of system utilities that provide
459053
system information. Procps includes ps, free, skill, pkill, pgrep,
459053
snice, tload, top, uptime, vmstat, w, watch and pwdx. The ps command
459053
displays a snapshot of running processes. The top command provides
459053
a repetitive update of the statuses of running processes. The free
459053
command displays the amounts of free and used memory on your
459053
system. The skill command sends a terminate command (or another
459053
specified signal) to a specified set of processes. The snice
459053
command is used to change the scheduling priority of specified
459053
processes. The tload command prints a graph of the current system
459053
load average to a specified tty. The uptime command displays the
459053
current time, how long the system has been running, how many users
459053
are logged on, and system load averages for the past one, five,
459053
and fifteen minutes. The w command displays a list of the users
459053
who are currently logged on and what they are running. The watch
459053
program watches a running program. The vmstat command displays
459053
virtual memory statistics about processes, memory, paging, block
459053
I/O, traps, and CPU activity. The pwdx command reports the current
459053
working directory of a process or processes.
459053
459053
%package devel
459053
Summary:  System and process monitoring utilities
459053
Group:    Development/Libraries
459053
Requires: %{name}%{?_isa} = %{version}-%{release}
459053
Provides: procps-devel = %{version}-%{release}
459053
Obsoletes: procps-devel < 3.2.9-1
459053
459053
%description devel
459053
System and process monitoring utilities development headers
459053
459053
%package i18n
459053
Summary:  Internationalization pack for procps-ng
459053
Group:    Applications/System
459053
Requires: %{name} = %{version}-%{release}
459053
459053
%description i18n
459053
Internationalization pack for procps-ng
459053
459053
459053
%prep
459053
%setup -q -n %{name}-%{version}
459053
459053
%patch0 -p1
459053
%patch1 -p1
459053
%patch2 -p1
459053
%patch3 -p1
459053
%patch4 -p1
459053
%patch5 -p1
459053
%patch6 -p1
459053
%patch7 -p1
459053
%patch8 -p1
459053
%patch9 -p1
459053
%patch10 -p1
459053
%patch11 -p1
459053
%patch12 -p1
459053
%patch13 -p1
9a85b1
%patch14 -p1
9a85b1
%patch15 -p1
9a85b1
%patch16 -p1
9a85b1
%patch17 -p1
b67d5b
%patch18 -p1
459053
459053
459053
%build
459053
# The following stuff is needed for git archives only
459053
#echo "%{version}" > .tarball-version
459053
#./autogen.sh
459053
459053
autoreconf --verbose --force --install
459053
459053
./configure --prefix=/ \
459053
            --bindir=%{_bindir} \
459053
            --sbindir=%{_sbindir} \
459053
            --libdir=%{_libdir} \
459053
            --mandir=%{_mandir} \
459053
            --includedir=%{_includedir} \
459053
            --sysconfdir=%{_sysconfdir} \
459053
            --localedir=%{_datadir}/locale \
459053
            --docdir=/unwanted \
459053
            --disable-static \
459053
            --enable-w-from \
459053
            --disable-kill \
459053
            --disable-rpath \
459053
            --enable-watch8bit \
459053
            --enable-skill \
459053
            --enable-sigwinch \
459053
            --enable-libselinux \
459053
            --with-systemd \
459053
            --disable-pidof \
459053
            --disable-modern-top
459053
459053
make CFLAGS="%{optflags}"
459053
459053
459053
%if %{tests_enabled}
459053
%check
459053
make check
459053
%endif
459053
459053
459053
%install
459053
make DESTDIR=%{buildroot} install
459053
459053
# --localedir doesn't work correctly
459053
mv %{buildroot}/share/locale %{buildroot}%{_datadir}
459053
rmdir %{buildroot}/share
459053
459053
# translated man pages
459053
#find man-po/ -type d -maxdepth 1 -mindepth 1 | while read dirname; do cp -a $dirname %{buildroot}/usr/share/man/ ; done
459053
459053
%post -p /sbin/ldconfig
459053
459053
%postun -p /sbin/ldconfig
459053
459053
%files
459053
%doc AUTHORS Documentation/BUGS COPYING COPYING.LIB Documentation/FAQ NEWS README top/README.top Documentation/TODO
459053
459053
%{_libdir}/libprocps.so.*
459053
%{_bindir}/*
459053
%{_sbindir}/*
459053
%{_mandir}/man1/*
459053
%{_mandir}/man8/*
459053
%{_mandir}/man5/*
459053
#%%{_mandir}/*/man1/*
459053
#%%{_mandir}/*/man8/*
459053
#%%{_mandir}/*/man5/*
459053
459053
%exclude %{_libdir}/libprocps.la
459053
%exclude %{_sysconfdir}/sysctl.conf
459053
%exclude /unwanted/*
459053
459053
%files devel
459053
%doc COPYING COPYING.LIB
459053
%{_libdir}/libprocps.so
459053
%{_libdir}/pkgconfig/libprocps.pc
459053
%{_includedir}/proc
459053
%{_mandir}/man3/*
459053
459053
%files i18n
459053
%{_datadir}/locale/*
459053
459053
%changelog
9a85b1
* Tue May 15 2018 Kamil Dudka <kdudka@redhat.com> - 3.3.10-23
b67d5b
- check for truncation after calling snprintf()
b67d5b
- Related: CVE-2018-1124
b67d5b
9a85b1
* Fri May 11 2018 Kamil Dudka <kdudka@redhat.com> - 3.3.10-22
b67d5b
- fix integer overflows leading to heap overflow in file2strvec()
b67d5b
- Resolves: CVE-2018-1124
b67d5b
9a85b1
* Thu Apr 19 2018 Jan Rybar <jrybar@redhat.com> - 3.3.10-21
9a85b1
- ps: new format option LUID (LoginId)
9a85b1
- Resolves: rhbz#1518986
9a85b1
9a85b1
* Mon Jan 15 2018 Jan Rybar <jrybar@redhat.com> - 3.3.10-20
9a85b1
- free: segfault when system memory exceeds petabytes
9a85b1
- Resolves: rhbz#1263765
9a85b1
9a85b1
* Mon Jan 15 2018 Jan Rybar <jrybar@redhat.com> - 3.3.10-19
9a85b1
- top: locale independent float character in delay now accepted
9a85b1
- Resolves: rhbz#1182248
9a85b1
9a85b1
* Thu Jan 04 2018 Jan Rybar <jrybar@redhat.com> - 3.3.10-18
9a85b1
- sysctl: empty value is now accepted
9a85b1
- Resolves: rhbz#1507356
9a85b1
459053
* Wed Sep 06 2017 Jan Rybar <jrybar@redhat.com> - 3.3.10-17
459053
- top: strange unit scaling with high memory values
459053
- Resolves: rhbz#1253851
459053
459053
* Wed May 31 2017 Jan Rybar <jrybar@redhat.com> - 3.3.10-16
459053
- sysctl manpage: Added explanation of conf files precedence
459053
- Resolves: rhbz#1456905
459053
459053
* Fri Apr 07 2017 Jan Rybar <jrybar@redhat.com> - 3.3.10-15
459053
- top - real CPU statistics instead of since-boot are shown at start
459053
- Resolves: rhbz#1182327
459053
459053
* Fri Apr 07 2017 Jan Rybar <jrybar@redhat.com> - 3.3.10-14
459053
- sysctl.conf manpage: note about predefined values added
459053
- Resolves: rhbz#1439837
459053
459053
* Mon Mar 13 2017 Jan Rybar <jrybar@redhat.com> - 3.3.10-13
459053
- slabtop: incorrect computation of "used" value, use float to fix
459053
- Resolves: rhbz#1329958
459053
459053
* Mon Feb 20 2017 Jan Rybar <jrybar@redhat.com> - 3.3.10-12
459053
- pmap no longer shows each line twice with blank values on newer kernels
459053
- Resolves: rhbz#1330417
459053
459053
* Tue Jan 31 2017 Jan Rybar <jrybar@redhat.com> - 3.3.10-11
459053
- ps no longer removes 'do_' and 'sys_' from wchan data
459053
- Resolves: rhbz#1373246
459053
459053
* Tue Jul 26 2016 Jan Rybar <jrybar@redhat.com> - 3.3.10-10
459053
- Fixes sysinfo - devices with name longer than 20 chars are mistaken for partitions
459053
- Resolves: rhbz#1169349
459053
459053
* Thu Jul 07 2016 Jan Rybar <jrybar@redhat.com> - 3.3.10-9
459053
- Fixes showing same cgroups for threads under process by adding format option
459053
- Resolves: rhbz#1284087
459053
459053
* Mon Jul 04 2016 Jan Rybar <jrybar@redhat.com> - 3.3.10-8
459053
- Fixes obtaining environment variables in find_elf_note function
459053
- Resolves: rhbz#1287752
459053
 
459053
* Thu Jun 09 2016 Jan Rybar <jrybar@redhat.com> - 3.3.10-7
459053
- Fixing sysinfo - devices with length exceeding 15 chars are not displayed in vmstat -d
459053
- Resolves: #1169349
459053
459053
* Mon Jun 06 2016 Jan Rybar <jrybar@redhat.com> - 3.3.10-6
459053
- #1174311 - ps - thcount not recognized as a format option
459053
- Resolves: #1174311
459053
459053
* Tue Dec 01 2015 Jaromir Capik <jcapik@redhat.com> - 3.3.10-5
459053
- #1287038 - free - error while parsing arguments
459053
- Resolves: #1287038
459053
459053
* Tue Nov 24 2015 Jaromir Capik <jcapik@redhat.com> - 3.3.10-4
459053
- #1262864 - Correctly skip vmflags (and other keys starting with A-Z)
459053
- Resolves: #1262864
459053
459053
* Mon Oct 06 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.10-3
459053
- Disabling translated man pages due to conflicts with man-pages-*
459053
- Removing /etc/sysctl.d (quietly stolen by systemd)
459053
- Related: rhbz#1119263 rhbz#1119260 rhbz#1060715 rhbz#1113206
459053
- Related: rhbz#1112734 rhbz#1078310 rhbz#1116309 rhbz#1070736
459053
459053
* Tue Sep 23 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.10-2
459053
- Replacing RC tarball with final 3.3.10 release
459053
- Related: rhbz#1119263 rhbz#1119260 rhbz#1060715 rhbz#1113206
459053
- Related: rhbz#1112734 rhbz#1078310 rhbz#1116309 rhbz#1070736
459053
459053
* Tue Sep 09 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.10-1
459053
- Upgrading to 3.3.10
459053
- top.1: physical memory - has used / is using (#1119263)
459053
- Include man pages for openproc, readproc and readproctab (#1119260)
459053
- ps -p cycles over all PIDs instead of just one (#1060715)
459053
- Remove explicit dependency on systemd-libs package (#1113206)
459053
- Allow longer usernames to display in ps output (#1112734)
459053
- w doesn't display FROM by default (#1078310)
459053
- Return value of pgrep is incorrect (#1116309)
459053
- Should shared memory be accounted in cached in free output? (#1070736)
459053
- Resolves: rhbz#1119263 rhbz#1119260 rhbz#1060715 rhbz#1113206
459053
- Resolves: rhbz#1112734 rhbz#1078310 rhbz#1116309 rhbz#1070736
459053
459053
* Thu Feb 27 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.9-6
459053
- Subtracting Shmem from Cached (#1070736)
459053
- Resolves: rhbz#1070736
459053
459053
* Thu Feb 06 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.9-5
459053
- Support for timestamps & wide diskstat (#1053428, #1025833)
459053
- Fixing fd leak in watch
459053
- Fixing format-security build issues
459053
- Skipping trailing zeros in read_unvectored (#1057600)
459053
- Resolves: rhbz#1053428, Related: rhbz#1025833
459053
459053
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.3.9-4
459053
- Mass rebuild 2014-01-24
459053
459053
* Mon Jan 20 2014 Jaromir Capik <jcapik@redhat.com> - 3.3.9-3
459053
- 'vmstat -w' was not wide enough (#1025833)
459053
- Related: rhbz#1025833
459053
459053
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.3.9-2
459053
- Mass rebuild 2013-12-27
459053
459053
* Tue Dec 03 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.9-1
459053
- Update to 3.3.9
459053
- Resolves: rhbz#1025833 rhbz#1025774 rhbz#1027109
459053
459053
* Mon Oct 21 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-15
459053
- Fixing incorrect format specifier (introduced with namespaces)
459053
459053
* Tue Sep 17 2013 Aristeu Rozanski <aris@redhat.com> - 3.3.8-14
459053
- Introduce namespaces support (#980516)
459053
459053
* Fri Aug 09 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-13
459053
- Including forgotten man fixes (#948522)
459053
459053
* Wed Aug 07 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-12
459053
- Fixing the license tag
459053
459053
* Wed Aug 07 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-11
459053
- Support for libselinux (#975459)
459053
- Support for systemd (#994457)
459053
- Support for 'Shmem' in free (#993271)
459053
459053
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.8-10
459053
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
459053
459053
* Fri Jul 19 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-9
459053
- RH man page scan (#948522)
459053
459053
* Tue Jul 02 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-8
459053
- Extending the end-of-job patch disabling the screen content restoration
459053
459053
* Mon Jul 01 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-7
459053
- Disabling screen content restoration when exiting 'top' (#977561)
459053
- Enabling SIGWINCH flood prevention
459053
459053
* Wed Jun 26 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-6
459053
- Avoiding "write error" messages when piping to grep (#976199)
459053
459053
* Wed Jun 26 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-5
459053
- Disabling tests - unsuitable for running on buildsystems
459053
459053
* Mon Jun 17 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-4
459053
- Enabling skill and snice (#974752)
459053
459053
* Wed Jun 12 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-3
459053
- Adding major version in the libnuma soname
459053
459053
* Thu May 30 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-2
459053
- watch: enabling UTF-8 (#965867)
459053
459053
* Wed May 29 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.8-1
459053
- Update to 3.3.8
459053
459053
* Wed May 22 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.7-4
459053
- top: inoculated against a window manager like 'screen' (#962022)
459053
459053
* Tue Apr 16 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.7-3
459053
- Avoid segfaults when reading zero bytes - file2str (#951391)
459053
459053
* Mon Apr 15 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.7-2
459053
- Moving libprocps.pc to the devel subpackage (#951726)
459053
459053
* Tue Mar 26 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.7-1
459053
- Update to 3.3.7
459053
- Reverting upstream commit for testsuite/unix.exp
459053
459053
* Tue Feb 05 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.6-4
459053
- Fixing empty pmap output on ppc/s390 (#906457)
459053
459053
* Tue Jan 15 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.6-3
459053
- Typo in the description, pdwx instead of pwdx (#891476)
459053
459053
* Tue Jan 08 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.6-2
459053
- Rebuilding with tests disabled (koji issue #853084)
459053
459053
* Tue Jan 08 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.6-1
459053
- Update to 3.3.6
459053
- Changing URL/Source from gitorious to recently created sourceforge page
459053
- Replacing autogen.sh with autoreconf
459053
459053
* Mon Jan 07 2013 Jaromir Capik <jcapik@redhat.com> - 3.3.5-1
459053
- Update to 3.3.5
459053
459053
* Tue Dec 11 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.4-2
459053
- fixing the following regressions:
459053
-   negative ETIME field in ps (#871819)
459053
-   procps states a bug is hit when receiving a signal (#871824)
459053
-   allow core file generation by ps command (#871825)
459053
459053
* Tue Dec 11 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.4-1
459053
- Update to 3.3.4
459053
459053
* Tue Sep 25 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.3-3.20120807git
459053
- SELinux spelling fixes (#859900)
459053
459053
* Tue Aug 21 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.3-2.20120807git
459053
- Tests enabled
459053
459053
* Tue Aug 07 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.3-1.20120807git
459053
- Update to 3.3.3-20120807git
459053
459053
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.2-4
459053
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
459053
459053
* Thu Mar 08 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.2-3
459053
- Second usrmove hack - providing /bin/ps
459053
459053
* Tue Mar 06 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.2-2
459053
- Fixing requires in the devel subpackage (missing %{?_isa} macro)
459053
- License statement clarification (upstream patch referrenced in the spec header)
459053
459053
* Mon Feb 27 2012 Jaromir Capik <jcapik@redhat.com> - 3.3.2-1
459053
- Initial version