Advertisement
david_david

procps-ng.spec

Apr 27th, 2014
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. %define major 3
  2. %define libname %mklibname procps %{major}
  3. %define develname %mklibname procps -d
  4.  
  5. Name: procps-ng
  6. Version: 3.3.9
  7. Release: %mkrel 1
  8. Summary: System and process monitoring utilities
  9. License: GPLv2+ and LGPLv2+
  10. Group: Monitoring
  11. Url: http://sourceforge.net/projects/procps-ng/
  12. Source0: http://sourceforge.net/projects/procps-ng/files/Production/%{name}-%{version}.tar.xz
  13. Patch0: procps-ng-3.3.9-fdr-vmstat-wide-not-wide-enough.patch
  14. Patch1: procps-ng-3.3.9-fdr-ksh-skip-trailing-zeros.patch
  15. Patch2: procps-ng-3.3.9-fdr-vmstat-timestamps.patch
  16. Patch3: procps-ng-3.3.9-fdr-watch-fd-leak.patch
  17. Patch4: procps-ng-3.3.9-fdr-vmstat-format-security.patch
  18. Patch5: procps-ng-3.3.9-fdr-subtract-shmem-from-cached.patch
  19. Patch6: procps-ng-3.3.9-fdr-sysctl-linelen-signed.patch
  20. Patch7: procps-ng-3.3.9-fdr-ps-man-tracing.patch
  21. BuildRequires: libtool
  22. BuildRequires: gettext-devel
  23. BuildRequires: pkgconfig(ncursesw)
  24. BuildRequires: pkgconfig(libsystemd-login)
  25. BuildRequires: pkgconfig(libselinux)
  26.  
  27. Requires: systemd-units
  28.  
  29. Provides: procps = %{version}-%{release}
  30. Obsoletes: procps < %{version}-%{release}
  31.  
  32. %description
  33. procps-ng is a fork of the procps project.
  34. The procps-ng package contains a set of system utilities which provide system
  35. information.
  36.  
  37. Procps-ng includes ps, free, skill, snice, pgrep, pmap, pwdx, slabtop, sysctl,
  38. tload, top, uptime, vmstat, w and watch.
  39.  
  40. * The ps command displays a snapshot of running processes.
  41. * The top command provides a repetitive update of the statuses of running
  42. processes.
  43. * The free command displays the amounts of free and used memory on your
  44. system.
  45. * The skill command sends a terminate command (or another specified signal)
  46. to a specified set of processes.
  47. * The snice command is used to change the scheduling priority of specified
  48. processes.
  49. * The tload command prints a graph of the current system load average to a
  50. specified tty.
  51. * The uptime command displays the current time, how long the system has been
  52. running, how many users are logged on and system load averages for the past
  53. one, five and fifteen minutes.
  54. * The w command displays a list of the users who are currently logged on and
  55. what they're running.
  56. * The watch program watches a running program.
  57. * The vmstat command displays virtual memory statistics about processes,
  58. memory, paging, block I/O, traps and CPU activity.
  59.  
  60.  
  61. %package -n %{libname}
  62. Summary: Main libary for %{name}
  63. Group: System/Libraries
  64. License: LGPLv2+
  65.  
  66. %description -n %{libname}
  67. Main library for %{name}.
  68.  
  69.  
  70. %package -n %{develname}
  71. Summary: Development files for %{name}
  72. Group: Development/C
  73. License: GPLv2+ and LGPLv2+
  74. Requires: %{libname} = %{version}-%{release}
  75. Provides: %{name}-devel = %{version}-%{release}
  76. Provides: procps-devel = %{version}-%{release}
  77. Obsoletes: procps-devel < 3.2.8-7
  78.  
  79. %description -n %{develname}
  80. Development headers and library for the %{name} library.
  81.  
  82.  
  83. %prep
  84. %setup -q
  85. %apply_patches
  86.  
  87. sed -e 's#${exec_prefix}/usr/bin#${bindir}#' -i configure.ac
  88.  
  89. %build
  90. autoreconf -vfi
  91. %configure2_5x \
  92. --disable-static \
  93. --disable-kill \
  94. --disable-pidof \
  95. --enable-watch8bit \
  96. --enable-skill \
  97. --enable-sigwinch \
  98. --enable-libselinux \
  99. --with-systemd
  100. %make
  101.  
  102. %install
  103. %makeinstall_std
  104.  
  105. # we don't want these
  106. find %{buildroot} -name '*.la' -delete
  107.  
  108. %files
  109. %doc ABOUT-NLS AUTHORS COPYING COPYING.LIB NEWS README Documentation/{FAQ,BUGS,TODO} top/README.top
  110. %{_sbindir}/sysctl
  111. %{_bindir}/ps
  112. %{_bindir}/free
  113. %{_bindir}/pgrep
  114. %{_bindir}/pmap
  115. %{_bindir}/pwdx
  116. %{_bindir}/pkill
  117. %{_bindir}/skill
  118. %{_bindir}/slabtop
  119. %{_bindir}/snice
  120. %{_bindir}/tload
  121. %{_bindir}/top
  122. %{_bindir}/uptime
  123. %{_bindir}/vmstat
  124. %{_bindir}/w
  125. %{_bindir}/watch
  126.  
  127. %{_mandir}/man1/ps.1*
  128. %{_mandir}/man1/free.1*
  129. %{_mandir}/man1/pgrep.1*
  130. %{_mandir}/man1/pkill.1*
  131. %{_mandir}/man1/skill.1*
  132. %{_mandir}/man1/snice.1*
  133. %{_mandir}/man1/pmap.1*
  134. %{_mandir}/man1/pwdx.1*
  135. %{_mandir}/man1/slabtop.1*
  136. %{_mandir}/man1/tload.1*
  137. %{_mandir}/man1/top.1*
  138. %{_mandir}/man1/uptime.1*
  139. %{_mandir}/man1/w.1*
  140. %{_mandir}/man1/watch.1*
  141.  
  142. %{_mandir}/man5/sysctl.conf.5*
  143.  
  144. %{_mandir}/man8/sysctl.8*
  145. %{_mandir}/man8/vmstat.8*
  146.  
  147. %files -n %{libname}
  148. %doc COPYING.LIB
  149. %{_libdir}/libprocps.so.%{major}
  150. %{_libdir}/libprocps.so.%{major}.*
  151.  
  152. %files -n %{develname}
  153. %doc COPYING COPYING.LIB
  154. %{_includedir}/proc
  155. %{_libdir}/libprocps.so
  156. %{_libdir}/pkgconfig/libprocps.pc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement