]> git.pld-linux.org Git - packages/util-linux.git/blame - util-linux.spec
rebuild with python 3.10
[packages/util-linux.git] / util-linux.spec
CommitLineData
a7980c08 1# TODO
7a5ed8cc 2# - remote chfn/chsh (BR: libuser >= 0.58)? - but PLD uses pwdutils/shadow implementation currently
6e84fb29
JB
3# - verify initrd tools set:
4# - I've taken list from 2.21.3 package, but there was no explicit list, so
5# there are probably some unneeded tools
6# - chrt is not built now (because of --disable-schedutils), but it's probably not needed
7# - fsck is not built now (because of --disable-libmount)
8# - maybe we want some more now?
1d44bc2b
ER
9# - agetty: Documentation/releases/v2.32-ReleaseNotes:54: - add support for /etc/issue.d [Karel Zak]
10# https://github.com/karelzak/util-linux/commit/1fc82a1360305f696dc1be6105c9c56a9ea03f52#diff-d7efd2b3dbb10e54185f001dc21d43db
67de32db 11#
12# Conditional build:
ab1c0a80 13%bcond_with uClibc # link initrd version with static glibc instead of uClibc
67de32db 14%bcond_without dietlibc # link initrd version with dietlibc instead of uClibc
f7f13771 15%bcond_without apidocs # API documentation for libraries
dd83e5d1 16%bcond_without selinux # SELinux support
034a23bb 17%bcond_without su # su/runuser programs
0deefbb8 18%bcond_without systemd # systemd
67de32db 19%if "%{pld_release}" == "ac"
6e84fb29
JB
20%bcond_with initrd # don't build initrd version
21%bcond_with fallocate # fallocate utility (needs glibc 2.11 to compile)
67de32db 22%else
adda81e8 23%bcond_with initrd # don't build initrd version
67de32db 24%bcond_without fallocate # fallocate utility (needs glibc 2.11 to compile)
25%endif
26
27%if "%{pld_release}" == "ac"
28%define pam_ver 0.79.0
29%else
298c2787 30%define pam_ver 1:1.1.8-5
67de32db 31%endif
32
33Summary: Collection of basic system utilities for Linux
34Summary(de.UTF-8): Sammlung von grundlegenden Systemdienstprogrammen für Linux
35Summary(es.UTF-8): Colectánea de utilitarios básicos de sistema para Linux
36Summary(fr.UTF-8): Ensemble d'utilitaires système de base pour Linux
37Summary(pl.UTF-8): Zbiór podstawowych narzędzi systemowych dla Linuksa
38Summary(pt_BR.UTF-8): Coletânea de utilitários básicos de sistema para Linux
39Summary(ru.UTF-8): Набор базовых системных утилит для Linux
40Summary(tr.UTF-8): Temel sistem araçları
41Summary(uk.UTF-8): Набір базових системних утиліт для Linux
0057a448 42Name: util-linux
fb7db72b 43Version: 2.37.4
7dfb65fa 44Release: 2
56a8c6a4 45License: GPL v2+, GPL v3 (hwclock)
67de32db 46Group: Applications/System
debc0a65 47# https://github.com/karelzak/util-linux (GitHub backup)
028b554f 48Source0: https://www.kernel.org/pub/linux/utils/util-linux/v2.37/%{name}-%{version}.tar.xz
fb7db72b 49# Source0-md5: 755919e658c349cad9e1c7c771742d48
a0732ddc 50Source1: %{name}-non-english-man-pages.tar.bz2
67de32db 51# Source1-md5: 3c940c7e7fe699eaa2ddb1bffb3de2fe
52Source2: login.pamd
0057a448 53Source3: %{name}-blockdev.init
54Source4: %{name}-blockdev.sysconfig
db301a98
AM
55Source6: su.pamd
56Source7: su-l.pamd
034a23bb
JB
57Source8: runuser.pamd
58Source9: runuser-l.pamd
9ebc19a0
JR
59Source10: nologin.c
60Source11: nologin.8
d18bf877
JR
61Source12: blockdev.service
62Source13: blockdev.sh
f1f79628
JR
63Patch0: %{name}-fdformat-ide.patch
64Patch1: %{name}-fhs.patch
65Patch2: %{name}-login-lastlog.patch
66Patch3: %{name}-procpartitions.patch
67Patch4: su-paths.patch
768477bc
JB
68Patch5: %{name}-ac.patch
69Patch6: %{name}-diet.patch
6590e7e5 70Patch7: %{name}-rtas.patch
8b6144a3 71URL: https://github.com/karelzak/util-linux
67de32db 72BuildRequires: audit-libs-devel >= 1.0.6
028b554f 73BuildRequires: autoconf >= 2.64
67de32db 74BuildRequires: automake >= 1:1.10
23b3a521 75BuildRequires: gettext-tools >= 0.21
67de32db 76%{?with_fallocate:BuildRequires: glibc-devel >= 6:2.11}
f7f13771 77%if %{with apidocs}
3146265b 78BuildRequires: gtk-doc >= 1.10
d1fc3015 79BuildRequires: gtk-doc-automake >= 1.10
f7f13771 80%endif
d18bf877 81BuildRequires: libcap-ng-devel
768477bc
JB
82%ifarch ppc ppc64
83# for lscpu
84BuildRequires: librtas-devel
85%endif
028b554f 86%{?with_selinux:BuildRequires: libselinux-devel >= 2.5}
67de32db 87%{?with_selinux:BuildRequires: libsepol-devel}
5d3a1d7c 88BuildRequires: libtool >= 2:2.2
67de32db 89BuildRequires: linux-libc-headers >= 7:2.6.27
90BuildRequires: ncurses-devel >= 5.0
91BuildRequires: pam-devel >= %{pam_ver}
92BuildRequires: pkgconfig
028b554f 93BuildRequires: po4a
971f9098 94BuildRequires: python3-devel
993f4721 95BuildRequires: readline-devel
67de32db 96BuildRequires: rpm >= 4.4.9-56
d0bdca74 97BuildRequires: rpmbuild(macros) >= 1.752
028b554f 98BuildRequires: ruby-asciidoctor
67de32db 99BuildRequires: sed >= 4.0
0deefbb8 100%{?with_systemd:BuildRequires: systemd-devel >= 1:209}
a7980c08 101BuildRequires: tar >= 1:1.22
5d31eab4 102BuildRequires: udev-devel
a7980c08 103BuildRequires: xz
67de32db 104BuildRequires: zlib-devel
105%if %{with initrd}
106 %if %{with uClibc}
107BuildRequires: uClibc-static >= 2:0.9.29
108 %else
109 %if %{with dietlibc}
535578d6 110BuildRequires: dietlibc-static >= 2:0.32-14
67de32db 111 %else
112BuildRequires: glibc-static
113 %endif
114 %endif
115%endif
589e99da 116Requires: libblkid = %{version}-%{release}
c7c0c6cb 117Requires: libfdisk = %{version}-%{release}
4a52de32 118Requires: libmount = %{version}-%{release}
028b554f 119%{?with_selinux:Requires: libselinux >= 2.5}
8b6144a3 120Requires: libsmartcols = %{version}-%{release}
26f68a7d 121Requires: pam >= %{pam_ver}
4fa9d824 122Provides: eject = %{version}-%{release}
67de32db 123Provides: fdisk
ce75a7fc 124Provides: hardlink
67de32db 125Provides: linux32
126Provides: sparc32
9041dcaf
JB
127Obsoletes: cramfs < 1.2
128Obsoletes: eject < 2.2
129Obsoletes: hardlink < 1.1
130Obsoletes: ionice < 0.2
131Obsoletes: linux32 < 1.1
132Obsoletes: rawdevices < 2.14
133Obsoletes: rfkill < 1.1
134Obsoletes: schedutils < 1.4
135Obsoletes: setarch < 1.8
136Obsoletes: sparc32 < 1.2
137Obsoletes: util-linux-chkdupexe < 2.23
28b99029 138Obsoletes: util-linux-ng < 2.20-1
9041dcaf 139Obsoletes: util-linux-suid < 2.9o-10
971f9098 140Conflicts: SysVinit-tools < 2.88-15
67de32db 141Conflicts: e2fsprogs < 1.41.8-5
cc3d4f31 142Conflicts: rc-scripts < 0.4.9-2
67de32db 143Conflicts: shadow-extras < 1:4.0.3-6
034a23bb 144%if %{with su}
034a23bb
JB
145Conflicts: coreutils < 8.19
146%endif
67de32db 147BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
148
149%define debugcflags -O1 -g
150
151# for some reason known only to rpm there must be "\\|" not "\|" here
152%define dietarch %(echo %{_target_cpu} | sed -e 's/i.86\\|pentium.\\|athlon/i386/;s/amd64/x86_64/;s/armv.*/arm/')
153%define dietlibdir %{_prefix}/lib/dietlibc/lib-%{dietarch}
154
155%ifarch ppc ppc64
156# for dietlibc
157%define filterout_ld -Wl,-z,relro
158%endif
159
160%description
161util-linux contains a large variety of low-level system utilities
162necessary for a functional Linux system. This includes, among other
163things, configuration tools such as fdisk and system programs such as
164logger.
165
166%description -l de.UTF-8
167util-linux enthält eine große Anzahl an
168low-level-Systemdienstprogrammen, die für ein funktionierendes
169Linux-System erforderlich sind. Dazu gehören Konfigurationstools wie
170'fdisk' und Systemprogramme wie 'logger'.
171
172%description -l es.UTF-8
173util-linux contiene una gran variedad de utilitarios de sistema de
174bajo nivel necesarios a un sistema Linux funcional. Esto incluye,
175entre otras cosas, herramientas de configuración como fdisk y
176programas de sistema como logger.
177
178%description -l fr.UTF-8
179util-linux contient une grande variété d'utilitaire système bas niveau
180nécessaires au fonctionnement d'un système Linux. Cela comprend, entre
181autres, les outils de configuration comme fdisk et des programmes
182systèmes comme logger.
183
184%description -l pl.UTF-8
185util-linux zawiera wiele różnych, niskopoziomowych narzędzi
186systemowych niezbędnych do prawidłowego działania Linuksa. W pakiecie
187znajdują się między innymi narzędzia konfiguracyjne, takie jak fdisk i
188programy systemowe, takie jak logger.
189
190%description -l pt_BR.UTF-8
191util-linux contém uma grande variedade de utilitários de sistema de
192baixo-nível necessários para um sistema Linux funcional. Isso inclui,
193entre outras coisas, ferramentas de configuração como fdisk e
194programas de sistema como logger.
195
196%description -l ru.UTF-8
197Этот пакет содержит большой набор системных утилит низкого уровня,
198которые необходимы для функционирования системы Linux. Он включает, в
199числе прочих, инструменты конфигурации, такие как fdisk, и системные
200программы, такие как logger.
201
202%description -l tr.UTF-8
203şlevsel durumdaki bir Linux sistemi için gerekli birçok alt düzey
204sistem araçlarını içerir. Bunlar arasında fdisk gibi yapılandırma
205uygulamaları ve logger gibi sistem programları sayılabilir.
206
207%description -l uk.UTF-8
208Цей пакет містить великий набір системних утиліт низького рівня, які
209необхідні для функціонування системи Linux. Він містить, окрім інших,
210конфігураційні інструменти (такі як fdisk) та системні програми (такі
211як logger).
212
213%package -n blockdev
214Summary: Support for blockdev
215Summary(pl.UTF-8): Obsługa blockdev
56a8c6a4 216License: GPL v2+
67de32db 217Group: Applications/System
218Requires(post,preun): /sbin/chkconfig
d18bf877 219Requires(post,preun,postun): systemd-units >= 38
67de32db 220Requires: coreutils
1401d1d4 221Requires: rc-scripts >= 0.4.3.0
d18bf877 222Requires: systemd-units >= 38
67de32db 223
224%description -n blockdev
225The utility blockdev allows one to call block device ioctls from the
226command line. This package also includes initscript to set blockdev
227parameters at system startup.
228
229%description -n blockdev -l pl.UTF-8
230Narzędzie blockdev pozwala na wywołania ioctl dla urządzeń blokowych z
231linii poleceń. Ten pakiet zawiera także skrypt inicjalizacyjny do
232ustawiania parametrów blockdev przy starcie systemu.
233
234%package -n losetup
235Summary: Programs for setting up and configuring loopback devices
236Summary(de.UTF-8): Programme zum Einrichten und Konfigurieren von Loopback-Geräten
237Summary(fr.UTF-8): Programmes pour mettre en place et configurer les loopback
238Summary(pl.UTF-8): Program do konfiguracji urządzenia blokowego loopback
239Summary(ru.UTF-8): Программы для настройки loopback-устройств
240Summary(tr.UTF-8): Yerel-çevrim aygıtlarının kurulması ve ayarlanması için programlar
241Summary(uk.UTF-8): Програми для конфігурації loopback-пристроїв
56a8c6a4 242License: GPL v2+
67de32db 243Group: Applications/System
8b6144a3 244Requires: libsmartcols = %{version}-%{release}
67de32db 245
246%description -n losetup
247Linux supports a special block device called the loopback device,
248which maps a normal file onto a virtual block device. This package
249contains programs for setting up and removing the mapping between
250files and loopback devices.
251
252Block loopback devices should not be confused with the networking
253loopback device, which is configured with the normal ifconfig command.
254
255%description -n losetup -l de.UTF-8
256Linux unterstützt ein spezielles Blockgerät, das sogenannte Loopback,
257das eine normale Datei auf ein virtuelles Blockgerät abbildet. Das
258Paket enthält Programme zum Einrichten und Entfernen der Zuordnung
259zwischen Dateien und Loopback-Geräten.
260
261%description -n losetup -l fr.UTF-8
262Linux gère un périphérique bloc spécial appelé « loopback », qui
263correspond à un fichier normal sur un périphérique bloc virtuel. Ce
264paquetage contient les programmes pour configurer et supprimer la
265correspondance entre les fichiers et les périphériques loopback.
266
267Les périphériques bloc loopback ne doivent pas être confondus avec le
268périphérique loopback du réseau, configuré avec la commande ifconfig
269normale.
270
271%description -n losetup -l pl.UTF-8
272Linux wspiera specjalne urządzenie blokowe loopback, które mapuje
273normalny plik w wirtualne urządzenie blokowe. Pakiet ten zawiera
274program, przy pomocy którego będziesz mógł je skonfigurować.
275
276Urządzenie blokowe loopback nie powinno być mylone z sieciowym
277interfejsem loopback, który jest konfigurowany przy pomocy polecenia
278ifconfig.
279
280%description -n losetup -l ru.UTF-8
281Linux поддерживает специальное блочное устройство, называемое
282loopback, которое отображает обычный файл в виртуальное блочное
283устройство. Это позволяет использовать файл как виртуальную файловую
284систему. Losetup используется для связи loopback-устройств с обычными
285файлами или блочными устройствами, для отсоединения loopback-устройств
286и запросов их статуса.
287
288%description -n losetup -l tr.UTF-8
289Linux özel bir blok aygıt olan yerel-çevrim aygıtını (loopback device)
290destekler. Bu aygıt normal bir dosyanın sanal bir blok aygıtı üzerine
291haritasını çıkarır. Bu paket, dosyalar ve yerel-çevrim aygıtları
292arasındaki haritalama işleminin kurulması ve kaldırılması için
293programlar içerir. Blok yerel-çevrim aygıtı ifconfig komutu ile
294yapılandırılan ağ yerel-çevrim aygıtı ile karıştırılmamalıdır.
295
296%description -n losetup -l uk.UTF-8
297Linux підтримує спеціальний блочний пристрій, loopback, який
298відображує звичайний файл у віртуальний блочний пристрій. Це дозволяє
299використовувати файл як віртуальну файлову систему. Losetup
300використовують для зв'язку loopback-пристроїв зі звичайними файлами
301або блочними пристроями, для від'єднання loopback-пристроїв та
302запросів їх стану.
303
304%package -n mount
305Summary: Programs for mounting and unmounting filesystems
306Summary(de.UTF-8): Programme zum montieren und abmontieren von Dateisystemen
307Summary(fr.UTF-8): Programme pour monter et démonter des systèmes de fichiers
308Summary(pl.UTF-8): Programy do montowania i odmontowywania systemów plików
309Summary(ru.UTF-8): Программы для монтирования и размонтирования файловых систем
310Summary(tr.UTF-8): Dosya sistemlerini bağlamak ve çözmek için programlar
311Summary(uk.UTF-8): Програми для монтування та розмонтування файлових систем
56a8c6a4 312License: GPL v2+
67de32db 313Group: Applications/System
bc9462df 314Requires: libmount = %{version}-%{release}
8b6144a3 315Requires: libsmartcols = %{version}-%{release}
2b77001e 316Conflicts: SysVinit < 2.86-26
26f68a7d
ER
317# C: nfs-utils-common is opposite to http://cvs.pld-linux.org/packages/nfs-utils/nfs-utils.spec?r1=1.165&r2=1.166
318Conflicts: nfs-utils-common < 1.1.3-3
67de32db 319
320%description -n mount
321mount is used for adding new filesystems, both local and networked, to
322your current directory structure. The filesystems must already exist
323for this to work. It can also be used to change the access types the
324kernel uses for already-mounted filesystems.
325
326This package is critical for the functionality of your system.
327
328%description -n mount -l de.UTF-8
329mount wird zum Hinzufügen neuer Dateisysteme (lokal und im Netzwerk)
330zu Ihrer aktuellen Verzeichnisstruktur verwendet. Die Dateisysteme
331müssen bereits existieren. Außerdem können die Zugriffstypen geändert
332werden, die der Kernel für bereits montierte Dateisysteme verwendet.
333
334Dieses Paket ist für Ihr System unbedingt erforderlich.
335
336%description -n mount -l fr.UTF-8
337mount sert à ajouter de nouveaux systèmes de fichiers, locaux ou
338réseaux, à votre structure de répertoire. Les systèmes de fichiers
339doivent déjà exister pour que cela fonctionne. Il peut aussi servir à
340changer les types d'accès pour les systèmes de fichiers déjà montés.
341
342Ce paquetage est critique pour le fonctionnement de votre système.
343
344%description -n mount -l pl.UTF-8
345Program mount jest używany przez system do montowania systemów plików,
346zarówno lokalnych jak i sieciowych (np. NFS).
347
348Pakiet ten jest niezbędny do prawidłowej pracy twojego Linuksa.
349
350%description -n mount -l ru.UTF-8
351Пакет mount содержит программы mount, umount, swapon и swapoff. Файлы
352в вашей системе организованы в виде одного большого дерева или
353иерархии. Эти файлы могут быть размещены на разных устройствах.
354Команда mount присоединяет файловую систему на некотором устройстве к
355дереву файлов вашей системы. Команда umount отсоединяет файловую
356систему от дерева. Swapon и swapoff, соответственно, разрешает и
357запрещает своппинг в определенные файлы и устройства.
358
359%description -n mount -l tr.UTF-8
360mount, hem yerel hem de ağ dosya sistemlerinin dizin yapısına
361eklenmesi için kullanılır. Bunun için bağlanacak dosya sisteminin
362önceden hazırlanmış olması gerekir. Aynı zamanda çekirdeğin bağlanmış
363dosya sistemlerine erişimini değiştirmek için de kullanılır. Bu paket
364sisteminizin işlevselliği açısından kritiktir.
365
366%description -n mount -l uk.UTF-8
367Пакет mount містить програми mount, umount, swapon та swapoff. Файли у
368вашій системі організовані у вигляді одного великого дерева або
369ієрархії. Ці файли можуть бути розташовані на різних пристроях.
370Команда mount під'єднує файлову систему на деякому пристрої до дерева
371файлів вашої системи. Команда umount від'єднує файлову систему від
372дерева. Swapon та swapoff, відповідно, дозволяє та заборонює свопінг у
373визначені файли або пристрої.
374
67de32db 375%package -n tunelp
376Summary: Configures kernel parallel port driver
377Summary(de.UTF-8): Konfiguriert den Kerneltreiber für den parallelen Port
378Summary(fr.UTF-8): Configure le pilote du port parallèle dans le noyau
379Summary(pl.UTF-8): Program do konfigurowania sterownika portu równoległego
380Summary(tr.UTF-8): Çekirdeğin paralel bağlantı noktası sürücüsünü ayarlar
381License: GPL v2+
382Group: Applications/System
383
384%description -n tunelp
385tunelp aids in configuring the kernel parallel port driver.
386
387%description -n tunelp -l de.UTF-8
388tunelp hilft bei der Konfiguration des Kernel-Parallelport-Treibers.
389
390%description -n tunelp -l fr.UTF-8
391« tunelp » aide à configurer le pilote du noyau pour le port
392parallèle.
393
394%description -n tunelp -l pl.UTF-8
395Program do konfigurowania sterownika portu równoległego.
396
397%description -n tunelp -l tr.UTF-8
398Paralel bağlantı noktası sürücüsünü ayarlar.
399
400%package -n login
401Summary: login is used when signing onto a system
402Summary(pl.UTF-8): login jest używany do rozpoczęcia pracy w systemie
56a8c6a4 403License: GPL v2+
67de32db 404Group: Applications/System
405Requires: pam >= %{pam_ver}
406Obsoletes: heimdal-login
407
408%description -n login
409login is used when signing onto a system. It can also be used to
410switch from one user to another at any time (most modern shells have
411support for this feature built into them, however).
412
413%description -n login -l pl.UTF-8
414login jest używany do rozpoczęcia pracy w systemie. Może być używany
415do przełączania z jednego użytkownika na innego w każdym momencie
416(jednak większość nowoczesnych powłok ma takie funkcje wbudowane).
417
418%package -n agetty
419Summary: Alternative Linux getty
420Summary(pl.UTF-8): Alternatywny getty
56a8c6a4 421License: GPL v2+
67de32db 422Group: Applications/System
423Requires: login
424
425%description -n agetty
426agetty is simple Linux getty with serial support.
427
428%description -n agetty -l pl.UTF-8
429agetty jest prostym linuksowym getty z obsługą portu szeregowego.
430
431%package -n libblkid
432Summary: Library to handle device identification and token extraction
433Summary(pl.UTF-8): Biblioteka do obsługi identyfikacji urządzeń
434License: LGPL v2.1+
435Group: Libraries
28b99029 436Obsoletes: util-linux-ng-libs < 2.20-1
67de32db 437
438%description -n libblkid
439Library to handle device identification and token extraction.
440
441%description -n libblkid -l pl.UTF-8
442Biblioteka do obsługi identyfikacji urządzeń i wydobywania tokenów.
443
444%package -n libblkid-devel
445Summary: Header files for blkid library
446Summary(pl.UTF-8): Pliki nagłówkowe biblioteki blkid
447License: LGPL v2.1+
448Group: Development/Libraries
449Requires: libblkid = %{version}-%{release}
28b99029 450Obsoletes: util-linux-ng-devel < 2.20-1
67de32db 451
452%description -n libblkid-devel
453Header files for blkid library.
454
455%description -n libblkid-devel -l pl.UTF-8
456Pliki nagłówkowe biblioteki blkid.
457
458%package -n libblkid-static
459Summary: Static library to handle device identification and token extraction
460Summary(pl.UTF-8): Statyczna biblioteka do obsługi identyfikacji urządzeń
461License: LGPL v2.1+
462Group: Development/Libraries
463Requires: libblkid-devel = %{version}-%{release}
28b99029 464Obsoletes: util-linux-ng-static < 2.20-1
67de32db 465
466%description -n libblkid-static
467Static library to handle device identification and token extraction.
468
469%description -n libblkid-static -l pl.UTF-8
470Statyczna biblioteka do obsługi identyfikacji urządzeń i wydobywania
471tokenów.
472
473%package -n libblkid-dietlibc
474Summary: Static dietlibc library to handle device identification and token extraction
475Summary(pl.UTF-8): Statyczna biblioteka dietlibc do obsługi identyfikacji urządzeń
476License: LGPL v2.1+
477Group: Development/Libraries
478Requires: libblkid-devel = %{version}-%{release}
67de32db 479
480%description -n libblkid-dietlibc
481Library to handle device identification and token extraction - static
482dietlibc version.
483
484%description -n libblkid-dietlibc -l pl.UTF-8
485Biblioteka do obsługi identyfikacji urządzeń i wydobywania tokenów -
486wersja statyczna dla dietlibc.
487
f7f13771 488%package -n libblkid-apidocs
5ae167c7
MK
489Summary: libblkid API documentation
490Summary(pl.UTF-8): Dokumentacja API libblkid
491Group: Documentation
492Requires: gtk-doc-common
493BuildArch: noarch
f7f13771
MK
494
495%description -n libblkid-apidocs
496libblkid API documentation.
497
498%description -n libblkid-apidocs -l pl.UTF-8
499Dokumentacja API libblkid.
500
67de32db 501%package -n libuuid
502Summary: Library for accessing and manipulating UUID
503Summary(pl.UTF-8): Biblioteka umożliwiająca dostęp i zmiany UUID
504License: BSD
505Group: Libraries
506Conflicts: e2fsprogs < 1.34-3
507
508%description -n libuuid
509Library for accessing and manipulating UUID.
510
511%description -n libuuid -l pl.UTF-8
512Biblioteka umożliwiająca dostęp i zmiany UUID.
513
514%package -n libuuid-devel
515Summary: Header files for library for accessing and manipulating UUID
516Summary(pl.UTF-8): Pliki nagłówkowe biblioteki umożliwiającej dostęp i zmiany UUID
517License: BSD
518Group: Development/Libraries
519Requires: libuuid = %{version}-%{release}
520Conflicts: e2fsprogs-devel < 1.34-3
521
522%description -n libuuid-devel
523Library for accessing and manipulating UUID - development files.
524
525%description -n libuuid-devel -l pl.UTF-8
526Biblioteka umożliwiająca dostęp i zmiany UUID - pliki dla
527programistów.
528
529%package -n libuuid-static
530Summary: Static library for accessing and manipulating UUID
531Summary(pl.UTF-8): Statyczna biblioteka umożliwiająca dostęp i zmiany UUID
532License: BSD
533Group: Development/Libraries
534Requires: libuuid-devel = %{version}-%{release}
535Conflicts: e2fsprogs-static < 1.34-3
536
537%description -n libuuid-static
538Library for accessing and manipulating UUID - static version.
539
540%description -n libuuid-static -l pl.UTF-8
541Biblioteka umożliwiająca dostęp i zmiany UUID - wersja statyczna.
542
543%package -n libuuid-dietlibc
544Summary: Static dietlibc library for accessing and manipulating UUID
545Summary(pl.UTF-8): Statyczna biblioteka dietlibc umożliwiająca dostęp i zmiany UUID
546License: BSD
547Group: Development/Libraries
548Requires: libuuid-devel = %{version}-%{release}
549Conflicts: e2fsprogs-static < 1.34-3
550
551%description -n libuuid-dietlibc
552Library for accessing and manipulating UUID - static dietlibc version.
553
554%description -n libuuid-dietlibc -l pl.UTF-8
555Biblioteka umożliwiająca dostęp i zmiany UUID - wersja statyczna dla
556dietlibc.
557
558%package -n uuidd
559Summary: Helper daemon to guarantee uniqueness of time-based UUIDs
560Summary(pl.UTF-8): Pomocniczy demon gwarantujący unikalność UUID-ów opartych na czasie
56a8c6a4 561License: GPL v2+
67de32db 562Group: Daemons
563Requires(postun): /usr/sbin/groupdel
564Requires(postun): /usr/sbin/userdel
565Requires(pre): /bin/id
566Requires(pre): /usr/bin/getgid
567Requires(pre): /usr/sbin/groupadd
568Requires(pre): /usr/sbin/groupmod
569Requires(pre): /usr/sbin/useradd
570Requires(pre): /usr/sbin/usermod
8834e309 571Requires(post,preun,postun): systemd-units >= 38
67de32db 572Requires: libuuid = %{version}-%{release}
4fa9d824 573Requires: systemd-units >= 38
67de32db 574Provides: group(uuidd)
575Provides: user(uuidd)
576Conflicts: libuuid < 1.40.5-0.1
577
578%description -n uuidd
579The uuidd package contains a userspace daemon (uuidd) which guarantees
580uniqueness of time-based UUID generation even at very high rates on
581SMP systems.
582
583%description -n uuidd -l pl.UTF-8
584Ten pakiet zawiera działającego w przestrzeni użytkownika demona
585(uuidd) gwarantującego unikalność generowania UUID-ów opartych na
586czasie nawet przy bardzo dużej częstotliwości na systemach SMP.
587
c7c0c6cb
JB
588%package -n libfdisk
589Summary: fdisk library
590Summary(pl.UTF-8): Biblioteka fdisk
591License: LGPL v2.1+
592Group: Libraries
593Requires: libblkid = %{version}-%{release}
594Requires: libuuid = %{version}-%{release}
595
596%description -n libfdisk
597fdisk library.
598
599%description -n libfdisk -l pl.UTF-8
600Biblioteka fdisk.
601
602%package -n libfdisk-devel
603Summary: Header files for fdisk library
604Summary(pl.UTF-8): Pliki nagłówkowe biblioteki fdisk
605License: LGPL v2.1+
606Group: Development/Libraries
607Requires: libblkid-devel = %{version}-%{release}
608Requires: libfdisk = %{version}-%{release}
609Requires: libuuid-devel = %{version}-%{release}
610
611%description -n libfdisk-devel
612Header files for fdisk library.
613
614%description -n libfdisk-devel -l pl.UTF-8
615Pliki nagłówkowe biblioteki fdisk.
616
617%package -n libfdisk-static
618Summary: Static version of fdisk library
619Summary(pl.UTF-8): Statyczna wersja biblioteki fdisk
620License: LGPL v2.1+
621Group: Development/Libraries
622Requires: libfdisk-devel = %{version}-%{release}
623
624%description -n libfdisk-static
625Static version of fdisk library.
626
627%description -n libfdisk-static -l pl.UTF-8
628Statyczna wersja biblioteki fdisk.
629
f7f13771 630%package -n libfdisk-apidocs
5ae167c7
MK
631Summary: libfdisk API documentation
632Summary(pl.UTF-8): Dokumentacja API libfdisk
633Group: Documentation
634Requires: gtk-doc-common
635BuildArch: noarch
f7f13771
MK
636
637%description -n libfdisk-apidocs
638libfdisk API documentation.
639
640%description -n libfdisk-apidocs -l pl.UTF-8
641Dokumentacja API libfdisk.
642
67de32db 643%package -n libmount
644Summary: Library to handle mounting-related tasks
645Summary(pl.UTF-8): Biblioteka obsługująca zadania związane z montowaniem
c7c0c6cb 646License: LGPL v2.1+
67de32db 647Group: Libraries
648Requires: libblkid = %{version}-%{release}
649
650%description -n libmount
651Library to handle mounting-related tasks.
652
653%description -n libmount -l pl.UTF-8
654Biblioteka obsługująca zadania związane z montowaniem.
655
656%package -n libmount-devel
657Summary: Header files for mount library
658Summary(pl.UTF-8): Pliki nagłówkowe biblioteki mount
c7c0c6cb 659License: LGPL v2.1+
67de32db 660Group: Development/Libraries
661Requires: libblkid-devel = %{version}-%{release}
662Requires: libmount = %{version}-%{release}
663
664%description -n libmount-devel
665Header files for mount library.
666
667%description -n libmount-devel -l pl.UTF-8
668Pliki nagłówkowe biblioteki mount.
669
670%package -n libmount-static
671Summary: Static version of mount library
672Summary(pl.UTF-8): Statyczna wersja biblioteki mount
c7c0c6cb 673License: LGPL v2.1+
67de32db 674Group: Development/Libraries
675Requires: libmount-devel = %{version}-%{release}
676
677%description -n libmount-static
678Static version of mount library.
679
680%description -n libmount-static -l pl.UTF-8
681Statyczna wersja biblioteki mount.
682
f7f13771 683%package -n libmount-apidocs
5ae167c7
MK
684Summary: libmount API documentation
685Summary(pl.UTF-8): Dokumentacja API libmount
686Group: Documentation
687Requires: gtk-doc-common
688BuildArch: noarch
f7f13771
MK
689
690%description -n libmount-apidocs
691libmount API documentation.
692
693%description -n libmount-apidocs -l pl.UTF-8
694Dokumentacja API libmount.
695
8b6144a3
JB
696%package -n python3-libmount
697Summary: Python 3.x libmount bindings
698Summary(pl.UTF-8): Wiązania Pythona 3.x do biblioteki libmount
c7c0c6cb 699License: LGPL v3+
8b6144a3
JB
700Group: Libraries/Python
701Requires: libmount = %{version}-%{release}
67de32db 702
8b6144a3
JB
703%description -n python3-libmount
704Python 3.x libmount bindings.
67de32db 705
8b6144a3
JB
706%description -n python3-libmount -l pl.UTF-8
707Wiązania Pythona 3.x do biblioteki libmount.
67de32db 708
709%package -n fsck
710Summary: Check and repair a Linux file system
711Summary(pl.UTF-8): Sprawdzanie i naprawa linuksowego systemu plików
56a8c6a4 712License: GPL v2+
67de32db 713Group: Applications/System
1c38ec33 714Requires: libblkid = %{version}-%{release}
67de32db 715
716%description -n fsck
717Check and repair a Linux file system.
718
719%description -n fsck -l pl.UTF-8
720Sprawdzanie i naprawa linuksowego systemu plików.
721
8b6144a3
JB
722%package -n libsmartcols
723Summary: Library to handle tables and trees
724Summary(pl.UTF-8): Biblioteka do obsługi tabelek i drzewek
56a8c6a4 725License: LGPL v2+
8b6144a3
JB
726Group: Libraries
727
728%description -n libsmartcols
729Library to handle tables and trees.
730
731%description -n libsmartcols -l pl.UTF-8
732Biblioteka do obsługi tabelek i drzewek.
733
734%package -n libsmartcols-devel
735Summary: Header files for smartcols library
736Summary(pl.UTF-8): Pliki nagłówkowe biblioteki smartcols
56a8c6a4 737License: LGPL v2+
8b6144a3
JB
738Group: Development/Libraries
739Requires: libsmartcols = %{version}-%{release}
740
741%description -n libsmartcols-devel
742Header files for smartcols library.
743
744%description -n libsmartcols-devel -l pl.UTF-8
745Pliki nagłówkowe biblioteki smartcols.
746
747%package -n libsmartcols-static
748Summary: Static version of smartcols library
749Summary(pl.UTF-8): Statyczna wersja biblioteki smartcols
56a8c6a4 750License: LGPL v2+
8b6144a3
JB
751Group: Development/Libraries
752Requires: libsmartcols-devel = %{version}-%{release}
753
754%description -n libsmartcols-static
755Static version of smartcols library.
756
757%description -n libsmartcols-static -l pl.UTF-8
758Statyczna wersja biblioteki smartcols.
759
f7f13771 760%package -n libsmartcols-apidocs
5ae167c7
MK
761Summary: libsmartcols API documentation
762Summary(pl.UTF-8): Dokumentacja API libsmartcols
763Group: Documentation
764Requires: gtk-doc-common
765BuildArch: noarch
f7f13771
MK
766
767%description -n libsmartcols-apidocs
768libsmartcols API documentation.
769
770%description -n libsmartcols-apidocs -l pl.UTF-8
771Dokumentacja API libsmartcols.
772
67de32db 773%package initrd
774Summary: blkid - initrd version
775Summary(pl.UTF-8): blkid - wersja dla initrd
56a8c6a4 776License: GPL v2+
67de32db 777Group: Base
28b99029 778Obsoletes: util-linux-ng-initrd < 2.20-1
e70bda7d 779Conflicts: geninitrd < 10000.10
67de32db 780
781%description initrd
782This package includes a blkid utility to recognize partitions by label
783or UUID - staticaly linked for initrd.
784
785%description initrd -l pl.UTF-8
786Pakiet ten zawiera narzędzie blkid do rozpoznawania partycji przez
787etykietę lub UUID - statycznie skonsolidowane na potrzeby initrd.
788
232bdb1a 789%package -n bash-completion-util-linux
8834e309
ER
790Summary: bash completion for util-linux commands
791Summary(pl.UTF-8): Bashowe dopełnianie parametrów dla poleceń z pakietu util-linux
56a8c6a4 792License: GPL v2+
8834e309
ER
793Group: Applications/Shells
794Requires: %{name} = %{version}-%{release}
795Requires: bash-completion >= 2.0
71297c41 796Requires: gawk
8a0c9d8b 797BuildArch: noarch
232bdb1a
AM
798
799%description -n bash-completion-util-linux
0db61bcb 800Bash completion for util-linux commands.
232bdb1a
AM
801
802%description -n bash-completion-util-linux -l pl.UTF-8
0db61bcb
JB
803Bashowe dopełnianie parametrów dla poleceń z pakietu util-linux.
804
67de32db 805%prep
0057a448 806%setup -q -a1
f1f79628
JR
807%patch0 -p1
808%patch1 -p1
809%patch2 -p1
67de32db 810%patch3 -p1
811%patch4 -p1
768477bc 812%patch5 -p1
6590e7e5 813%patch7 -p1
768477bc 814%{?with_initrd:%patch6 -p1}
67de32db 815
6a162ea7
JB
816# obsolete utility
817%{__rm} man/ja/man8/raw.8
818
8834e309 819cp -p %{SOURCE10} nologin.c
9ebc19a0 820
86e58ad2
JB
821%{__rm} po/stamp-po
822
67de32db 823%build
824%{__gettextize}
825%{__libtoolize}
826%{__aclocal} -I m4
827%{__autoconf}
828%{__autoheader}
829%{__automake}
830
831export CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses -DHAVE_LSEEK64_PROTOTYPE -DHAVE_LLSEEK_PROTOTYPE"
832%if %{with initrd}
833%{?with_uClibc:xCC="%{_target_cpu}-uclibc-gcc"}
1345aa35 834%{?with_dietlibc:xCC="%{__cc}"; xCC="diet ${xCC#*ccache }"}
67de32db 835%configure \
836%if %{with dietlibc}
6e84fb29
JB
837 ac_cv_header_crypt_h=no \
838 ac_cv_header_stdio_ext_h=no \
67de32db 839%endif
840 CC="$xCC" \
d617083c
ER
841%if "%{?configure_cache}" == "1"
842 --cache-file=%{?configure_cache_file}%{!?configure_cache_file:configure}-initrd.cache \
843%endif
6e84fb29
JB
844 --exec-prefix= \
845 --bindir=/bin \
846 --sbindir=/sbin \
847 --libdir=/%{_lib} \
67de32db 848 --disable-shared \
849 --enable-static \
277ca855 850 --enable-libmount-force-mountinfo \
6e84fb29
JB
851 --disable-agetty \
852 --disable-chfn-chsh \
ca8d370c 853 --disable-cramfs \
6e84fb29
JB
854 --disable-kill \
855 --disable-ldattach \
17cf1024 856 --disable-libmount \
4fa9d824 857 --disable-login \
6e84fb29 858 --disable-losetup \
0ab7cd08
AM
859 --disable-makeinstall-chown \
860 --disable-makeinstall-setuid \
6e84fb29 861 --disable-minix \
4fa9d824 862 --disable-newgrp \
6e84fb29
JB
863 --disable-partx \
864 --disable-raw \
034a23bb 865 --disable-runuser \
67de32db 866 --disable-schedutils \
6e84fb29 867 --disable-setarch \
67de32db 868 --disable-silent-rules \
6e84fb29
JB
869 --disable-su \
870 --disable-sulogin \
232bdb1a 871 --disable-tunelp \
67de32db 872 --disable-use-tty-group \
4fa9d824 873 --disable-utmpdump \
6e84fb29
JB
874 --disable-uuidd \
875 --disable-vipw \
67de32db 876 --disable-wall \
877 --without-audit \
878 --without-ncurses \
f5001161
AM
879 --without-selinux \
880 --without-smack
67de32db 881
882# configure gets it unconditionally wrong
573fc850 883%{__sed} -i -e 's/#define HAVE_WIDECHAR 1//' config.h
67de32db 884
6e84fb29
JB
885%{__make} \
886%if %{with uClibc}
887 LDFLAGS="-Wl,-static"
888%endif
889%if %{with dietlibc}
890 CPPFLAGS="$CPPFLAGS -D_BSD_SOURCE" \
891 LDFLAGS="-lcompat"
892%endif
893
894%{__make} install \
895 DESTDIR=$(pwd)/initrd
67de32db 896
897%{__make} clean
898%endif
899
900%configure \
901 --bindir=/bin \
902 --sbindir=/sbin \
f7f13771 903 %{?with_apidocs:--docdir=%{_gtkdocdir}} \
67de32db 904 %{!?with_fallocate:--disable-fallocate} \
db57b3d7 905 --enable-libmount-support-mtab \
0ab7cd08
AM
906 --disable-makeinstall-chown \
907 --disable-makeinstall-setuid \
6a162ea7 908 --disable-raw \
67de32db 909 --disable-silent-rules \
910 --disable-use-tty-group \
911 --disable-wall \
6e84fb29 912 --enable-chfn-chsh \
028b554f 913 --enable-fdformat \
f7f13771 914 %{?with_apidocs:--enable-gtk-doc} \
67de32db 915 --enable-kill \
6e84fb29
JB
916 --enable-libblkid \
917 --enable-line \
918 --enable-login \
67de32db 919 --enable-login-chown-vcs \
6e84fb29 920 --enable-newgrp \
67de32db 921 --enable-partx \
028b554f 922 --enable-poman \
22a14820 923 --enable-pg \
034a23bb
JB
924 --enable-runuser%{!?with_su:=no} \
925 --enable-su%{!?with_su:=no} \
6e84fb29 926 --enable-sulogin \
232bdb1a 927 --enable-tunelp \
6e84fb29
JB
928 --enable-utmpdump \
929 --enable-vipw \
67de32db 930 --enable-write \
971f9098 931 --with-python=3 \
67de32db 932 --with-audit \
0db61bcb 933 --with-bashcompletiondir=/usr/share/bash-completion/completions \
f5001161 934 --with-selinux%{!?with_selinux:=no} \
993f4721 935 --with-smack \
0deefbb8
MK
936 --with-readline \
937 %{!?with_systemd:--without-systemd}
938
67de32db 939
940%{__make}
941
9ebc19a0
JR
942%{__cc} %{rpmcflags} nologin.c -o nologin
943
67de32db 944%install
945rm -rf $RPM_BUILD_ROOT
14086cfb 946install -d $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,sysconfig,security,terminal-colors.d} \
d18bf877
JR
947 $RPM_BUILD_ROOT{/%{_lib},/var/{lock,lib/libuuid}} \
948 $RPM_BUILD_ROOT{/lib/systemd/pld-helpers.d,%{systemdunitdir}}
67de32db 949%{?with_dietlibc:install -d $RPM_BUILD_ROOT%{dietlibdir}}
950
951%{__make} install \
952 DESTDIR=$RPM_BUILD_ROOT
953
8b6144a3 954%{__mv} $RPM_BUILD_ROOT%{_sbindir}/{addpart,delpart,partx} $RPM_BUILD_ROOT/sbin
67de32db 955
8834e309 956install -p nologin $RPM_BUILD_ROOT/sbin
b09a4e11 957cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man8
9ebc19a0 958
3ec837fc 959cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/login
67de32db 960install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/blockdev
3ec837fc 961cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/blockdev
d18bf877
JR
962cp -p %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/blockdev.service
963cp -p %{SOURCE13} $RPM_BUILD_ROOT/lib/systemd/pld-helpers.d/blockdev.sh
034a23bb 964%if %{with su}
2d2bdd48 965ln -s ../sbin/runuser $RPM_BUILD_ROOT/bin/runuser
db301a98
AM
966cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/su
967cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/su-l
034a23bb
JB
968cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/runuser
969cp -p %{SOURCE9} $RPM_BUILD_ROOT/etc/pam.d/runuser-l
970%endif
67de32db 971
972:> $RPM_BUILD_ROOT/etc/security/blacklist.login
973:> $RPM_BUILD_ROOT/var/lock/wtmpxlock
974:> $RPM_BUILD_ROOT%{_sysconfdir}/blkid.tab
975
c7c0c6cb 976for lib in blkid fdisk mount smartcols uuid; do
6a162ea7 977 %{__mv} $RPM_BUILD_ROOT%{_libdir}/lib${lib}.so.* $RPM_BUILD_ROOT/%{_lib}
67de32db 978 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/lib${lib}.so.*.*.*) \
979 $RPM_BUILD_ROOT%{_libdir}/lib${lib}.so
980done
981
8b6144a3
JB
982# python module
983%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/libmount/pylibmount.la
984# obsoleted by pkg-config (libuuid.la temporarily kept because of packages built with it)
c7c0c6cb 985%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{blkid,fdisk,mount,smartcols}.la
8b6144a3 986
db37f8cd 987ln -s hwclock $RPM_BUILD_ROOT/sbin/clock
a40f6dee 988echo '.so man8/hwclock.8' > $RPM_BUILD_ROOT%{_mandir}/man8/clock.8
67de32db 989
63bd1af6 990ln -s utmpdump $RPM_BUILD_ROOT%{_bindir}/utmpx-dump
db37f8cd 991ln -s mkswap $RPM_BUILD_ROOT/sbin/mkfs.swap
63bd1af6 992
67de32db 993for d in cs de es fi fr hu id it ja ko nl pl ; do
994 for m in man1 man5 man8 ; do
995 if [ -d man/$d/$m ]; then
996 install -d $RPM_BUILD_ROOT%{_mandir}/$d/$m
8834e309 997 cp -p man/$d/$m/* $RPM_BUILD_ROOT%{_mandir}/$d/$m
67de32db 998 fi
999 done
1000done
3146265b
JB
1001# it's been moved from man1 to man8
1002for d in es ja ko ; do
6a162ea7 1003 %{__mv} $RPM_BUILD_ROOT%{_mandir}/$d/man1/readprofile.1 \
3146265b
JB
1004 $RPM_BUILD_ROOT%{_mandir}/$d/man8/readprofile.8
1005 %{__sed} -i -e 's/READPROFILE 1/READPROFILE 8/' $RPM_BUILD_ROOT%{_mandir}/$d/man8/readprofile.8
1006done
a40f6dee
JR
1007# fix inconsistent man links
1008echo '.so man8/hwclock.8' > $RPM_BUILD_ROOT%{_mandir}/es/man8/clock.8
1009echo '.so man8/hwclock.8' > $RPM_BUILD_ROOT%{_mandir}/ja/man8/clock.8
1010echo '.so man8/swapon.8' > $RPM_BUILD_ROOT%{_mandir}/es/man8/swapoff.8
1011echo '.so man8/swapon.8' > $RPM_BUILD_ROOT%{_mandir}/it/man8/swapoff.8
1012echo '.so man8/swapon.8' > $RPM_BUILD_ROOT%{_mandir}/ja/man8/swapoff.8
1013echo '.so man8/swapon.8' > $RPM_BUILD_ROOT%{_mandir}/ko/man8/swapoff.8
1014echo '.so man8/swapon.8' > $RPM_BUILD_ROOT%{_mandir}/pl/man8/swapoff.8
67de32db 1015
1016# cleanup, remove files not included in package
1017%{__rm} $RPM_BUILD_ROOT%{_bindir}/{chfn,chsh,newgrp} \
1018 $RPM_BUILD_ROOT%{_sbindir}/{vigr,vipw} \
1019 $RPM_BUILD_ROOT%{_mandir}/man1/{chfn,chsh,newgrp}.1 \
028b554f
JP
1020 $RPM_BUILD_ROOT%{_mandir}/de/man1/{chsh,wall}.1 \
1021 $RPM_BUILD_ROOT%{_mandir}/{,de/}man8/{vigr,vipw}.8 \
0d819006 1022 $RPM_BUILD_ROOT%{_mandir}/*/man1/{arch,chkdupexe,ddate,reset}.1 \
67de32db 1023 $RPM_BUILD_ROOT%{_mandir}/*/man5/nfs.5 \
81e05fa4 1024 $RPM_BUILD_ROOT%{_mandir}/*/man8/{cytune,elvtune,setfdprm,sln,ramsize,rdev,rootflags,vidmode}.8 \
56a8c6a4 1025 $RPM_BUILD_ROOT%{bash_compdir}/{chfn,chsh,newgrp}
67de32db 1026
6e84fb29
JB
1027%ifarch sparc sparcv9 sparc64
1028# programs not built on sparc
67de32db 1029%{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man8/{cfdisk,sfdisk}.8
1030%endif
1031
f7f13771 1032%if %{with apidocs}
6e84fb29 1033# examples
028b554f 1034%{__rm} $RPM_BUILD_ROOT%{_gtkdocdir}/getopt-example.{bash,tcsh}
f7f13771 1035%else
028b554f 1036%{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/getopt-example.{bash,tcsh}
f7f13771 1037%endif
6e84fb29 1038
67de32db 1039%if %{with initrd}
1040install -d $RPM_BUILD_ROOT%{_libdir}/initrd
6e84fb29
JB
1041install -p initrd/bin/* $RPM_BUILD_ROOT%{_libdir}/initrd
1042install -p initrd/sbin/* $RPM_BUILD_ROOT%{_libdir}/initrd
67de32db 1043ln -s fsck $RPM_BUILD_ROOT%{_libdir}/initrd/e2fsck
1044
1045# We don't need those
4a52de32 1046%{__rm} $RPM_BUILD_ROOT%{_libdir}/initrd/{cal,col,colcrt,colrm,column,ctrlaltdel,dmesg,flock,fsfreeze,fstrim,getopt,hexdump,ipcmk,ipcrm,ipcs,isosize,logger,lslocks,mcookie,mkfs*,readprofile,renice,rev,rtcwake,script,scriptreplay,setsid,tunelp,wdctl,whereis}
2d2bdd48 1047%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{blkid,mount}.la
67de32db 1048
1049%if %{with dietlibc}
6e84fb29 1050cp -a initrd/%{_lib}/lib*.a $RPM_BUILD_ROOT%{dietlibdir}
67de32db 1051%endif
1052%endif
1053
0057a448 1054%find_lang %{name}
67de32db 1055
1056%clean
1057rm -rf $RPM_BUILD_ROOT
1058
1059%post -n blockdev
1060/sbin/chkconfig --add blockdev
1061%service blockdev restart
d18bf877 1062%systemd_post blockdev.service
67de32db 1063
1064%preun -n blockdev
1065if [ "$1" = "0" ]; then
1066 %service blockdev stop
1067 /sbin/chkconfig --del blockdev
1068fi
d18bf877
JR
1069%systemd_preun blockdev.service
1070
1071%postun -n blockdev
1072%systemd_reload
1073
1074%triggerpostun -n blockdev -- blockdev < 2.24-4
1075%systemd_trigger blockdev.service
67de32db 1076
1077%post -n libblkid -p /sbin/ldconfig
1078%postun -n libblkid -p /sbin/ldconfig
1079
1080%post -n libuuid -p /sbin/ldconfig
1081%postun -n libuuid -p /sbin/ldconfig
1082
1083%pre -n uuidd
1084if [ "$(getgid libuuid 2>/dev/null)" = "222" ]; then
2d2bdd48 1085 /usr/sbin/groupmod -n uuidd libuuid
67de32db 1086fi
1087%groupadd -g 222 uuidd
1088if [ "$(id -u libuuid 2>/dev/null)" = "222" ]; then
2d2bdd48 1089 /usr/sbin/usermod -l uuidd libuuid
67de32db 1090fi
1091%useradd -u 222 -r -d /var/lib/libuuid -s /bin/false -c "UUID generator helper daemon" -g uuidd uuidd
1092
1093%postun -n uuidd
1094if [ "$1" = "0" ]; then
2d2bdd48
TP
1095 %userremove uuidd
1096 %groupremove uuidd
67de32db 1097fi
1098
c7c0c6cb
JB
1099%post -n libfdisk -p /sbin/ldconfig
1100%postun -n libfdisk -p /sbin/ldconfig
1101
67de32db 1102%post -n libmount -p /sbin/ldconfig
1103%postun -n libmount -p /sbin/ldconfig
1104
8b6144a3
JB
1105%post -n libsmartcols -p /sbin/ldconfig
1106%postun -n libsmartcols -p /sbin/ldconfig
1107
0057a448 1108%files -f %{name}.lang
67de32db 1109%defattr(644,root,root,755)
028b554f 1110%doc AUTHORS ChangeLog NEWS README README.licensing Documentation misc-utils/getopt-example.{bash,tcsh}
83c7e57e 1111%dir /etc/terminal-colors.d
67de32db 1112
1113%attr(755,root,root) /sbin/clock
1114%attr(755,root,root) /sbin/hwclock*
9ebc19a0 1115%attr(755,root,root) /sbin/nologin
6b476dc1 1116%{_mandir}/man5/adjtime_config.5*
67de32db 1117%{_mandir}/man8/clock.8*
1118%{_mandir}/man8/hwclock.8*
9ebc19a0 1119%{_mandir}/man8/nologin.8*
67de32db 1120%lang(es) %{_mandir}/es/man8/clock.8*
1121%lang(es) %{_mandir}/es/man8/hwclock.8*
1122%lang(ja) %{_mandir}/ja/man8/clock.8*
1123%lang(ja) %{_mandir}/ja/man8/hwclock.8*
1124
1125%ghost %{_sysconfdir}/blkid.tab
1126%attr(755,root,root) /sbin/blkid
1127%attr(755,root,root) /sbin/findfs
1128%{_mandir}/man8/blkid.8*
1129%{_mandir}/man8/findfs.8*
028b554f 1130%lang(de) %{_mandir}/de/man8/findfs.8*
67de32db 1131
1132%attr(755,root,root) %{_bindir}/linux*
1133%attr(755,root,root) %{_bindir}/setarch
1134%{_mandir}/man8/linux*
1135%{_mandir}/man8/setarch.8*
1136%ifarch s390 s390x
1137%attr(755,root,root) %{_bindir}/s390*
1138%{_mandir}/man8/s390*
1139%endif
286c64ce 1140%ifarch %{ix86} %{x8664} x32
67de32db 1141%attr(755,root,root) %{_bindir}/i386
1142%{_mandir}/man8/i386*
286c64ce 1143%ifarch %{x8664} x32
67de32db 1144%attr(755,root,root) %{_bindir}/x86_64
1145%{_mandir}/man8/x86_64*
1146%endif
1147%endif
1148%ifarch ppc ppc64
1149%attr(755,root,root) %{_bindir}/ppc*
1150%{_mandir}/man8/ppc*
1151%endif
1152%ifarch sparc sparc64
1153%attr(755,root,root) %{_bindir}/sparc*
1154%{_mandir}/man8/sparc*
1155%endif
1156%ifarch ia64
1157%attr(755,root,root) %{_bindir}/i386
1158%attr(755,root,root) %{_bindir}/ia64
1159%{_mandir}/man8/i386*
1160%{_mandir}/man8/ia64*
1161%endif
1162
1163%attr(755,root,root) /bin/dmesg
1164%attr(755,root,root) /bin/kill
4a52de32 1165%attr(755,root,root) /bin/lsblk
67de32db 1166%attr(755,root,root) /bin/more
4fa9d824 1167%attr(755,root,root) /bin/wdctl
ed1c99f8 1168
2e2cdb35 1169%attr(755,root,root) /sbin/addpart
232bdb1a 1170%attr(755,root,root) /sbin/blkdiscard
4a52de32
JB
1171%attr(755,root,root) /sbin/blkzone
1172%attr(755,root,root) /sbin/chcpu
1173%attr(755,root,root) /sbin/ctrlaltdel
67de32db 1174%attr(755,root,root) /sbin/delpart
1175%attr(755,root,root) /sbin/fsfreeze
1176%attr(755,root,root) /sbin/fstrim
1177%attr(755,root,root) /sbin/mkfs
db37f8cd 1178%attr(755,root,root) /sbin/mkfs.swap
67de32db 1179%attr(755,root,root) /sbin/mkswap
4a52de32 1180%attr(755,root,root) /sbin/partx
4fa9d824 1181%attr(755,root,root) /sbin/sulogin
67de32db 1182%attr(755,root,root) /sbin/swaplabel
1183%if "%{pld_release}" != "ac"
1184%attr(755,root,root) /sbin/switch_root
1185%endif
1186%attr(755,root,root) /sbin/wipefs
c7c0c6cb 1187%attr(755,root,root) /sbin/zramctl
67de32db 1188%attr(755,root,root) %{_bindir}/cal
6b476dc1 1189%attr(755,root,root) %{_bindir}/choom
4a52de32 1190%attr(755,root,root) %{_bindir}/chmem
67de32db 1191%attr(755,root,root) %{_bindir}/chrt
1192%attr(755,root,root) %{_bindir}/col
1193%attr(755,root,root) %{_bindir}/colcrt
1194%attr(755,root,root) %{_bindir}/colrm
1195%attr(755,root,root) %{_bindir}/column
4fa9d824 1196%attr(755,root,root) %{_bindir}/eject
67de32db 1197%{?with_fallocate:%attr(755,root,root) %{_bindir}/fallocate}
4a52de32
JB
1198%attr(755,root,root) %{_bindir}/fincore
1199%attr(755,root,root) %{_bindir}/flock
67de32db 1200%attr(755,root,root) %{_bindir}/getopt
c73057dc 1201%attr(755,root,root) %{_bindir}/hardlink
67de32db 1202%attr(755,root,root) %{_bindir}/hexdump
1203%attr(755,root,root) %{_bindir}/ionice
1204%attr(755,root,root) %{_bindir}/ipcmk
1205%attr(755,root,root) %{_bindir}/ipcrm
1206%attr(755,root,root) %{_bindir}/ipcs
aca17f99 1207%attr(755,root,root) %{_bindir}/irqtop
67de32db 1208%attr(755,root,root) %{_bindir}/isosize
1209%attr(755,root,root) %{_bindir}/line
971f9098
AM
1210%attr(755,root,root) %{_bindir}/last
1211%attr(755,root,root) %{_bindir}/lastb
67de32db 1212%attr(755,root,root) %{_bindir}/logger
1213%attr(755,root,root) %{_bindir}/look
1214%attr(755,root,root) %{_bindir}/lscpu
993f4721 1215%attr(755,root,root) %{_bindir}/lsipc
aca17f99 1216%attr(755,root,root) %{_bindir}/lsirq
4fa9d824 1217%attr(755,root,root) %{_bindir}/lslocks
8b6144a3 1218%attr(755,root,root) %{_bindir}/lslogins
4a52de32 1219%attr(755,root,root) %{_bindir}/lsmem
e7e771c5 1220%attr(755,root,root) %{_bindir}/lsns
971f9098 1221%attr(755,root,root) %{_bindir}/mesg
67de32db 1222%attr(755,root,root) %{_bindir}/mcookie
1223%attr(755,root,root) %{_bindir}/namei
232bdb1a 1224%attr(755,root,root) %{_bindir}/nsenter
67de32db 1225%attr(755,root,root) %{_bindir}/pg
290cedac 1226%attr(755,root,root) %{_bindir}/prlimit
67de32db 1227%attr(755,root,root) %{_bindir}/rename
1228%attr(755,root,root) %{_bindir}/renice
1229%attr(755,root,root) %{_bindir}/rev
1230%attr(755,root,root) %{_bindir}/script
56a8c6a4 1231%attr(755,root,root) %{_bindir}/scriptlive
67de32db 1232%attr(755,root,root) %{_bindir}/scriptreplay
232bdb1a 1233%attr(755,root,root) %{_bindir}/setpriv
67de32db 1234%attr(755,root,root) %{_bindir}/setsid
1235%attr(755,root,root) %{_bindir}/setterm
67de32db 1236%attr(755,root,root) %{_bindir}/taskset
028b554f 1237%attr(755,root,root) %{_bindir}/uclampset
0ab7cd08 1238%attr(755,root,root) %{_bindir}/uuidparse
67de32db 1239%attr(755,root,root) %{_bindir}/ul
8b6144a3 1240%attr(755,root,root) %{_bindir}/uname26
67de32db 1241%attr(755,root,root) %{_bindir}/unshare
4fa9d824 1242%attr(755,root,root) %{_bindir}/utmpdump
63bd1af6 1243%attr(755,root,root) %{_bindir}/utmpx-dump
67de32db 1244%attr(755,root,root) %{_bindir}/whereis
1245%attr(2755,root,tty) %{_bindir}/write
1246%attr(755,root,root) %{_sbindir}/fdformat
1247%attr(755,root,root) %{_sbindir}/ldattach
1248%attr(755,root,root) %{_sbindir}/readprofile
4fa9d824 1249%attr(755,root,root) %{_sbindir}/resizepart
bdcb1bc9 1250%attr(755,root,root) %{_sbindir}/rfkill
67de32db 1251%attr(755,root,root) %{_sbindir}/rtcwake
1252
0deefbb8 1253%if %{with systemd}
8b6144a3
JB
1254%{systemdunitdir}/fstrim.service
1255%{systemdunitdir}/fstrim.timer
0deefbb8 1256%endif
8b6144a3 1257
67de32db 1258%{_mandir}/man1/cal.1*
6b476dc1 1259%{_mandir}/man1/choom.1*
67de32db 1260%{_mandir}/man1/chrt.1*
1261%{_mandir}/man1/col.1*
1262%{_mandir}/man1/colcrt.1*
1263%{_mandir}/man1/colrm.1*
1264%{_mandir}/man1/column.1*
67de32db 1265%{_mandir}/man1/dmesg.1*
4fa9d824 1266%{_mandir}/man1/eject.1*
67de32db 1267%{?with_fallocate:%{_mandir}/man1/fallocate.1*}
4a52de32 1268%{_mandir}/man1/fincore.1*
67de32db 1269%{_mandir}/man1/flock.1*
1270%{_mandir}/man1/getopt.1*
c73057dc 1271%{_mandir}/man1/hardlink.1*
67de32db 1272%{_mandir}/man1/hexdump.1*
1273%{_mandir}/man1/ionice.1*
1274%{_mandir}/man1/ipcrm.1*
1275%{_mandir}/man1/ipcmk.1*
1276%{_mandir}/man1/ipcs.1*
aca17f99 1277%{_mandir}/man1/irqtop.1*
67de32db 1278%{_mandir}/man1/kill.1*
971f9098
AM
1279%{_mandir}/man1/last.1*
1280%{_mandir}/man1/lastb.1*
67de32db 1281%{_mandir}/man1/line.1*
1282%{_mandir}/man1/logger.1*
1283%{_mandir}/man1/look.1*
1284%{_mandir}/man1/lscpu.1*
993f4721 1285%{_mandir}/man1/lsipc.1*
aca17f99 1286%{_mandir}/man1/lsirq.1*
8b6144a3 1287%{_mandir}/man1/lslogins.1*
4a52de32 1288%{_mandir}/man1/lsmem.1*
67de32db 1289%{_mandir}/man1/mcookie.1*
971f9098 1290%{_mandir}/man1/mesg.1*
67de32db 1291%{_mandir}/man1/more.1*
1292%{_mandir}/man1/namei.1*
232bdb1a 1293%{_mandir}/man1/nsenter.1*
290cedac 1294%{_mandir}/man1/prlimit.1*
67de32db 1295%{_mandir}/man1/pg.1*
67de32db 1296%{_mandir}/man1/renice.1*
1297%{_mandir}/man1/rev.1*
1298%{_mandir}/man1/rename.1*
232bdb1a 1299%{_mandir}/man1/setpriv.1*
67de32db 1300%{_mandir}/man1/setsid.1*
1301%{_mandir}/man1/script.1*
56a8c6a4 1302%{_mandir}/man1/scriptlive.1*
67de32db 1303%{_mandir}/man1/scriptreplay.1*
1304%{_mandir}/man1/setterm.1*
67de32db 1305%{_mandir}/man1/taskset.1*
028b554f 1306%{_mandir}/man1/uclampset.1*
67de32db 1307%{_mandir}/man1/ul.1*
1308%{_mandir}/man1/unshare.1*
4fa9d824 1309%{_mandir}/man1/utmpdump.1*
0ab7cd08 1310%{_mandir}/man1/uuidparse.1*
67de32db 1311%{_mandir}/man1/whereis.1*
1312%{_mandir}/man1/write.1*
14086cfb
TP
1313# common for many utilities (hexdump,cal,dmesg,fdisk,cfdisk - not libraries)
1314%{_mandir}/man5/terminal-colors.d.5*
67de32db 1315%{_mandir}/man8/addpart.8*
232bdb1a 1316%{_mandir}/man8/blkdiscard.8*
4a52de32 1317%{_mandir}/man8/blkzone.8*
2e2cdb35
ER
1318%{_mandir}/man8/delpart.8*
1319%{_mandir}/man8/partx.8*
1320%{_mandir}/man8/lsblk.8*
e7e771c5 1321%{_mandir}/man8/lsns.8*
290cedac 1322%{_mandir}/man8/chcpu.8*
4a52de32 1323%{_mandir}/man8/chmem.8*
67de32db 1324%{_mandir}/man8/ctrlaltdel.8*
67de32db 1325%{_mandir}/man8/fdformat.8*
1326%{_mandir}/man8/fsfreeze.8*
1327%{_mandir}/man8/fstrim.8*
1328%{_mandir}/man8/isosize.8*
1329%{_mandir}/man8/ldattach.8*
4fa9d824 1330%{_mandir}/man8/lslocks.8*
67de32db 1331%{_mandir}/man8/mkswap.8*
a7980c08 1332%{_mandir}/man8/readprofile.8*
4fa9d824 1333%{_mandir}/man8/resizepart.8*
0ab7cd08 1334%{_mandir}/man8/rfkill.8*
67de32db 1335%{_mandir}/man8/rtcwake.8*
1336%{_mandir}/man8/swaplabel.8*
1337%if "%{pld_release}" != "ac"
1338%{_mandir}/man8/switch_root.8*
1339%endif
4fa9d824 1340%{_mandir}/man8/sulogin.8*
8b6144a3 1341%{_mandir}/man8/uname26.8*
4fa9d824 1342%{_mandir}/man8/wdctl.8*
67de32db 1343%{_mandir}/man8/wipefs.8*
c7c0c6cb 1344%{_mandir}/man8/zramctl.8*
67de32db 1345
028b554f
JP
1346%lang(de) %{_mandir}/de/man1/chrt.1*
1347%lang(de) %{_mandir}/de/man1/colcrt.1*
1348%lang(de) %{_mandir}/de/man1/colrm.1*
1349%lang(de) %{_mandir}/de/man1/fincore.1*
1350%lang(de) %{_mandir}/de/man1/ionice.1*
1351%lang(de) %{_mandir}/de/man1/ipcmk.1*
1352%lang(de) %{_mandir}/de/man1/ipcs.1*
1353%lang(de) %{_mandir}/de/man1/irqtop.1*
67de32db 1354%lang(de) %{_mandir}/de/man1/kill.1*
028b554f
JP
1355%lang(de) %{_mandir}/de/man1/line.1*
1356%lang(de) %{_mandir}/de/man1/lsipc.1*
1357%lang(de) %{_mandir}/de/man8/lsns.8*
1358%lang(de) %{_mandir}/de/man1/mesg.1*
67de32db 1359%lang(de) %{_mandir}/de/man1/more.1*
028b554f
JP
1360%lang(de) %{_mandir}/de/man1/nsenter.1*
1361%lang(de) %{_mandir}/de/man1/renice.1*
1362%lang(de) %{_mandir}/de/man1/rev.1*
1363%lang(de) %{_mandir}/de/man1/setsid.1*
1364%lang(de) %{_mandir}/de/man1/taskset.1*
1365%lang(de) %{_mandir}/de/man1/ul.1*
1366%lang(de) %{_mandir}/de/man1/whereis.1*
67de32db 1367%lang(de) %{_mandir}/de/man1/write.1*
028b554f
JP
1368%lang(de) %{_mandir}/de/man5/terminal-colors.d.5*
1369%lang(de) %{_mandir}/de/man8/addpart.8*
1370%lang(de) %{_mandir}/de/man8/ctrlaltdel.8*
1371%lang(de) %{_mandir}/de/man8/delpart.8*
67de32db 1372%lang(de) %{_mandir}/de/man8/fdformat.8*
028b554f
JP
1373%lang(de) %{_mandir}/de/man8/isosize.8*
1374%lang(de) %{_mandir}/de/man8/ldattach.8*
1375%lang(de) %{_mandir}/de/man8/resizepart.8*
67de32db 1376
731cb86a
TP
1377%lang(es) %{_mandir}/es/man1/*.1*
1378%exclude %{_mandir}/es/man1/login.1*
67de32db 1379%lang(es) %{_mandir}/es/man8/ctrlaltdel.8*
1380%lang(es) %{_mandir}/es/man8/ipcrm.8*
1381%lang(es) %{_mandir}/es/man8/ipcs.8*
1382%lang(es) %{_mandir}/es/man8/mkswap.8*
3146265b 1383%lang(es) %{_mandir}/es/man8/readprofile.8*
67de32db 1384%lang(es) %{_mandir}/es/man8/renice.8*
1385%lang(es) %{_mandir}/es/man8/setsid.8*
1386
731cb86a
TP
1387%lang(fi) %{_mandir}/fi/man1/*.1*
1388
1389%lang(fr) %{_mandir}/fr/man1/*.1*
67de32db 1390%lang(fr) %{_mandir}/fr/man8/ctrlaltdel.8*
1391%lang(fr) %{_mandir}/fr/man8/dmesg.8*
1392%lang(fr) %{_mandir}/fr/man8/fdformat.8*
1393%lang(fr) %{_mandir}/fr/man8/ipcrm.8*
1394%lang(fr) %{_mandir}/fr/man8/ipcs.8*
1395%lang(fr) %{_mandir}/fr/man8/setsid.8*
1396
731cb86a
TP
1397%lang(hu) %{_mandir}/hu/man1/*.1*
1398%exclude %{_mandir}/hu/man1/login.1*
67de32db 1399%lang(hu) %{_mandir}/hu/man8/ctrlaltdel.8*
1400%lang(hu) %{_mandir}/hu/man8/fdformat.8*
1401%lang(hu) %{_mandir}/hu/man8/mkswap.8*
1402
731cb86a
TP
1403%lang(id) %{_mandir}/id/man1/*.1*
1404%exclude %{_mandir}/id/man1/login.1*
67de32db 1405%lang(id) %{_mandir}/id/man8/fdformat.8*
1406
1407%lang(it) %{_mandir}/it/man1/kill.1*
1408%lang(it) %{_mandir}/it/man8/mkswap.8*
1409%lang(it) %{_mandir}/it/man8/setsid.8*
1410
731cb86a
TP
1411%lang(ja) %{_mandir}/ja/man1/*.1*
1412%exclude %{_mandir}/ja/man1/login.1*
67de32db 1413%lang(ja) %{_mandir}/ja/man8/ctrlaltdel.8*
67de32db 1414%lang(ja) %{_mandir}/ja/man8/dmesg.8*
1415%lang(ja) %{_mandir}/ja/man8/fdformat.8*
1416%lang(ja) %{_mandir}/ja/man8/ipcrm.8*
1417%lang(ja) %{_mandir}/ja/man8/ipcs.8*
1418%lang(ja) %{_mandir}/ja/man8/isosize.8*
1419%lang(ja) %{_mandir}/ja/man8/mkswap.8*
3146265b 1420%lang(ja) %{_mandir}/ja/man8/readprofile.8*
67de32db 1421%lang(ja) %{_mandir}/ja/man8/renice.8*
1422%lang(ja) %{_mandir}/ja/man8/setsid.8*
1423
731cb86a
TP
1424%lang(ko) %{_mandir}/ko/man1/*.1*
1425%exclude %{_mandir}/ko/man1/login.1*
67de32db 1426%lang(ko) %{_mandir}/ko/man8/ctrlaltdel.8*
1427%lang(ko) %{_mandir}/ko/man8/dmesg.8*
1428%lang(ko) %{_mandir}/ko/man8/fdformat.8*
1429%lang(ko) %{_mandir}/ko/man8/ipcrm.8*
1430%lang(ko) %{_mandir}/ko/man8/ipcs.8*
1431%lang(ko) %{_mandir}/ko/man8/mkswap.8*
3146265b 1432%lang(ko) %{_mandir}/ko/man8/readprofile.8*
67de32db 1433%lang(ko) %{_mandir}/ko/man8/renice.8*
1434%lang(ko) %{_mandir}/ko/man8/setsid.8*
1435
1436%lang(nl) %{_mandir}/nl/man1/kill.1*
1437
731cb86a
TP
1438%lang(pl) %{_mandir}/pl/man1/*.1*
1439%exclude %{_mandir}/pl/man1/login.1*
67de32db 1440%lang(pl) %{_mandir}/pl/man8/ctrlaltdel.8*
1441%lang(pl) %{_mandir}/pl/man8/dmesg.8*
1442%lang(pl) %{_mandir}/pl/man8/fdformat.8*
1443%lang(pl) %{_mandir}/pl/man8/ipcrm.8*
1444%lang(pl) %{_mandir}/pl/man8/ipcs.8*
1445%lang(pl) %{_mandir}/pl/man8/mkswap.8*
1446%lang(pl) %{_mandir}/pl/man8/renice.8*
1447
67de32db 1448%attr(755,root,root) /sbin/fdisk
1449%attr(755,root,root) /sbin/fsck.minix
1450%attr(755,root,root) /sbin/mkfs.minix
1451%ifnarch sparc sparc64
1452%attr(755,root,root) /sbin/cfdisk
1453%attr(755,root,root) /sbin/sfdisk
1454%endif
1455
1456%{_mandir}/man8/fdisk.8*
1457%ifnarch sparc sparc64
1458%{_mandir}/man8/cfdisk.8*
1459%{_mandir}/man8/sfdisk.8*
1460%endif
1461%{_mandir}/man8/fsck.minix.8*
1462%{_mandir}/man8/mkfs.bfs.8*
1463%{_mandir}/man8/mkfs.minix.8*
1464%{_mandir}/man8/mkfs.8*
1465
028b554f
JP
1466%lang(de) %{_mandir}/de/man8/fdisk.8*
1467%ifnarch sparc sparc64
1468%lang(de) %{_mandir}/de/man8/cfdisk.8*
1469%endif
1470%lang(de) %{_mandir}/de/man8/fsck.minix.8*
1471%lang(de) %{_mandir}/de/man8/mkfs.bfs.8*
1472%lang(de) %{_mandir}/de/man8/mkfs.8*
1473
67de32db 1474%lang(es) %{_mandir}/es/man8/fdisk.8*
1475%lang(es) %{_mandir}/es/man8/fsck.minix.8*
1476%lang(es) %{_mandir}/es/man8/mkfs.minix.8*
1477%lang(es) %{_mandir}/es/man8/mkfs.8*
1478
1479%lang(fr) %{_mandir}/fr/man8/fdisk.8*
1480%ifnarch sparc sparc64
1481%lang(fr) %{_mandir}/fr/man8/cfdisk.8*
1482%lang(fr) %{_mandir}/fr/man8/sfdisk.8*
1483%endif
1484%lang(fr) %{_mandir}/fr/man8/mkfs.minix.8*
1485%lang(fr) %{_mandir}/fr/man8/mkfs.8*
1486
1487%lang(hu) %{_mandir}/hu/man8/mkfs.8*
1488
1489%lang(it) %{_mandir}/it/man8/fdisk.8*
1490%ifnarch sparc sparc64
1491%lang(it) %{_mandir}/it/man8/cfdisk.8*
1492%endif
1493
1494%lang(ja) %{_mandir}/ja/man8/fdisk.8*
1495%ifnarch sparc sparc64
1496%lang(ja) %{_mandir}/ja/man8/cfdisk.8*
1497%lang(ja) %{_mandir}/ja/man8/sfdisk.8*
1498%endif
1499%lang(ja) %{_mandir}/ja/man8/fsck.minix.8*
1500%lang(ja) %{_mandir}/ja/man8/mkfs.bfs.8*
1501%lang(ja) %{_mandir}/ja/man8/mkfs.minix.8*
1502%lang(ja) %{_mandir}/ja/man8/mkfs.8*
1503
1504%lang(ko) %{_mandir}/ko/man8/fdisk.8*
1505%lang(ko) %{_mandir}/ko/man8/fsck.minix.8*
1506%lang(ko) %{_mandir}/ko/man8/mkfs.minix.8*
1507%lang(ko) %{_mandir}/ko/man8/mkfs.8*
1508
1509%lang(pl) %{_mandir}/pl/man8/fdisk.8*
1510%lang(pl) %{_mandir}/pl/man8/fsck.minix.8*
1511%lang(pl) %{_mandir}/pl/man8/mkfs.minix.8*
1512%lang(pl) %{_mandir}/pl/man8/mkfs.8*
1513
1514%attr(755,root,root) /sbin/fsck.cramfs
1515%attr(755,root,root) /sbin/mkfs.cramfs
1516%attr(755,root,root) /sbin/mkfs.bfs
232bdb1a
AM
1517%{_mandir}/man8/fsck.cramfs.8*
1518%{_mandir}/man8/mkfs.cramfs.8*
028b554f
JP
1519%lang(de) %{_mandir}/de/man8/fsck.cramfs.8*
1520%lang(de) %{_mandir}/de/man8/mkfs.cramfs.8*
67de32db 1521
034a23bb 1522%if %{with su}
4e4fc9b5 1523%attr(755,root,root) /bin/runuser
232bdb1a 1524%attr(755,root,root) /sbin/runuser
034a23bb
JB
1525%attr(4755,root,root) /bin/su
1526%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/runuser
1527%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/runuser-l
1528%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/su
1529%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/su-l
1530%{_mandir}/man1/runuser.1*
1531%{_mandir}/man1/su.1*
1532%endif
1533
67de32db 1534%ghost /var/lock/wtmpxlock
1535
1536%files -n blockdev
1537%defattr(644,root,root,755)
1538%attr(754,root,root) /etc/rc.d/init.d/blockdev
1539%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/blockdev
1540%attr(755,root,root) /sbin/blockdev
1541%{_mandir}/man8/blockdev.8*
028b554f 1542%lang(de) %{_mandir}/de/man8/blockdev.8*
67de32db 1543%lang(ja) %{_mandir}/ja/man8/blockdev.8*
d18bf877
JR
1544%{systemdunitdir}/blockdev.service
1545%attr(755,root,root) /lib/systemd/pld-helpers.d/blockdev.sh
67de32db 1546
1547%files -n mount
1548%defattr(644,root,root,755)
8b6144a3 1549%attr(755,root,root) /bin/findmnt
4f33a5ab 1550%attr(755,root,root) /bin/mountpoint
67de32db 1551%attr(4755,root,root) /bin/mount
1552%attr(4755,root,root) /bin/umount
1553%attr(755,root,root) /sbin/pivot_root
1554%attr(755,root,root) /sbin/swapon
1555%attr(755,root,root) /sbin/swapoff
1556
4f33a5ab 1557%{_mandir}/man1/mountpoint.1*
67de32db 1558%{_mandir}/man5/fstab.5*
8b6144a3 1559%{_mandir}/man8/findmnt.8*
67de32db 1560%{_mandir}/man8/mount.8*
1561%{_mandir}/man8/umount.8*
1562%{_mandir}/man8/pivot_root.8*
1563%{_mandir}/man8/swapon.8*
1564%{_mandir}/man8/swapoff.8*
1565
1566%lang(cs) %{_mandir}/cs/man5/fstab.5*
1567
1568%lang(de) %{_mandir}/de/man5/fstab.5*
028b554f
JP
1569%lang(de) %{_mandir}/de/man1/mountpoint.1*
1570%lang(de) %{_mandir}/de/man8/pivot_root.8*
67de32db 1571
1572%lang(es) %{_mandir}/es/man5/fstab.5*
1573%lang(es) %{_mandir}/es/man8/mount.8*
1574%lang(es) %{_mandir}/es/man8/umount.8*
1575%lang(es) %{_mandir}/es/man8/swapon.8*
1576%lang(es) %{_mandir}/es/man8/swapoff.8*
1577
1578%lang(fr) %{_mandir}/fr/man5/fstab.5*
1579%lang(fr) %{_mandir}/fr/man8/mount.8*
1580%lang(fr) %{_mandir}/fr/man8/umount.8*
1581
1582%lang(hu) %{_mandir}/hu/man5/fstab.5*
1583%lang(hu) %{_mandir}/hu/man8/mount.8*
1584%lang(hu) %{_mandir}/hu/man8/umount.8*
1585
1586%lang(it) %{_mandir}/it/man5/fstab.5*
1587%lang(it) %{_mandir}/it/man8/mount.8*
1588%lang(it) %{_mandir}/it/man8/umount.8*
1589%lang(it) %{_mandir}/it/man8/swapon.8*
1590%lang(it) %{_mandir}/it/man8/swapoff.8*
1591
1592%lang(ja) %{_mandir}/ja/man5/fstab.5*
1593%lang(ja) %{_mandir}/ja/man8/mount.8*
1594%lang(ja) %{_mandir}/ja/man8/umount.8*
1595%lang(ja) %{_mandir}/ja/man8/pivot_root.8*
1596%lang(ja) %{_mandir}/ja/man8/swapon.8*
1597%lang(ja) %{_mandir}/ja/man8/swapoff.8*
1598
1599%lang(ko) %{_mandir}/ko/man5/fstab.5*
1600%lang(ko) %{_mandir}/ko/man8/mount.8*
1601%lang(ko) %{_mandir}/ko/man8/umount.8*
1602%lang(ko) %{_mandir}/ko/man8/swapon.8*
1603%lang(ko) %{_mandir}/ko/man8/swapoff.8*
1604
1605%lang(pl) %{_mandir}/pl/man5/fstab.5*
1606%lang(pl) %{_mandir}/pl/man8/mount.8*
1607%lang(pl) %{_mandir}/pl/man8/umount.8*
1608%lang(pl) %{_mandir}/pl/man8/swapon.8*
1609%lang(pl) %{_mandir}/pl/man8/swapoff.8*
1610
1611%files -n losetup
1612%defattr(644,root,root,755)
1613%attr(755,root,root) /sbin/losetup
1614%{_mandir}/man8/losetup.8*
1615%lang(fr) %{_mandir}/fr/man8/losetup.8*
1616%lang(it) %{_mandir}/it/man8/losetup.8*
1617%lang(ja) %{_mandir}/ja/man8/losetup.8*
1618%lang(ko) %{_mandir}/ko/man8/losetup.8*
1619%lang(pl) %{_mandir}/pl/man8/losetup.8*
1620
67de32db 1621%files -n tunelp
1622%defattr(644,root,root,755)
1623%attr(755,root,root) %{_sbindir}/tunelp
1624%{_mandir}/man8/tunelp.8*
1625%lang(es) %{_mandir}/es/man8/tunelp.8*
1626%lang(ja) %{_mandir}/ja/man8/tunelp.8*
1627%lang(pl) %{_mandir}/pl/man8/tunelp.8*
1628
1629%files -n login
1630%defattr(644,root,root,755)
1631%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/login
1632%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.login
1633%attr(755,root,root) /bin/login
1634%{_mandir}/man1/login.1*
1635%lang(de) %{_mandir}/de/man1/login.1*
1636%lang(es) %{_mandir}/es/man1/login.1*
1637%lang(hu) %{_mandir}/hu/man1/login.1*
1638%lang(id) %{_mandir}/id/man1/login.1*
1639%lang(ja) %{_mandir}/ja/man1/login.1*
1640%lang(ko) %{_mandir}/ko/man1/login.1*
1641%lang(pl) %{_mandir}/pl/man1/login.1*
1642
1643%files -n agetty
1644%defattr(644,root,root,755)
1645%attr(755,root,root) /sbin/agetty
1646%{_mandir}/man8/agetty.8*
1647%lang(es) %{_mandir}/es/man8/agetty.8*
1648%lang(ja) %{_mandir}/ja/man8/agetty.8*
1649
1650%files -n libblkid
1651%defattr(644,root,root,755)
1652%attr(755,root,root) /%{_lib}/libblkid.so.*.*
1653%attr(755,root,root) %ghost /%{_lib}/libblkid.so.1
1654
1655%files -n libblkid-devel
1656%defattr(644,root,root,755)
1657%attr(755,root,root) %{_libdir}/libblkid.so
67de32db 1658%{_includedir}/blkid
1659%{_pkgconfigdir}/blkid.pc
1660%{_mandir}/man3/libblkid.3*
028b554f 1661%lang(de) %{_mandir}/de/man3/libblkid.3*
67de32db 1662
1663%files -n libblkid-static
1664%defattr(644,root,root,755)
1665%{_libdir}/libblkid.a
1666
1667%if %{with initrd} && %{with dietlibc}
1668%files -n libblkid-dietlibc
1669%defattr(644,root,root,755)
1670%{dietlibdir}/libblkid.a
1671%endif
1672
f7f13771
MK
1673%if %{with apidocs}
1674%files -n libblkid-apidocs
1675%defattr(644,root,root,755)
1676%{_gtkdocdir}/libblkid
1677%endif
1678
67de32db 1679%files -n libuuid
1680%defattr(644,root,root,755)
1681%attr(755,root,root) %{_bindir}/uuidgen
1682%attr(755,root,root) /%{_lib}/libuuid.so.*.*
1683%attr(755,root,root) %ghost /%{_lib}/libuuid.so.1
1684%{_mandir}/man1/uuidgen.1*
1685
1686%files -n libuuid-devel
1687%defattr(644,root,root,755)
1688%attr(755,root,root) %{_libdir}/libuuid.so
1689%{_libdir}/libuuid.la
1690%{_includedir}/uuid
1691%{_pkgconfigdir}/uuid.pc
1692%{_mandir}/man3/uuid*.3*
028b554f 1693%lang(de) %{_mandir}/de/man3/uuid*.3*
67de32db 1694
1695%files -n libuuid-static
1696%defattr(644,root,root,755)
1697%{_libdir}/libuuid.a
1698
1699%if %{with initrd} && %{with dietlibc}
1700%files -n libuuid-dietlibc
1701%defattr(644,root,root,755)
1702%{dietlibdir}/libuuid.a
1703%endif
1704
1705%files -n uuidd
1706%defattr(644,root,root,755)
1707%attr(6755,uuidd,uuidd) %{_sbindir}/uuidd
1708%attr(2775,uuidd,uuidd) /var/lib/libuuid
1709%{_mandir}/man8/uuidd.8*
0deefbb8 1710%if %{with systemd}
4fa9d824
AM
1711%{systemdunitdir}/uuidd.service
1712%{systemdunitdir}/uuidd.socket
0deefbb8 1713%endif
67de32db 1714
c7c0c6cb
JB
1715%files -n libfdisk
1716%defattr(644,root,root,755)
1717%doc libfdisk/COPYING
1718%attr(755,root,root) /%{_lib}/libfdisk.so.*.*
1719%attr(755,root,root) %ghost /%{_lib}/libfdisk.so.1
1720
1721%files -n libfdisk-devel
1722%defattr(644,root,root,755)
1723%attr(755,root,root) %{_libdir}/libfdisk.so
1724%{_includedir}/libfdisk
1725%{_pkgconfigdir}/fdisk.pc
1726
1727%files -n libfdisk-static
1728%defattr(644,root,root,755)
1729%{_libdir}/libfdisk.a
1730
f7f13771
MK
1731%if %{with apidocs}
1732%files -n libfdisk-apidocs
1733%defattr(644,root,root,755)
1734%{_gtkdocdir}/libfdisk
1735%endif
1736
67de32db 1737%files -n libmount
1738%defattr(644,root,root,755)
c7c0c6cb 1739%doc libmount/COPYING
67de32db 1740%attr(755,root,root) /%{_lib}/libmount.so.*.*
1741%attr(755,root,root) %ghost /%{_lib}/libmount.so.1
67de32db 1742
1743%files -n libmount-devel
1744%defattr(644,root,root,755)
1745%attr(755,root,root) %{_libdir}/libmount.so
67de32db 1746%{_includedir}/libmount
1747%{_pkgconfigdir}/mount.pc
1748
1749%files -n libmount-static
1750%defattr(644,root,root,755)
1751%{_libdir}/libmount.a
1752
f7f13771
MK
1753%if %{with apidocs}
1754%files -n libmount-apidocs
1755%defattr(644,root,root,755)
1756%{_gtkdocdir}/libmount
1757%endif
1758
8b6144a3
JB
1759%files -n python3-libmount
1760%defattr(644,root,root,755)
1761%dir %{py3_sitedir}/libmount
1762%attr(755,root,root) %{py3_sitedir}/libmount/pylibmount.so
1763%{py3_sitedir}/libmount/__init__.py
1764%{py3_sitedir}/libmount/__pycache__
1765
67de32db 1766%files -n fsck
1767%defattr(644,root,root,755)
1768%attr(755,root,root) /sbin/fsck
1769%{_mandir}/man8/fsck.8*
1770
8b6144a3 1771%files -n libsmartcols
971f9098 1772%defattr(644,root,root,755)
8b6144a3
JB
1773%attr(755,root,root) /%{_lib}/libsmartcols.so.*.*.*
1774%attr(755,root,root) %ghost /%{_lib}/libsmartcols.so.1
8b6144a3
JB
1775
1776%files -n libsmartcols-devel
1777%defattr(644,root,root,755)
1778%attr(755,root,root) %{_libdir}/libsmartcols.so
1779%{_includedir}/libsmartcols
1780%{_pkgconfigdir}/smartcols.pc
1781
1782%files -n libsmartcols-static
1783%defattr(644,root,root,755)
1784%{_libdir}/libsmartcols.a
971f9098 1785
f7f13771
MK
1786%if %{with apidocs}
1787%files -n libsmartcols-apidocs
1788%defattr(644,root,root,755)
1789%{_gtkdocdir}/libsmartcols
1790%endif
1791
67de32db 1792%if %{with initrd}
1793%files initrd
1794%defattr(644,root,root,755)
6e84fb29
JB
1795%attr(755,root,root) %{_libdir}/initrd/blkid
1796%attr(755,root,root) %{_libdir}/initrd/blockdev
1797%attr(755,root,root) %{_libdir}/initrd/fdformat
1798%attr(755,root,root) %{_libdir}/initrd/fdisk
1799%attr(755,root,root) %{_libdir}/initrd/findfs
1800%attr(755,root,root) %{_libdir}/initrd/hwclock
1801%attr(755,root,root) %{_libdir}/initrd/look
1802%attr(755,root,root) %{_libdir}/initrd/mkswap
1803%attr(755,root,root) %{_libdir}/initrd/namei
1804%attr(755,root,root) %{_libdir}/initrd/rename
1805%ifnarch sparc sparcv9 sparc64
1806%attr(755,root,root) %{_libdir}/initrd/sfdisk
1807%endif
1808%attr(755,root,root) %{_libdir}/initrd/swaplabel
1809%attr(755,root,root) %{_libdir}/initrd/uuidgen
1810%attr(755,root,root) %{_libdir}/initrd/wipefs
1811# not needed?
1812#%attr(755,root,root) %{_libdir}/initrd/chrt
1813# not built because of disabled libmount
1814#%attr(755,root,root) %{_libdir}/initrd/e2fsck
1815#%attr(755,root,root) %{_libdir}/initrd/fsck
67de32db 1816%endif
8b6144a3
JB
1817
1818%files -n bash-completion-util-linux
1819%defattr(644,root,root,755)
56a8c6a4
JB
1820%{bash_compdir}/addpart
1821%{bash_compdir}/blkdiscard
1822%{bash_compdir}/blkid
1823%{bash_compdir}/blkzone
1824%{bash_compdir}/blockdev
1825%{bash_compdir}/cal
1826%{bash_compdir}/cfdisk
1827%{bash_compdir}/chcpu
1828%{bash_compdir}/chmem
1829%{bash_compdir}/chrt
1830%{bash_compdir}/col
1831%{bash_compdir}/colcrt
1832%{bash_compdir}/colrm
1833%{bash_compdir}/column
1834%{bash_compdir}/ctrlaltdel
1835%{bash_compdir}/delpart
1836%{bash_compdir}/dmesg
1837%{bash_compdir}/eject
1838%{bash_compdir}/fallocate
1839%{bash_compdir}/fdformat
1840%{bash_compdir}/fdisk
1841%{bash_compdir}/fincore
1842%{bash_compdir}/findfs
1843%{bash_compdir}/findmnt
1844%{bash_compdir}/flock
1845%{bash_compdir}/fsck
1846%{bash_compdir}/fsck.cramfs
1847%{bash_compdir}/fsck.minix
1848%{bash_compdir}/fsfreeze
1849%{bash_compdir}/fstrim
1850%{bash_compdir}/getopt
a3c78a30 1851%{bash_compdir}/hardlink
56a8c6a4
JB
1852%{bash_compdir}/hexdump
1853%{bash_compdir}/hwclock
1854%{bash_compdir}/ionice
1855%{bash_compdir}/ipcmk
1856%{bash_compdir}/ipcrm
1857%{bash_compdir}/ipcs
aca17f99 1858%{bash_compdir}/irqtop
56a8c6a4
JB
1859%{bash_compdir}/isosize
1860%{bash_compdir}/last
1861%{bash_compdir}/ldattach
1862%{bash_compdir}/logger
1863%{bash_compdir}/look
1864%{bash_compdir}/losetup
1865%{bash_compdir}/lsblk
1866%{bash_compdir}/lscpu
1867%{bash_compdir}/lsipc
aca17f99 1868%{bash_compdir}/lsirq
56a8c6a4
JB
1869%{bash_compdir}/lslocks
1870%{bash_compdir}/lslogins
1871%{bash_compdir}/lsmem
1872%{bash_compdir}/lsns
1873%{bash_compdir}/mcookie
1874%{bash_compdir}/mesg
1875%{bash_compdir}/mkfs
1876%{bash_compdir}/mkfs.bfs
1877%{bash_compdir}/mkfs.cramfs
1878%{bash_compdir}/mkfs.minix
1879%{bash_compdir}/mkswap
1880%{bash_compdir}/more
1881%{bash_compdir}/mount
1882%{bash_compdir}/mountpoint
1883%{bash_compdir}/namei
1884%{bash_compdir}/nsenter
1885%{bash_compdir}/partx
1886%{bash_compdir}/pg
1887%{bash_compdir}/pivot_root
1888%{bash_compdir}/prlimit
56a8c6a4
JB
1889%{bash_compdir}/readprofile
1890%{bash_compdir}/rename
1891%{bash_compdir}/renice
1892%{bash_compdir}/resizepart
1893%{bash_compdir}/rev
1894%{bash_compdir}/rfkill
1895%{bash_compdir}/rtcwake
1896%{bash_compdir}/runuser
1897%{bash_compdir}/script
1898%{bash_compdir}/scriptlive
1899%{bash_compdir}/scriptreplay
1900%{bash_compdir}/setarch
1901%{bash_compdir}/setpriv
1902%{bash_compdir}/setsid
1903%{bash_compdir}/setterm
1904%{bash_compdir}/sfdisk
1905%{bash_compdir}/su
1906%{bash_compdir}/swaplabel
1907%{bash_compdir}/swapoff
1908%{bash_compdir}/swapon
1909%{bash_compdir}/taskset
1910%{bash_compdir}/tunelp
028b554f 1911%{bash_compdir}/uclampset
56a8c6a4
JB
1912%{bash_compdir}/ul
1913%{bash_compdir}/umount
1914%{bash_compdir}/unshare
1915%{bash_compdir}/utmpdump
1916%{bash_compdir}/uuidd
1917%{bash_compdir}/uuidgen
1918%{bash_compdir}/uuidparse
1919%{bash_compdir}/wdctl
1920%{bash_compdir}/whereis
1921%{bash_compdir}/wipefs
1922%{bash_compdir}/write
1923%{bash_compdir}/zramctl
This page took 0.453373 seconds and 4 git commands to generate.