Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %define major 3
- %define libname %mklibname procps %{major}
- %define develname %mklibname procps -d
- Name: procps-ng
- Version: 3.3.9
- Release: %mkrel 1
- Summary: System and process monitoring utilities
- License: GPLv2+ and LGPLv2+
- Group: Monitoring
- Url: http://sourceforge.net/projects/procps-ng/
- Source0: http://sourceforge.net/projects/procps-ng/files/Production/%{name}-%{version}.tar.xz
- Patch0: procps-ng-3.3.9-fdr-vmstat-wide-not-wide-enough.patch
- Patch1: procps-ng-3.3.9-fdr-ksh-skip-trailing-zeros.patch
- Patch2: procps-ng-3.3.9-fdr-vmstat-timestamps.patch
- Patch3: procps-ng-3.3.9-fdr-watch-fd-leak.patch
- Patch4: procps-ng-3.3.9-fdr-vmstat-format-security.patch
- Patch5: procps-ng-3.3.9-fdr-subtract-shmem-from-cached.patch
- Patch6: procps-ng-3.3.9-fdr-sysctl-linelen-signed.patch
- Patch7: procps-ng-3.3.9-fdr-ps-man-tracing.patch
- BuildRequires: libtool
- BuildRequires: gettext-devel
- BuildRequires: pkgconfig(ncursesw)
- BuildRequires: pkgconfig(libsystemd-login)
- BuildRequires: pkgconfig(libselinux)
- Requires: systemd-units
- Provides: procps = %{version}-%{release}
- Obsoletes: procps < %{version}-%{release}
- %description
- procps-ng is a fork of the procps project.
- The procps-ng package contains a set of system utilities which provide system
- information.
- Procps-ng includes ps, free, skill, snice, pgrep, pmap, pwdx, slabtop, sysctl,
- tload, top, uptime, vmstat, w and watch.
- * The ps command displays a snapshot of running processes.
- * The top command provides a repetitive update of the statuses of running
- processes.
- * The free command displays the amounts of free and used memory on your
- system.
- * The skill command sends a terminate command (or another specified signal)
- to a specified set of processes.
- * The snice command is used to change the scheduling priority of specified
- processes.
- * The tload command prints a graph of the current system load average to a
- specified tty.
- * The uptime command displays the current time, how long the system has been
- running, how many users are logged on and system load averages for the past
- one, five and fifteen minutes.
- * The w command displays a list of the users who are currently logged on and
- what they're running.
- * The watch program watches a running program.
- * The vmstat command displays virtual memory statistics about processes,
- memory, paging, block I/O, traps and CPU activity.
- %package -n %{libname}
- Summary: Main libary for %{name}
- Group: System/Libraries
- License: LGPLv2+
- %description -n %{libname}
- Main library for %{name}.
- %package -n %{develname}
- Summary: Development files for %{name}
- Group: Development/C
- License: GPLv2+ and LGPLv2+
- Requires: %{libname} = %{version}-%{release}
- Provides: %{name}-devel = %{version}-%{release}
- Provides: procps-devel = %{version}-%{release}
- Obsoletes: procps-devel < 3.2.8-7
- %description -n %{develname}
- Development headers and library for the %{name} library.
- %prep
- %setup -q
- %apply_patches
- sed -e 's#${exec_prefix}/usr/bin#${bindir}#' -i configure.ac
- %build
- autoreconf -vfi
- %configure2_5x \
- --disable-static \
- --disable-kill \
- --disable-pidof \
- --enable-watch8bit \
- --enable-skill \
- --enable-sigwinch \
- --enable-libselinux \
- --with-systemd
- %make
- %install
- %makeinstall_std
- # we don't want these
- find %{buildroot} -name '*.la' -delete
- %files
- %doc ABOUT-NLS AUTHORS COPYING COPYING.LIB NEWS README Documentation/{FAQ,BUGS,TODO} top/README.top
- %{_sbindir}/sysctl
- %{_bindir}/ps
- %{_bindir}/free
- %{_bindir}/pgrep
- %{_bindir}/pmap
- %{_bindir}/pwdx
- %{_bindir}/pkill
- %{_bindir}/skill
- %{_bindir}/slabtop
- %{_bindir}/snice
- %{_bindir}/tload
- %{_bindir}/top
- %{_bindir}/uptime
- %{_bindir}/vmstat
- %{_bindir}/w
- %{_bindir}/watch
- %{_mandir}/man1/ps.1*
- %{_mandir}/man1/free.1*
- %{_mandir}/man1/pgrep.1*
- %{_mandir}/man1/pkill.1*
- %{_mandir}/man1/skill.1*
- %{_mandir}/man1/snice.1*
- %{_mandir}/man1/pmap.1*
- %{_mandir}/man1/pwdx.1*
- %{_mandir}/man1/slabtop.1*
- %{_mandir}/man1/tload.1*
- %{_mandir}/man1/top.1*
- %{_mandir}/man1/uptime.1*
- %{_mandir}/man1/w.1*
- %{_mandir}/man1/watch.1*
- %{_mandir}/man5/sysctl.conf.5*
- %{_mandir}/man8/sysctl.8*
- %{_mandir}/man8/vmstat.8*
- %files -n %{libname}
- %doc COPYING.LIB
- %{_libdir}/libprocps.so.%{major}
- %{_libdir}/libprocps.so.%{major}.*
- %files -n %{develname}
- %doc COPYING COPYING.LIB
- %{_includedir}/proc
- %{_libdir}/libprocps.so
- %{_libdir}/pkgconfig/libprocps.pc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement