]> git.pld-linux.org Git - packages/psmisc.git/blob - psmisc.spec
e7b006ca5a8b03c3357b5a36710faca0b46651a5
[packages/psmisc.git] / psmisc.spec
1 #
2 # Conditional build:
3 %bcond_without  selinux         # build without SELinux support
4 #
5 Summary:        Utilities for managing processes on your system
6 Summary(de.UTF-8):      Utilities zum Verwalten der Prozesse auf Ihrem System
7 Summary(es.UTF-8):      Más herramientas de tipo ps para el sistema de archivos /proc
8 Summary(fr.UTF-8):      Autres outils du type ps pour le système de fichiers /proc
9 Summary(ko.UTF-8):      시스템에서 프로세서를 관리하는 도구
10 Summary(pl.UTF-8):      Narzędzia do kontroli procesów
11 Summary(pt_BR.UTF-8):   Mais ferramentas do tipo ps para o sistema de arquivos /proc
12 Summary(ru.UTF-8):      Утилиты работы с процессами
13 Summary(tr.UTF-8):      /proc dosya sistemi için ps tipi araçlar
14 Summary(uk.UTF-8):      Утиліти роботи з процесами
15 Name:           psmisc
16 Version:        23.3
17 Release:        1
18 License:        GPL v2+
19 Group:          Applications/System
20 Source0:        http://downloads.sourceforge.net/psmisc/%{name}-%{version}.tar.xz
21 # Source0-md5:  573bf80e6b0de86e7f307e310098cf86
22 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
23 # Source1-md5:  9add7665e440bbd6b0b4f9293ba8b86d
24 URL:            http://psmisc.sourceforge.net/
25 BuildRequires:  autoconf >= 2.68
26 BuildRequires:  automake >= 1:1.10
27 BuildRequires:  gettext-tools >= 0.16.1
28 # for %ms scanf format
29 BuildRequires:  glibc-devel >= 6:2.7
30 %{?with_selinux:BuildRequires:  libselinux-devel}
31 BuildRequires:  ncurses-devel >= 5.0
32 Conflicts:      heartbeat < 2.0.8-0.2
33 Conflicts:      rc-scripts < 0.4.1.6-2
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %define         _bindir         /bin
37
38 %description
39 The psmisc package contains utilities for managing processes on your
40 system: pstree, killall and fuser. The pstree command displays a tree
41 structure of all of the running processes on your system. The killall
42 command sends a specified signal (SIGTERM if nothing is specified) to
43 processes identified by name. The fuser command identifies the PIDs of
44 processes that are using specified files or filesystems.
45
46 %description -l de.UTF-8
47 Das psmisc-Paket enthält Utilities zum Verwalten vom Prozessen auf
48 Ihrem System: pstree, killall und fuser. Der pstree-Befehl zeigt eine
49 Baumstruktur von allen laufenden Prozessen an. killall schickt
50 angegebenen Programmen ein Signal (SIGTERM, falls nichts anderes
51 angegeben wird). fuser identifiziert die PIDs (Prozess-IDs) von
52 Prozessen, die bestimmte Dateien oder Dateisysteme benutzen.
53
54 %description -l es.UTF-8
55 Este paquete contiene programas para enseñar un árbol de procesos,
56 saber que usuarios tienen archivo abierto y mandar señales a los
57 procesos por nombre.
58
59 %description -l fr.UTF-8
60 Ce paquetage contient les programmes pour afficher une arborescence de
61 processus, trouver quel utilisateur a un fichier ouvert et envoyer des
62 signaux aux processes par leurs noms.
63
64 %description -l pl.UTF-8
65 Ten pakiet zawiera programy umożliwiające wyświetlenie drzewa
66 procesów, znalezienie użytkownika, który otworzył dany plik i wysłanie
67 sygnału do procesu o zadanej nazwie.
68
69 %description -l pt_BR.UTF-8
70 Este pacote contém programas para mostrar uma árvore de processos,
71 saber quais usuários têm arquivo aberto e mandar sinais aos processos
72 por nome.
73
74 %description -l ru.UTF-8
75 В этот пакет включены программы для отображения дерева процессов,
76 получения информации о том, кем открыт файл и для посылки сигналов
77 процессам по имени процесса.
78
79 %description -l tr.UTF-8
80 Bu paket, süreçlerin ağaç yapısını göstermek, hangi kullanıcıların
81 açık dosyası olduğunu bulmak ve süreçlere isimleri ile sinyal
82 göndermek için gerekli programları içerir.
83
84 %description -l uk.UTF-8
85 Цей пакет містить програми для відображення дерева процесів, посилки
86 сигналів процесам по імені процеса та отримання інформації про те, хто
87 відкрив файл.
88
89 %prep
90 %setup -q
91
92 %build
93 install -d misc; echo -n '#!/bin/sh\necho -n %{version}' > misc/git-version-gen; chmod +x misc/git-version-gen
94 %{__gettextize}
95 %{__aclocal} -I m4
96 %{__autoconf}
97 %{__autoheader}
98 %{__automake}
99 CFLAGS="%{rpmcflags} -D_GNU_SOURCE -I/usr/include/ncurses"
100 %configure \
101         --enable-timeout-stat=static \
102         %{?with_selinux:--enable-selinux}
103 %{__make}
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107
108 %{__make} install \
109         DESTDIR=$RPM_BUILD_ROOT
110
111 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
112 %{__rm} $RPM_BUILD_ROOT%{_mandir}/README.psmisc-non-english-man-pages
113
114 %find_lang %{name}
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %files -f %{name}.lang
120 %defattr(644,root,root,755)
121 %doc AUTHORS ChangeLog README
122 %attr(755,root,root) %{_bindir}/fuser
123 %attr(755,root,root) %{_bindir}/killall
124 %attr(755,root,root) %{_bindir}/peekfd
125 %attr(755,root,root) %{_bindir}/prtstat
126 %attr(755,root,root) %{_bindir}/pslog
127 %attr(755,root,root) %{_bindir}/pstree
128 %attr(755,root,root) %{_bindir}/pstree.x11
129 %{_mandir}/man1/fuser.1*
130 %{_mandir}/man1/killall.1*
131 %{_mandir}/man1/peekfd.1*
132 %{_mandir}/man1/pslog.1*
133 %{_mandir}/man1/prtstat.1*
134 %{_mandir}/man1/pstree.1*
135 %lang(fi) %{_mandir}/fi/man1/*
136 %lang(fr) %{_mandir}/fr/man1/*
137 %lang(hu) %{_mandir}/hu/man1/*
138 %lang(it) %{_mandir}/it/man1/*
139 %lang(ja) %{_mandir}/ja/man1/*
140 %lang(ko) %{_mandir}/ko/man1/*
141 %lang(nl) %{_mandir}/nl/man1/*
142 %lang(pl) %{_mandir}/pl/man1/*
This page took 0.179335 seconds and 2 git commands to generate.