]> git.pld-linux.org Git - packages/psmisc.git/blob - psmisc.spec
- updated to 23.2
[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.2
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:  0524258861f00be1a02d27d39d8e5e62
22 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
23 # Source1-md5:  9add7665e440bbd6b0b4f9293ba8b86d
24 Patch0:         %{name}-pl.po-update.patch
25 URL:            http://psmisc.sourceforge.net/
26 BuildRequires:  autoconf >= 2.68
27 BuildRequires:  automake >= 1:1.10
28 BuildRequires:  gettext-tools >= 0.16.1
29 %{?with_selinux:BuildRequires:  libselinux-devel}
30 BuildRequires:  ncurses-devel >= 5.0
31 Conflicts:      heartbeat < 2.0.8-0.2
32 Conflicts:      rc-scripts < 0.4.1.6-2
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %define         _bindir         /bin
36
37 %description
38 The psmisc package contains utilities for managing processes on your
39 system: pstree, killall and fuser. The pstree command displays a tree
40 structure of all of the running processes on your system. The killall
41 command sends a specified signal (SIGTERM if nothing is specified) to
42 processes identified by name. The fuser command identifies the PIDs of
43 processes that are using specified files or filesystems.
44
45 %description -l de.UTF-8
46 Das psmisc-Paket enthält Utilities zum Verwalten vom Prozessen auf
47 Ihrem System: pstree, killall und fuser. Der pstree-Befehl zeigt eine
48 Baumstruktur von allen laufenden Prozessen an. killall schickt
49 angegebenen Programmen ein Signal (SIGTERM, falls nichts anderes
50 angegeben wird). fuser identifiziert die PIDs (Prozess-IDs) von
51 Prozessen, die bestimmte Dateien oder Dateisysteme benutzen.
52
53 %description -l es.UTF-8
54 Este paquete contiene programas para enseñar un árbol de procesos,
55 saber que usuarios tienen archivo abierto y mandar señales a los
56 procesos por nombre.
57
58 %description -l fr.UTF-8
59 Ce paquetage contient les programmes pour afficher une arborescence de
60 processus, trouver quel utilisateur a un fichier ouvert et envoyer des
61 signaux aux processes par leurs noms.
62
63 %description -l pl.UTF-8
64 Ten pakiet zawiera programy umożliwiające wyświetlenie drzewa
65 procesów, znalezienie użytkownika, który otworzył dany plik i wysłanie
66 sygnału do procesu o zadanej nazwie.
67
68 %description -l pt_BR.UTF-8
69 Este pacote contém programas para mostrar uma árvore de processos,
70 saber quais usuários têm arquivo aberto e mandar sinais aos processos
71 por nome.
72
73 %description -l ru.UTF-8
74 В этот пакет включены программы для отображения дерева процессов,
75 получения информации о том, кем открыт файл и для посылки сигналов
76 процессам по имени процесса.
77
78 %description -l tr.UTF-8
79 Bu paket, süreçlerin ağaç yapısını göstermek, hangi kullanıcıların
80 açık dosyası olduğunu bulmak ve süreçlere isimleri ile sinyal
81 göndermek için gerekli programları içerir.
82
83 %description -l uk.UTF-8
84 Цей пакет містить програми для відображення дерева процесів, посилки
85 сигналів процесам по імені процеса та отримання інформації про те, хто
86 відкрив файл.
87
88 %prep
89 %setup -q
90 #%patch0 -p1
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.07453 seconds and 3 git commands to generate.