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