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
a2be1b
Version: 3.3.9
a2be1b
Release: 6%{?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
a2be1b
Patch0: vmstat-wide-not-wide-enough.patch
a2be1b
Patch1: ksh-skip-trailing-zeros.patch
a2be1b
Patch2: vmstat-timestamps.patch
a2be1b
Patch3: watch-fd-leak.patch
a2be1b
Patch4: vmstat-format-security.patch
a2be1b
Patch5: subtract-shmem-from-cached.patch
2006ba
2006ba
Requires(post): /sbin/ldconfig
2006ba
Requires(postun): /sbin/ldconfig
2006ba
2006ba
Requires: systemd-libs
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
2006ba
%prep
2006ba
%setup -q -n %{name}-%{version}
2006ba
2006ba
%patch0 -p1
2006ba
%patch1 -p1
2006ba
%patch2 -p1
2006ba
%patch3 -p1
2006ba
%patch4 -p1
2006ba
%patch5 -p1
a2be1b
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} \
2006ba
            --docdir=/unwanted \
2006ba
            --disable-static \
2006ba
            --disable-w-from \
2006ba
            --disable-kill \
2006ba
            --disable-rpath \
2006ba
            --enable-watch8bit \
2006ba
            --enable-skill \
2006ba
            --enable-sigwinch \
2006ba
            --enable-libselinux \
a2be1b
            --with-systemd \
a2be1b
            --disable-pidof
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
2006ba
mkdir -p %{buildroot}%{_sysconfdir}/sysctl.d
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
%{_sysconfdir}/sysctl.d
2006ba
%{_mandir}/man1/*
2006ba
%{_mandir}/man8/*
2006ba
%{_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
2006ba
2006ba
%changelog
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