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