From f41230d1d65194fa4268f74b64335650a40db57b Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 30 Mar 2013 05:49:56 -0700 Subject: [PATCH] add packaging --- packaging/procps-ng.spec | 117 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 packaging/procps-ng.spec diff --git a/packaging/procps-ng.spec b/packaging/procps-ng.spec new file mode 100644 index 0000000..a2b4c52 --- /dev/null +++ b/packaging/procps-ng.spec @@ -0,0 +1,117 @@ +%global tests_enabled 0 + +Name: procps-ng +Version: 3.3.7 +Release: 1 +License: GPL-2.0 and LGPL-2.0+ +Summary: System and process monitoring utilities +Url: https://sourceforge.net/projects/procps-ng/ +Group: System/Base +Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz + +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gettext-devel +BuildRequires: libtool +BuildRequires: ncurses-devel + +%if %{tests_enabled} +BuildRequires: dejagnu +%endif + +Provides: procps = %{version} +Obsoletes: procps < 3.3.4-1 + +Provides: /sbin/sysctl +Provides: /bin/ps + +%description +The procps package contains a set of system utilities that provide +system information. Procps includes ps, free, skill, pkill, pgrep, +snice, tload, top, uptime, vmstat, w, watch and pwdx. 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 are 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. The pwdx command reports the current +working directory of a process or processes. + +%package devel +Summary: System and process monitoring utilities +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version} +Provides: procps-devel = %{version} +Obsoletes: procps-devel < 3.3.4-1 + +%description devel +System and process monitoring utilities development headers + +%prep +%setup -q + +%build +%reconfigure +./configure --prefix=/ \ + --bindir=%{_bindir} \ + --sbindir=%{_sbindir} \ + --libdir=%{_libdir} \ + --mandir=%{_mandir} \ + --includedir=%{_includedir} \ + --sysconfdir=%{_sysconfdir} \ + --docdir=/unwanted \ + --disable-static \ + --disable-w-from \ + --disable-kill \ + --disable-rpath + + +make CFLAGS="%{optflags}" + + + +%if %{tests_enabled} +%check +make check +%endif + + +%install +%make_install + +mkdir -p %{buildroot}%{_sysconfdir}/sysctl.d +rm -rf %{buildroot}/unwanted + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%docs_package + +%files +%license COPYING COPYING.LIB +%{_libdir}/libprocps.so.* +%{_bindir}/* +%{_sbindir}/* +%{_sysconfdir}/sysctl.d + +%exclude %{_sysconfdir}/sysctl.conf + +%files devel +%{_libdir}/libprocps.so +%{_includedir}/proc +%{_libdir}/pkgconfig/libprocps.pc + +%changelog -- 2.7.4