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