Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37788578
en ru br
Репозитории ALT
S:3.3.17-alt7.g37f1060
5.1: 3.2.7-alt2
4.1: 3.2.5-alt7.M41.1
4.0: 3.2.5-alt7
3.0: 3.2.4-alt2
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: procps

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: procps
%define major_version 3
%define minor_version 2
%define revision 4
Version: %major_version.%minor_version.%revision
Release: alt2

Summary: Utilities for monitoring your system and processes on your system
License: GPL
Group: Monitoring
Packager: Stanislav Ievlev <inger at altlinux.org>

URL:  http://procps.sourceforge.net/
Source: %name-%version.tar.bz2
Patch1: procps-3.2.3-mdk-sysctlshutup.patch
Patch2: procps-3.1.15-rh-misc.patch
Patch3: procps-3.2.3-rh-pseudo.patch
Patch4: procps-3.2.3-rh-noproc.patch
Patch5: procps-3.2.4-alt-soname.patch
Patch6: procps-3.2.2-suse-w-notruncate.patch

#Provides: libproc.so.%major_version.%minor_version

Requires: coreutils >= 5.2.1-alt2
Provides: %name-X11 = %version
Obsoletes: %name-X11

# Automatically added by buildreq on Thu Oct 23 2003

BuildRequires: libncurses-devel libtinfo-devel

%package devel
Group: Development/C
Summary: Utilities for monitoring your system and processes on your system
Requires: %name = %version

%package X11
Group: Monitoring
Summary: An X based system message monitoring utility
Requires: %name = %version

%description
The procps package contains a set of system utilities which provide system
information.

Procps includes ps, free, skill, snice, 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.

%description devel
Developement headers and library for the proc library.

%description X11
The procps-X11 package contains X Window System utilities for monitoring your
system. The utilities contained in this package generally provide graphical
representations of the information provided by the tools in the procps package.

You can install the procps-X11 package if you'd like to use a graphical system
monitoring utility.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1

for f in `find -type f -name \*.1`; do
if head -1 "$f" |grep -qs '^,\\" '; then
%__subst 's/^,\\" /.\\" /' "$f"
fi
done

%build
#NO SMP
%make OPT="$RPM_OPT_FLAGS"

%install
make ldconfig=true DESTDIR=%buildroot lib64=%_lib install="install -D" SKIP="/bin/kill /usr/share/man/man1/kill.1" install

ln -sf skill $RPM_BUILD_ROOT%_bindir/snice
ln -sf pgrep $RPM_BUILD_ROOT%_bindir/pkill

ln -s libproc.so.%version $RPM_BUILD_ROOT/%_lib/libproc.so.%major_version.%minor_version
ln -s libproc.so.%version $RPM_BUILD_ROOT/%_lib/libproc.so.%major_version
%__install -d -m755 $RPM_BUILD_ROOT%_libdir
ln -s /lib/libproc.so.%version $RPM_BUILD_ROOT%_libdir/libproc.so

%__install -d -m755 $RPM_BUILD_ROOT%_includedir/%name/
%__install -p -m644 proc/*.h $RPM_BUILD_ROOT%_includedir/%name/

#chmod -R u+w,a+rX,go-w $RPM_BUILD_ROOT/


%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
/%_lib/*.so.*
/bin/*
/sbin/*
%_bindir/*
%_mandir/man?/*
%doc NEWS BUGS TODO

%files devel
%_libdir/*.so
%_includedir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin