]> git.pld-linux.org Git - packages/util-linux.git/blobdiff - util-linux.spec
- rebuild with readline 7.0
[packages/util-linux.git] / util-linux.spec
index babcb7c7daa07a296d4008c782152d4fb29179c0..429a07ab8cbec570db4bbef050aa7b986fe054db 100644 (file)
@@ -1,13 +1,31 @@
+# TODO
+# - remote chfn/chsh (BR: libuser)? - but PLD uses pwdutils/shadow implementation currently
+# - verify initrd tools set:
+#   - I've taken list from 2.21.3 package, but there was no explicit list, so
+#     there are probably some unneeded tools
+#   - chrt is not built now (because of --disable-schedutils), but it's probably not needed
+#   - fsck is not built now (because of --disable-libmount)
+#   - maybe we want some more now?
 #
-# TODO:
-# - move logger to separate package (to avoid conflicts with inetutils)
-# - what to do with scriptreplay? (req: perl)
-# 
 # Conditional build:
-%bcond_without audit   # don't include audit support
-%bcond_with    uClibc  # don't build few utilities
-%bcond_without selinux # build without SELinux support
-#
+%bcond_with    uClibc          # link initrd version with static glibc instead of uClibc
+%bcond_without dietlibc        # link initrd version with dietlibc instead of uClibc
+%bcond_without selinux         # SELinux support
+%bcond_without su              # su/runuser programs
+%if "%{pld_release}" == "ac"
+%bcond_with    initrd          # don't build initrd version
+%bcond_with    fallocate       # fallocate utility (needs glibc 2.11 to compile)
+%else
+%bcond_with    initrd          # don't build initrd version
+%bcond_without fallocate       # fallocate utility (needs glibc 2.11 to compile)
+%endif
+
+%if "%{pld_release}" == "ac"
+%define                pam_ver 0.79.0
+%else
+%define                pam_ver 1:1.1.8-5
+%endif
+
 Summary:       Collection of basic system utilities for Linux
 Summary(de.UTF-8):     Sammlung von grundlegenden Systemdienstprogrammen für Linux
 Summary(es.UTF-8):     Colectánea de utilitarios básicos de sistema para Linux
@@ -18,127 +36,107 @@ Summary(ru.UTF-8):        Набор базовых системных утилит д
 Summary(tr.UTF-8):     Temel sistem araçları
 Summary(uk.UTF-8):     Набір базових системних утиліт для Linux
 Name:          util-linux
-Version:       2.13
-%define        _pre    pre7
-Release:       0.%{_pre}.3
-License:       distributable
+Version:       2.28
+Release:       2
+License:       GPL v2+
 Group:         Applications/System
-# devel versions at ftp://ftp.kernel.org/pub/linux/utils/util-linux/testing
-Source0:       ftp://ftp.kernel.org/pub/linux/utils/util-linux/testing/%{name}-%{version}-%{_pre}.tar.bz2
-# Source0-md5: 13cdf4b76533e8421dc49de188f85291
-#Source1:      http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
-Source1:       %{name}-non-english-man-pages.tar.bz2
-# Source1-md5: 81bbcc9a820512ecde87a8f31de0b745
+Source0:       https://www.kernel.org/pub/linux/utils/util-linux/v2.28/%{name}-%{version}.tar.xz
+# Source0-md5: e534e6ccc49107e5d31c329af798ef7d
+Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+# Source1-md5: 3c940c7e7fe699eaa2ddb1bffb3de2fe
 Source2:       login.pamd
-Source3:       rawdevices.init
-Source4:       rawdevices.sysconfig
-Source5:       %{name}-blockdev.init
-Source6:       %{name}-blockdev.sysconfig
-Patch1:                %{name}-fdisk.patch
-Patch2:                %{name}-fhs.patch
-Patch3:                %{name}-info.patch
-Patch4:                %{name}-syscall.patch
-Patch5:                %{name}-ncurses.patch
-Patch6:                %{name}-ppc-hwclock.patch
-Patch7:                %{name}-amd64.patch
-Patch8:                %{name}-dm_crypt.patch
-Patch9:                %{name}-blk.patch
-Patch10:       %{name}-managed.patch
-Patch11:       %{name}-gcc4.patch
-Patch12:       %{name}-2.12q-update-mtab-when-moving.patch
-Patch13:       %{name}-2.12q-use-update_mtab-for-fake.patch
-Patch14:       %{name}-2.12q-more-fake-checks-v2.patch
-Patch15:       %{name}-2.12q-update_mtab-fixes.patch
-Patch16:       %{name}-audit-hwclock.patch
-Patch17:       %{name}-audit-login.patch
-Patch18:       %{name}-multibyte.patch
-Patch19:       %{name}-chsh.patch
-Patch20:       %{name}-col-EILSEQ.patch
-Patch21:       %{name}-cramfs-maxentries.patch
-Patch22:       %{name}-cramfs-zerofiles.patch
-Patch23:       %{name}-ctrlaltdel-man.patch
-Patch24:       %{name}-ctty3.patch
-Patch25:       %{name}-execl.patch
-Patch26:       %{name}-fdformat-ide.patch
-Patch27:       %{name}-fdisk-b-4096.patch
-Patch28:       %{name}-fdisk-gpt.patch
-Patch29:       %{name}-fdisk-isfull.patch
-Patch30:       %{name}-fdisk-sectors.patch
-Patch31:       %{name}-fdisksegv.patch
-Patch32:       %{name}-hexdump-gcc.patch
-Patch33:       %{name}-hotkeys.patch
-Patch34:       %{name}-ipcs-shmax.patch
-Patch35:       %{name}-ipcs-typo.patch
-Patch36:       %{name}-login-hang.patch
-Patch37:       %{name}-login-ipv6.patch
-Patch38:       %{name}-login-lastlog.patch
-Patch39:       %{name}-login-pam-acct.patch
-Patch40:       %{name}-login-timeval.patch
-Patch41:       %{name}-look-separator.patch
-Patch42:       %{name}-losetup-all.patch
-Patch43:       %{name}-losetup-deprecated.patch
-Patch44:       %{name}-losetup-rdonly.patch
-Patch45:       %{name}-lvm2dupes.patch
-Patch46:       %{name}-mkswap-mounted.patch
-Patch47:       %{name}-mkswap-selinux.patch
-Patch48:       %{name}-more-CLOEXEC.patch
-Patch49:       %{name}-mountbylabel-dm.patch
-Patch50:       %{name}-mount-context.patch
-Patch51:       %{name}-mount.helper-fake.patch
-Patch52:       %{name}-mount-man-bugs.patch
-Patch53:       %{name}-mount-man-cifs.patch
-Patch54:       %{name}-mount-man-nfs4.patch
-Patch55:       %{name}-mount-man-nfs.patch
-Patch56:       %{name}-mount-nonfs.patch
-Patch57:       %{name}-mount-sloppy.patch
-Patch58:       %{name}-mount-subtree.patch
-Patch59:       %{name}-mount-twiceloop.patch
-Patch60:       %{name}-mount-uhelper.patch
-Patch61:       %{name}-mount-uuid.patch
-Patch62:       %{name}-mtab-lock.patch
-Patch63:       %{name}-namei-logic.patch
-Patch64:       %{name}-pamsession.patch
-Patch65:       %{name}-partx-man.patch
-Patch66:       %{name}-procpartitions.patch
-Patch67:       %{name}-raw-handle-nonpresent-devs.patch
-Patch68:       %{name}-raw-man.patch
-Patch69:       %{name}-raw-raw0.patch
-Patch70:       %{name}-rdev-man.patch
-Patch71:       %{name}-schedutils-man.patch
-Patch72:       %{name}-schedutils-SCHED_BATCH.patch
-Patch73:       %{name}-skipraid2.patch
-Patch74:       %{name}-swapon-suspend.patch
-Patch75:       %{name}-swaponsymlink.patch
-Patch76:       %{name}-swap-page.patch
-Patch77:       %{name}-umount-sysfs.patch
-Patch78:       %{name}-ac-dirs.patch
-Patch79:       %{name}-mount-helper-auto.patch
-Patch80:       %{name}-sparc.patch
-Patch81:       %{name}-single_letter_weekday.patch
-%{?with_audit:BuildRequires:   audit-libs-devel}
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: cryptsetup-luks-devel
-BuildRequires: e2fsprogs-devel >= 1.36
-BuildRequires: gettext-devel
-BuildRequires: intltool
-%{?with_selinux:BuildRequires: libselinux-devel}
-%{!?with_uClibc:BuildRequires: ncurses-devel >= 5.0}
-%{!?with_uClibc:BuildRequires: pam-devel >= 0.99.7.1}
-BuildRequires: rpmbuild(macros) >= 1.268
+Source3:       %{name}-blockdev.init
+Source4:       %{name}-blockdev.sysconfig
+Source6:       su.pamd
+Source7:       su-l.pamd
+Source8:       runuser.pamd
+Source9:       runuser-l.pamd
+Source10:      nologin.c
+Source11:      nologin.8
+Source12:      blockdev.service
+Source13:      blockdev.sh
+Patch0:                %{name}-fdformat-ide.patch
+Patch1:                %{name}-fhs.patch
+Patch2:                %{name}-login-lastlog.patch
+Patch3:                %{name}-procpartitions.patch
+Patch4:                su-paths.patch
+Patch5:                %{name}-diet.patch
+URL:           https://github.com/karelzak/util-linux
+BuildRequires: audit-libs-devel >= 1.0.6
+BuildRequires: autoconf >= 2.60
+BuildRequires: automake >= 1:1.10
+BuildRequires: gettext-tools >= 0.14.1
+%{?with_fallocate:BuildRequires:       glibc-devel >= 6:2.11}
+BuildRequires: gtk-doc >= 1.10
+BuildRequires: gtk-doc-automake >= 1.10
+BuildRequires: libcap-ng-devel
+%{?with_selinux:BuildRequires: libselinux-devel >= 2.0}
+%{?with_selinux:BuildRequires: libsepol-devel}
+BuildRequires: libtool >= 2:2.2
+BuildRequires: linux-libc-headers >= 7:2.6.27
+BuildRequires: ncurses-devel >= 5.0
+BuildRequires: pam-devel >= %{pam_ver}
+BuildRequires: pkgconfig
+BuildRequires: python3-devel
+BuildRequires: readline-devel
+BuildRequires: rpm >= 4.4.9-56
+BuildRequires: rpmbuild(macros) >= 1.671
 BuildRequires: sed >= 4.0
-BuildRequires: texinfo
-%{!?with_uClibc:BuildRequires: zlib-devel}
-%{!?with_uClibc:Requires:      pam >= 0.99.7.1}
+BuildRequires: tar >= 1:1.22
+BuildRequires: udev-devel
+BuildRequires: xz
+BuildRequires: zlib-devel
+%if %{with initrd}
+       %if %{with uClibc}
+BuildRequires: uClibc-static >= 2:0.9.29
+       %else
+               %if %{with dietlibc}
+BuildRequires: dietlibc-static >= 2:0.32-14
+               %else
+BuildRequires: glibc-static
+               %endif
+       %endif
+%endif
+Requires:      libblkid = %{version}-%{release}
+Requires:      libfdisk = %{version}-%{release}
+%{?with_selinux:Requires:      libselinux >= 2.0}
+Requires:      libsmartcols = %{version}-%{release}
+Requires:      pam >= %{pam_ver}
+Provides:      eject = %{version}-%{release}
 Provides:      fdisk
+Provides:      linux32
+Provides:      sparc32
 Obsoletes:     cramfs
+Obsoletes:     eject
+Obsoletes:     ionice
+Obsoletes:     linux32
+Obsoletes:     rawdevices
 Obsoletes:     schedutils
+Obsoletes:     setarch
+Obsoletes:     sparc32
+Obsoletes:     util-linux-chkdupexe
+Obsoletes:     util-linux-ng < 2.20-1
 Obsoletes:     util-linux-suids
+Conflicts:     SysVinit-tools < 2.88-15
+Conflicts:     e2fsprogs < 1.41.8-5
+Conflicts:     rc-scripts < 0.4.9-2
 Conflicts:     shadow-extras < 1:4.0.3-6
+%if %{with su}
+Conflicts:     coreutils < 8.19
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                debugcflags     -O1 -g
 
+# for some reason known only to rpm there must be "\\|" not "\|" here
+%define                dietarch        %(echo %{_target_cpu} | sed -e 's/i.86\\|pentium.\\|athlon/i386/;s/amd64/x86_64/;s/armv.*/arm/')
+%define                dietlibdir      %{_prefix}/lib/dietlibc/lib-%{dietarch}
+
+%ifarch ppc ppc64
+# for dietlibc
+%define                filterout_ld    -Wl,-z,relro
+%endif
+
 %description
 util-linux contains a large variety of low-level system utilities
 necessary for a functional Linux system. This includes, among other
@@ -155,7 +153,7 @@ Linux-System erforderlich sind. Dazu gehören Konfigurationstools wie
 util-linux contiene una gran variedad de utilitarios de sistema de
 bajo nivel necesarios a un sistema Linux funcional. Esto incluye,
 entre otras cosas, herramientas de configuración como fdisk y
-programas de sistema como login.
+programas de sistema como logger.
 
 %description -l fr.UTF-8
 util-linux contient une grande variété d'utilitaire système bas niveau
@@ -173,13 +171,13 @@ programy systemowe, takie jak logger.
 util-linux contém uma grande variedade de utilitários de sistema de
 baixo-nível necessários para um sistema Linux funcional. Isso inclui,
 entre outras coisas, ferramentas de configuração como fdisk e
-programas de sistema como login.
+programas de sistema como logger.
 
 %description -l ru.UTF-8
 Этот пакет содержит большой набор системных утилит низкого уровня,
 которые необходимы для функционирования системы Linux. Он включает, в
 числе прочих, инструменты конфигурации, такие как fdisk, и системные
-программы, такие как login.
+программы, такие как logger.
 
 %description -l tr.UTF-8
 şlevsel durumdaki bir Linux sistemi için gerekli birçok alt düzey
@@ -190,16 +188,17 @@ uygulamaları ve logger gibi sistem programları sayılabilir.
 Цей пакет містить великий набір системних утиліт низького рівня, які
 необхідні для функціонування системи Linux. Він містить, окрім інших,
 конфігураційні інструменти (такі як fdisk) та системні програми (такі
-як login).
+як logger).
 
 %package -n blockdev
 Summary:       Support for blockdev
 Summary(pl.UTF-8):     Obsługa blockdev
 Group:         Applications/System
 Requires(post,preun):  /sbin/chkconfig
+Requires(post,preun,postun):   systemd-units >= 38
 Requires:      coreutils
-Requires:      rc-scripts
-#Requires:     uname(release) >= 2.6
+Requires:      rc-scripts >= 0.4.3.0
+Requires:      systemd-units >= 38
 
 %description -n blockdev
 The utility blockdev allows one to call block device ioctls from the
@@ -220,6 +219,7 @@ Summary(ru.UTF-8):  Программы для настройки loopback-уст
 Summary(tr.UTF-8):     Yerel-çevrim aygıtlarının kurulması ve ayarlanması için programlar
 Summary(uk.UTF-8):     Програми для конфігурації loopback-пристроїв
 Group:         Applications/System
+Requires:      libsmartcols = %{version}-%{release}
 
 %description -n losetup
 Linux supports a special block device called the loopback device,
@@ -288,9 +288,11 @@ Summary(ru.UTF-8): Программы для монтирования и раз
 Summary(tr.UTF-8):     Dosya sistemlerini bağlamak ve çözmek için programlar
 Summary(uk.UTF-8):     Програми для монтування та розмонтування файлових систем
 Group:         Applications/System
-Requires:      cryptsetup-luks >= 1.0.4
-Requires:      libgcrypt >= 1.2.0-6
-Requires:      libgpg-error >= 1.0-4
+Requires:      libmount = %{version}-%{release}
+Requires:      libsmartcols = %{version}-%{release}
+Conflicts:     SysVinit < 2.86-26
+# C: nfs-utils-common is opposite to http://cvs.pld-linux.org/packages/nfs-utils/nfs-utils.spec?r1=1.165&r2=1.166
+Conflicts:     nfs-utils-common < 1.1.3-3
 
 %description -n mount
 mount is used for adding new filesystems, both local and networked, to
@@ -347,27 +349,13 @@ sisteminizin işlevselliği açısından kritiktir.
 дерева. Swapon та swapoff, відповідно, дозволяє та заборонює свопінг у
 визначені файли або пристрої.
 
-%package chkdupexe
-Summary:       chkdupexe - find duplicate executables
-Summary(pl.UTF-8):     chkdupexe odszukuje powtarzające się pliki uruchamialne
-Group:         Applications/System
-
-%description chkdupexe
-chkdupexe will scan the union of $PATH and a hardcoded list of common
-locations for binaries. It will report dangling symlinks and
-duplicately-named binaries.
-
-%description chkdupexe -l pl.UTF-8
-chkdupexe przeszukuje katalogi z $PATH oraz inne powszechnie znane
-katalogi z plikami uruchamialnymi i informuje o powtarzających się
-plikach w różnych katalogach.
-
 %package -n tunelp
 Summary:       Configures kernel parallel port driver
 Summary(de.UTF-8):     Konfiguriert den Kerneltreiber für den parallelen Port
 Summary(fr.UTF-8):     Configure le pilote du port parallèle dans le noyau
 Summary(pl.UTF-8):     Program do konfigurowania sterownika portu równoległego
 Summary(tr.UTF-8):     Çekirdeğin paralel bağlantı noktası sürücüsünü ayarlar
+License:       GPL v2+
 Group:         Applications/System
 
 %description -n tunelp
@@ -390,7 +378,7 @@ Paralel bağlantı noktası sürücüsünü ayarlar.
 Summary:       login is used when signing onto a system
 Summary(pl.UTF-8):     login jest używany do rozpoczęcia pracy w systemie
 Group:         Applications/System
-Requires:      pam >= 0.99.7.1
+Requires:      pam >= %{pam_ver}
 Obsoletes:     heimdal-login
 
 %description -n login
@@ -415,287 +403,744 @@ agetty is simple Linux getty with serial support.
 %description -n agetty -l pl.UTF-8
 agetty jest prostym linuksowym getty z obsługą portu szeregowego.
 
-%package -n rawdevices
-Summary:       Support for raw-devices
-Summary(pl.UTF-8):     Obsługa raw-device'ów
+%package -n libblkid
+Summary:       Library to handle device identification and token extraction
+Summary(pl.UTF-8):     Biblioteka do obsługi identyfikacji urządzeń
+License:       LGPL v2.1+
+Group:         Libraries
+Requires:      libuuid = %{version}-%{release}
+Obsoletes:     util-linux-ng-libs < 2.20-1
+
+%description -n libblkid
+Library to handle device identification and token extraction.
+
+%description -n libblkid -l pl.UTF-8
+Biblioteka do obsługi identyfikacji urządzeń i wydobywania tokenów.
+
+%package -n libblkid-devel
+Summary:       Header files for blkid library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki blkid
+License:       LGPL v2.1+
+Group:         Development/Libraries
+Requires:      libblkid = %{version}-%{release}
+Requires:      libuuid-devel = %{version}-%{release}
+Obsoletes:     util-linux-ng-devel < 2.20-1
+
+%description -n libblkid-devel
+Header files for blkid library.
+
+%description -n libblkid-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki blkid.
+
+%package -n libblkid-static
+Summary:       Static library to handle device identification and token extraction
+Summary(pl.UTF-8):     Statyczna biblioteka do obsługi identyfikacji urządzeń
+License:       LGPL v2.1+
+Group:         Development/Libraries
+Requires:      libblkid-devel = %{version}-%{release}
+Requires:      libuuid-static = %{version}-%{release}
+Obsoletes:     util-linux-ng-static < 2.20-1
+
+%description -n libblkid-static
+Static library to handle device identification and token extraction.
+
+%description -n libblkid-static -l pl.UTF-8
+Statyczna biblioteka do obsługi identyfikacji urządzeń i wydobywania
+tokenów.
+
+%package -n libblkid-dietlibc
+Summary:       Static dietlibc library to handle device identification and token extraction
+Summary(pl.UTF-8):     Statyczna biblioteka dietlibc do obsługi identyfikacji urządzeń
+License:       LGPL v2.1+
+Group:         Development/Libraries
+Requires:      libblkid-devel = %{version}-%{release}
+Requires:      libuuid-dietlibc = %{version}-%{release}
+
+%description -n libblkid-dietlibc
+Library to handle device identification and token extraction - static
+dietlibc version.
+
+%description -n libblkid-dietlibc -l pl.UTF-8
+Biblioteka do obsługi identyfikacji urządzeń i wydobywania tokenów -
+wersja statyczna dla dietlibc.
+
+%package -n libuuid
+Summary:       Library for accessing and manipulating UUID
+Summary(pl.UTF-8):     Biblioteka umożliwiająca dostęp i zmiany UUID
+License:       BSD
+Group:         Libraries
+Conflicts:     e2fsprogs < 1.34-3
+
+%description -n libuuid
+Library for accessing and manipulating UUID.
+
+%description -n libuuid -l pl.UTF-8
+Biblioteka umożliwiająca dostęp i zmiany UUID.
+
+%package -n libuuid-devel
+Summary:       Header files for library for accessing and manipulating UUID
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki umożliwiającej dostęp i zmiany UUID
+License:       BSD
+Group:         Development/Libraries
+Requires:      libuuid = %{version}-%{release}
+Conflicts:     e2fsprogs-devel < 1.34-3
+
+%description -n libuuid-devel
+Library for accessing and manipulating UUID - development files.
+
+%description -n libuuid-devel -l pl.UTF-8
+Biblioteka umożliwiająca dostęp i zmiany UUID - pliki dla
+programistów.
+
+%package -n libuuid-static
+Summary:       Static library for accessing and manipulating UUID
+Summary(pl.UTF-8):     Statyczna biblioteka umożliwiająca dostęp i zmiany UUID
+License:       BSD
+Group:         Development/Libraries
+Requires:      libuuid-devel = %{version}-%{release}
+Conflicts:     e2fsprogs-static < 1.34-3
+
+%description -n libuuid-static
+Library for accessing and manipulating UUID - static version.
+
+%description -n libuuid-static -l pl.UTF-8
+Biblioteka umożliwiająca dostęp i zmiany UUID - wersja statyczna.
+
+%package -n libuuid-dietlibc
+Summary:       Static dietlibc library for accessing and manipulating UUID
+Summary(pl.UTF-8):     Statyczna biblioteka dietlibc umożliwiająca dostęp i zmiany UUID
+License:       BSD
+Group:         Development/Libraries
+Requires:      libuuid-devel = %{version}-%{release}
+Conflicts:     e2fsprogs-static < 1.34-3
+
+%description -n libuuid-dietlibc
+Library for accessing and manipulating UUID - static dietlibc version.
+
+%description -n libuuid-dietlibc -l pl.UTF-8
+Biblioteka umożliwiająca dostęp i zmiany UUID - wersja statyczna dla
+dietlibc.
+
+%package -n uuidd
+Summary:       Helper daemon to guarantee uniqueness of time-based UUIDs
+Summary(pl.UTF-8):     Pomocniczy demon gwarantujący unikalność UUID-ów opartych na czasie
+License:       GPL v2
+Group:         Daemons
+Requires(postun):      /usr/sbin/groupdel
+Requires(postun):      /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/groupmod
+Requires(pre): /usr/sbin/useradd
+Requires(pre): /usr/sbin/usermod
+Requires(post,preun,postun):   systemd-units >= 38
+Requires:      libuuid = %{version}-%{release}
+Requires:      systemd-units >= 38
+Provides:      group(uuidd)
+Provides:      user(uuidd)
+Conflicts:     libuuid < 1.40.5-0.1
+
+%description -n uuidd
+The uuidd package contains a userspace daemon (uuidd) which guarantees
+uniqueness of time-based UUID generation even at very high rates on
+SMP systems.
+
+%description -n uuidd -l pl.UTF-8
+Ten pakiet zawiera działającego w przestrzeni użytkownika demona
+(uuidd) gwarantującego unikalność generowania UUID-ów opartych na
+czasie nawet przy bardzo dużej częstotliwości na systemach SMP.
+
+%package -n libfdisk
+Summary:       fdisk library
+Summary(pl.UTF-8):     Biblioteka fdisk
+License:       LGPL v2.1+
+Group:         Libraries
+Requires:      libblkid = %{version}-%{release}
+Requires:      libuuid = %{version}-%{release}
+
+%description -n libfdisk
+fdisk library.
+
+%description -n libfdisk -l pl.UTF-8
+Biblioteka fdisk.
+
+%package -n libfdisk-devel
+Summary:       Header files for fdisk library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki fdisk
+License:       LGPL v2.1+
+Group:         Development/Libraries
+Requires:      libblkid-devel = %{version}-%{release}
+Requires:      libfdisk = %{version}-%{release}
+Requires:      libuuid-devel = %{version}-%{release}
+
+%description -n libfdisk-devel
+Header files for fdisk library.
+
+%description -n libfdisk-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki fdisk.
+
+%package -n libfdisk-static
+Summary:       Static version of fdisk library
+Summary(pl.UTF-8):     Statyczna wersja biblioteki fdisk
+License:       LGPL v2.1+
+Group:         Development/Libraries
+Requires:      libfdisk-devel = %{version}-%{release}
+
+%description -n libfdisk-static
+Static version of fdisk library.
+
+%description -n libfdisk-static -l pl.UTF-8
+Statyczna wersja biblioteki fdisk.
+
+%package -n libmount
+Summary:       Library to handle mounting-related tasks
+Summary(pl.UTF-8):     Biblioteka obsługująca zadania związane z montowaniem
+License:       LGPL v2.1+
+Group:         Libraries
+Requires:      libblkid = %{version}-%{release}
+
+%description -n libmount
+Library to handle mounting-related tasks.
+
+%description -n libmount -l pl.UTF-8
+Biblioteka obsługująca zadania związane z montowaniem.
+
+%package -n libmount-devel
+Summary:       Header files for mount library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki mount
+License:       LGPL v2.1+
+Group:         Development/Libraries
+Requires:      libblkid-devel = %{version}-%{release}
+Requires:      libmount = %{version}-%{release}
+
+%description -n libmount-devel
+Header files for mount library.
+
+%description -n libmount-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki mount.
+
+%package -n libmount-static
+Summary:       Static version of mount library
+Summary(pl.UTF-8):     Statyczna wersja biblioteki mount
+License:       LGPL v2.1+
+Group:         Development/Libraries
+Requires:      libmount-devel = %{version}-%{release}
+
+%description -n libmount-static
+Static version of mount library.
+
+%description -n libmount-static -l pl.UTF-8
+Statyczna wersja biblioteki mount.
+
+%package -n python3-libmount
+Summary:       Python 3.x libmount bindings
+Summary(pl.UTF-8):     Wiązania Pythona 3.x do biblioteki libmount
+License:       LGPL v3+
+Group:         Libraries/Python
+Requires:      libmount = %{version}-%{release}
+
+%description -n python3-libmount
+Python 3.x libmount bindings.
+
+%description -n python3-libmount -l pl.UTF-8
+Wiązania Pythona 3.x do biblioteki libmount.
+
+%package -n fsck
+Summary:       Check and repair a Linux file system
+Summary(pl.UTF-8):     Sprawdzanie i naprawa linuksowego systemu plików
 Group:         Applications/System
-Requires(post,preun):  /sbin/chkconfig
-Requires:      rc-scripts
+Requires:      libblkid = %{version}-%{release}
+
+%description -n fsck
+Check and repair a Linux file system.
+
+%description -n fsck -l pl.UTF-8
+Sprawdzanie i naprawa linuksowego systemu plików.
+
+%package -n libsmartcols
+Summary:       Library to handle tables and trees
+Summary(pl.UTF-8):     Biblioteka do obsługi tabelek i drzewek
+License:       LGPL
+Group:         Libraries
+
+%description -n libsmartcols
+Library to handle tables and trees.
+
+%description -n libsmartcols -l pl.UTF-8
+Biblioteka do obsługi tabelek i drzewek.
+
+%package -n libsmartcols-devel
+Summary:       Header files for smartcols library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki smartcols
+License:       LGPL
+Group:         Development/Libraries
+Requires:      libsmartcols = %{version}-%{release}
+
+%description -n libsmartcols-devel
+Header files for smartcols library.
+
+%description -n libsmartcols-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki smartcols.
+
+%package -n libsmartcols-static
+Summary:       Static version of smartcols library
+Summary(pl.UTF-8):     Statyczna wersja biblioteki smartcols
+License:       LGPL
+Group:         Development/Libraries
+Requires:      libsmartcols-devel = %{version}-%{release}
+
+%description -n libsmartcols-static
+Static version of smartcols library.
+
+%description -n libsmartcols-static -l pl.UTF-8
+Statyczna wersja biblioteki smartcols.
+
+%package initrd
+Summary:       blkid - initrd version
+Summary(pl.UTF-8):     blkid - wersja dla initrd
+Group:         Base
+Obsoletes:     util-linux-ng-initrd < 2.20-1
+Conflicts:     geninitrd < 10000.10
+
+%description initrd
+This package includes a blkid utility to recognize partitions by label
+or UUID - staticaly linked for initrd.
+
+%description initrd -l pl.UTF-8
+Pakiet ten zawiera narzędzie blkid do rozpoznawania partycji przez
+etykietę lub UUID - statycznie skonsolidowane na potrzeby initrd.
+
+%package -n bash-completion-util-linux
+Summary:       bash completion for util-linux commands
+Summary(pl.UTF-8):     Bashowe dopełnianie parametrów dla poleceń z pakietu util-linux
+Group:         Applications/Shells
+Requires:      %{name} = %{version}-%{release}
+Requires:      bash-completion >= 2.0
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
-%description -n rawdevices
-Support for raw-devices.
+%description -n bash-completion-util-linux
+Bash completion for util-linux commands.
 
-%description -n rawdevices -l pl.UTF-8
-Obsługa raw-device'ów.
+%description -n bash-completion-util-linux -l pl.UTF-8
+Bashowe dopełnianie parametrów dla poleceń z pakietu util-linux.
 
 %prep
-%setup -q -a1 -n %{name}-%{version}-%{_pre}
+%setup -q -a1
+%patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
-%patch8 -p1
-%patch9 -p1
-%patch10 -p1
-%patch11 -p1
-%patch12 -p0
-%patch13 -p1
-%patch14 -p0
-%patch15 -p1
-%{?with_audit:%patch16 -p1}
-%{?with_audit:%patch17 -p1}
-%patch18 -p1
-%patch19 -p1
-%patch20 -p1
-%patch21 -p1
-%patch22 -p1
-%patch23 -p1
-%patch24 -p1
-%patch25 -p1
-%patch26 -p1
-%patch27 -p1
-%patch28 -p1
-%patch29 -p1
-%patch30 -p1
-%patch31 -p1
-%patch32 -p1
-%patch33 -p1
-%patch34 -p1
-%patch35 -p1
-%patch36 -p1
-%patch37 -p1
-%patch38 -p1
-%patch39 -p1
-%patch40 -p1
-%patch41 -p1
-%patch42 -p1
-%patch43 -p1
-%patch44 -p1
-%patch45 -p1
-%patch46 -p1
-%patch47 -p1
-%patch48 -p1
-%patch49 -p1
-%patch50 -p1
-%patch79 -p1
-%patch51 -p1
-%patch52 -p1
-%patch53 -p1
-%patch54 -p1
-%patch55 -p1
-%patch56 -p1
-%patch57 -p1
-%patch58 -p1
-%patch59 -p1
-%patch60 -p1
-%patch61 -p1
-%patch62 -p1
-%patch63 -p1
-%patch64 -p1
-%patch65 -p1
-%patch66 -p1
-%patch67 -p1
-%patch68 -p1
-%patch69 -p1
-%patch70 -p1
-%patch71 -p1
-%patch72 -p1
-%patch73 -p1
-%patch74 -p1
-%patch75 -p1
-%patch76 -p1
-%patch77 -p1
-%patch78 -p1
-%patch80 -p1
-%patch81 -p1
+%{?with_initrd:%patch5 -p1}
+
+cp -p %{SOURCE10} nologin.c
+
+%{__rm} po/stamp-po
 
 %build
 %{__gettextize}
+%{__libtoolize}
 %{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
+
+export CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses -DHAVE_LSEEK64_PROTOTYPE -DHAVE_LLSEEK_PROTOTYPE"
+%if %{with initrd}
+%{?with_uClibc:xCC="%{_target_cpu}-uclibc-gcc"}
+%{?with_dietlibc:xCC="%{__cc}"; xCC="diet ${xCC#*ccache }"}
 %configure \
+%if %{with dietlibc}
+       ac_cv_header_crypt_h=no \
+       ac_cv_header_stdio_ext_h=no \
+%endif
+       CC="$xCC" \
+%if "%{?configure_cache}" == "1"
+       --cache-file=%{?configure_cache_file}%{!?configure_cache_file:configure}-initrd.cache \
+%endif
+       --exec-prefix= \
        --bindir=/bin \
        --sbindir=/sbin \
-       %{?with_uClibc:--disable-pam} \
-       %{!?with_selinux:--disable-selinux} \
+       --libdir=/%{_lib} \
+       --disable-shared \
+       --enable-static \
+       --disable-agetty \
+       --disable-chfn-chsh \
+       --disable-cramfs \
+       --disable-kill \
+       --disable-ldattach \
+       --disable-libmount \
+       --disable-login \
+       --disable-losetup \
+       --disable-minix \
+       --disable-newgrp \
+       --disable-partx \
+       --disable-raw \
+       --disable-runuser \
+       --disable-schedutils \
+       --disable-setarch \
+       --disable-silent-rules \
+       --disable-su \
+       --disable-sulogin \
+       --disable-tunelp \
        --disable-use-tty-group \
+       --disable-utmpdump \
+       --disable-uuidd \
+       --disable-vipw \
        --disable-wall \
+       --without-audit \
+       --without-ncurses \
+       --without-selinux \
+       --without-smack
+
+# configure gets it unconditionally wrong
+%{__sed} -i -e 's/#define HAVE_WIDECHAR 1//' config.h
+
+%{__make} \
+%if %{with uClibc}
+       LDFLAGS="-Wl,-static"
+%endif
+%if %{with dietlibc}
+       CPPFLAGS="$CPPFLAGS -D_BSD_SOURCE" \
+       LDFLAGS="-lcompat"
+%endif
+
+%{__make} install \
+       DESTDIR=$(pwd)/initrd
+
+%{__make} clean
+%endif
+
+%configure \
+       --bindir=/bin \
+       --sbindir=/sbin \
+       %{!?with_fallocate:--disable-fallocate} \
+       --disable-silent-rules \
+       --disable-use-tty-group \
+       --disable-wall \
+       --enable-chfn-chsh \
        --enable-kill \
+       --enable-libblkid \
+       --enable-line \
+       --enable-login \
        --enable-login-chown-vcs \
-       --enable-login-utils \
+       --enable-newgrp \
        --enable-partx \
-       %{!?with_uClibc:--enable-raw} \
-       --enable-rdev \
-       --enable-write
+       --enable-runuser%{!?with_su:=no} \
+       --enable-su%{!?with_su:=no} \
+       --enable-sulogin \
+       --enable-tunelp \
+       --enable-utmpdump \
+       --enable-vipw \
+       --enable-write \
+       --with-python=3 \
+       --with-audit \
+       --with-bashcompletiondir=/usr/share/bash-completion/completions \
+       --with-selinux%{!?with_selinux:=no} \
+       --with-smack \
+       --with-readline
 
 %{__make}
 
-%ifarch ppc
-%{__cc} %{rpmcflags} %{rpmldflags} clock-ppc.c -o clock-ppc
-%endif
-
-cd sys-utils
-makeinfo ipc.texi
+%{__cc} %{rpmcflags} nologin.c -o nologin
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,sysconfig,security} \
-       $RPM_BUILD_ROOT/var/lock
+       $RPM_BUILD_ROOT{/%{_lib},/var/{lock,lib/libuuid}} \
+       $RPM_BUILD_ROOT{/lib/systemd/pld-helpers.d,%{systemdunitdir}}
+%{?with_dietlibc:install -d $RPM_BUILD_ROOT%{dietlibdir}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install misc-utils/scriptreplay.1 $RPM_BUILD_ROOT%{_mandir}/man1/
-
-sed -i -e 's,/usr/spool/mail,/var/mail,g' $RPM_BUILD_ROOT%{_mandir}/man1/login.1
-
-mv $RPM_BUILD_ROOT%{_sbindir}/{addpart,delpart,partx} $RPM_BUILD_ROOT/sbin
-mv $RPM_BUILD_ROOT%{_bindir}/raw $RPM_BUILD_ROOT/sbin
-
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/login
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/rawdevices
-install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rawdevices
-install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/blockdev
-install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/blockdev
+%{__mv} $RPM_BUILD_ROOT%{_sbindir}/{addpart,delpart,partx} $RPM_BUILD_ROOT/sbin
+%{__mv} $RPM_BUILD_ROOT/sbin/raw $RPM_BUILD_ROOT%{_bindir}
+
+install -p nologin $RPM_BUILD_ROOT/sbin
+cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man8
+
+cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/login
+install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/blockdev
+cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/blockdev
+cp -p %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/blockdev.service
+cp -p %{SOURCE13} $RPM_BUILD_ROOT/lib/systemd/pld-helpers.d/blockdev.sh
+%if %{with su}
+ln -s ../sbin/runuser $RPM_BUILD_ROOT/bin/runuser
+cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/su
+cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/su-l
+cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/runuser
+cp -p %{SOURCE9} $RPM_BUILD_ROOT/etc/pam.d/runuser-l
+%endif
 
 :> $RPM_BUILD_ROOT/etc/security/blacklist.login
 :> $RPM_BUILD_ROOT/var/lock/wtmpxlock
+:> $RPM_BUILD_ROOT%{_sysconfdir}/blkid.tab
 
-%ifarch ppc
-mv -f $RPM_BUILD_ROOT/sbin/hwclock $RPM_BUILD_ROOT/sbin/hwclock.rtc
-install clock-ppc $RPM_BUILD_ROOT/sbin/hwclock.adb
-#yneed fix:
-# hwclock.adb is for PowerMac (default)
-# hwclock.rtc is for RS/6000 (PreP,CHRP)
-ln -sf hwclock.adb $RPM_BUILD_ROOT/sbin/hwclock
-%endif
+for lib in blkid fdisk mount smartcols uuid; do
+       mv $RPM_BUILD_ROOT%{_libdir}/lib${lib}.so.* $RPM_BUILD_ROOT/%{_lib}
+       ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/lib${lib}.so.*.*.*) \
+                $RPM_BUILD_ROOT%{_libdir}/lib${lib}.so
+done
 
-ln -sf hwclock $RPM_BUILD_ROOT/sbin/clock
-echo '.so hwclock.8' > $RPM_BUILD_ROOT%{_mandir}/man8/clock.8
+# python module
+%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/libmount/pylibmount.la
+# obsoleted by pkg-config (libuuid.la temporarily kept because of packages built with it)
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{blkid,fdisk,mount,smartcols}.la
+
+ln -s hwclock $RPM_BUILD_ROOT/sbin/clock
+echo '.so man8/hwclock.8' > $RPM_BUILD_ROOT%{_mandir}/man8/clock.8
+
+ln -s utmpdump $RPM_BUILD_ROOT%{_bindir}/utmpx-dump
+ln -s mkswap $RPM_BUILD_ROOT/sbin/mkfs.swap
 
 for d in cs de es fi fr hu id it ja ko nl pl ; do
        for m in man1 man5 man8 ; do
                if [ -d man/$d/$m ]; then
                        install -d $RPM_BUILD_ROOT%{_mandir}/$d/$m
-                       install man/$d/$m/* $RPM_BUILD_ROOT%{_mandir}/$d/$m
+                       cp -p man/$d/$m/* $RPM_BUILD_ROOT%{_mandir}/$d/$m
                fi
        done
 done
+# it's been moved from man1 to man8
+for d in es ja ko ; do
+       mv -f $RPM_BUILD_ROOT%{_mandir}/$d/man1/readprofile.1 \
+               $RPM_BUILD_ROOT%{_mandir}/$d/man8/readprofile.8
+       %{__sed} -i -e 's/READPROFILE 1/READPROFILE 8/' $RPM_BUILD_ROOT%{_mandir}/$d/man8/readprofile.8
+done
+# fix inconsistent man links
+echo '.so man8/hwclock.8' > $RPM_BUILD_ROOT%{_mandir}/es/man8/clock.8
+echo '.so man8/hwclock.8' > $RPM_BUILD_ROOT%{_mandir}/ja/man8/clock.8
+echo '.so man8/swapon.8' > $RPM_BUILD_ROOT%{_mandir}/es/man8/swapoff.8
+echo '.so man8/swapon.8' > $RPM_BUILD_ROOT%{_mandir}/it/man8/swapoff.8
+echo '.so man8/swapon.8' > $RPM_BUILD_ROOT%{_mandir}/ja/man8/swapoff.8
+echo '.so man8/swapon.8' > $RPM_BUILD_ROOT%{_mandir}/ko/man8/swapoff.8
+echo '.so man8/swapon.8' > $RPM_BUILD_ROOT%{_mandir}/pl/man8/swapoff.8
 
 # cleanup, remove files not included in package
-rm $RPM_BUILD_ROOT%{_bindir}/{chfn,chsh,newgrp} \
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/{chfn,chsh,newgrp} \
        $RPM_BUILD_ROOT%{_sbindir}/{vigr,vipw} \
        $RPM_BUILD_ROOT%{_mandir}/man1/{chfn,chsh,newgrp}.1 \
        $RPM_BUILD_ROOT%{_mandir}/man8/{vigr,vipw}.8 \
-       $RPM_BUILD_ROOT%{_mandir}/*/man1/{arch,chfn,chsh,clear,last,mesg,newgrp,od,passwd,reset,sg,wall}.1 \
+       $RPM_BUILD_ROOT%{_mandir}/*/man1/{arch,chkdupexe,ddate,reset}.1 \
        $RPM_BUILD_ROOT%{_mandir}/*/man5/nfs.5 \
-       $RPM_BUILD_ROOT%{_mandir}/*/man8/{display-services,elvtune,fast*,halt,initctl,need,provide,reboot,setfdprm,shutdown,simpleinit,sln,vigr,vipw}.8
+       $RPM_BUILD_ROOT%{_mandir}/*/man8/{cytune,elvtune,setfdprm,sln,ramsize,raw,rdev,rootflags,vidmode}.8
 
-%ifnarch %{ix86}
-rm -f $RPM_BUILD_ROOT%{_mandir}/*/man8/{ramsize,rdev,rootflags,vidmode}.8
+%ifarch sparc sparcv9 sparc64
+# programs not built on sparc
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man8/{cfdisk,sfdisk}.8
+%endif
+
+# examples
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/getopt/getopt-parse.*sh
+
+%if %{with initrd}
+install -d $RPM_BUILD_ROOT%{_libdir}/initrd
+install -p initrd/bin/* $RPM_BUILD_ROOT%{_libdir}/initrd
+install -p initrd/sbin/* $RPM_BUILD_ROOT%{_libdir}/initrd
+ln -s fsck $RPM_BUILD_ROOT%{_libdir}/initrd/e2fsck
+
+# We don't need those
+%{__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,tailf,tunelp,wdctl,whereis}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{blkid,mount}.la
+
+%if %{with dietlibc}
+cp -a initrd/%{_lib}/lib*.a $RPM_BUILD_ROOT%{dietlibdir}
 %endif
-%ifarch sparc sparc64
-rm -f $RPM_BUILD_ROOT%{_mandir}/*/man8/{cfdisk,sfdisk}.8
 %endif
 
-%{!?with_uClibc:%find_lang %{name}}
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-
 %post -n blockdev
 /sbin/chkconfig --add blockdev
 %service blockdev restart
+%systemd_post blockdev.service
 
 %preun -n blockdev
 if [ "$1" = "0" ]; then
        %service blockdev stop
        /sbin/chkconfig --del blockdev
 fi
+%systemd_preun blockdev.service
+
+%postun -n blockdev
+%systemd_reload
+
+%triggerpostun -n blockdev -- blockdev < 2.24-4
+%systemd_trigger blockdev.service
 
-%post -n rawdevices
-/sbin/chkconfig --add rawdevices
-%service rawdevices restart
+%post  -n libblkid -p /sbin/ldconfig
+%postun -n libblkid -p /sbin/ldconfig
 
-%preun -n rawdevices
+%post   -n libuuid -p /sbin/ldconfig
+%postun -n libuuid -p /sbin/ldconfig
+
+%pre    -n uuidd
+if [ "$(getgid libuuid 2>/dev/null)" = "222" ]; then
+       /usr/sbin/groupmod -n uuidd libuuid
+fi
+%groupadd -g 222 uuidd
+if [ "$(id -u libuuid 2>/dev/null)" = "222" ]; then
+       /usr/sbin/usermod -l uuidd libuuid
+fi
+%useradd -u 222 -r -d /var/lib/libuuid -s /bin/false -c "UUID generator helper daemon" -g uuidd uuidd
+
+%postun -n uuidd
 if [ "$1" = "0" ]; then
-       %service rawdevices stop
-       /sbin/chkconfig --del rawdevices
+       %userremove uuidd
+       %groupremove uuidd
 fi
 
-%files %{!?with_uClibc:-f %{name}.lang}
+%post  -n libfdisk -p /sbin/ldconfig
+%postun -n libfdisk -p /sbin/ldconfig
+
+%post  -n libmount -p /sbin/ldconfig
+%postun -n libmount -p /sbin/ldconfig
+
+%post  -n libsmartcols -p /sbin/ldconfig
+%postun -n libsmartcols -p /sbin/ldconfig
+
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc */README.* text-utils/LICENSE.pg NEWS
+%doc AUTHORS ChangeLog NEWS README README.licensing Documentation misc-utils/getopt-parse.{bash,tcsh}
 
 %attr(755,root,root) /sbin/clock
-%ifarch ppc
-%attr(755,root,root) %config(noreplace) %verify(not link) /sbin/hwclock
-%attr(755,root,root) /sbin/hwclock.adb
-%attr(755,root,root) /sbin/hwclock.rtc
-%else
 %attr(755,root,root) /sbin/hwclock*
-%endif
-
+%attr(755,root,root) /sbin/nologin
 %{_mandir}/man8/clock.8*
 %{_mandir}/man8/hwclock.8*
+%{_mandir}/man8/nologin.8*
 %lang(es) %{_mandir}/es/man8/clock.8*
 %lang(es) %{_mandir}/es/man8/hwclock.8*
 %lang(ja) %{_mandir}/ja/man8/clock.8*
 %lang(ja) %{_mandir}/ja/man8/hwclock.8*
 
+%ghost %{_sysconfdir}/blkid.tab
+%attr(755,root,root) /sbin/blkid
+%attr(755,root,root) /sbin/findfs
+%{_mandir}/man8/blkid.8*
+%{_mandir}/man8/findfs.8*
+
+%attr(755,root,root) %{_bindir}/linux*
+%attr(755,root,root) %{_bindir}/setarch
+%{_mandir}/man8/linux*
+%{_mandir}/man8/setarch.8*
+%ifarch s390 s390x
+%attr(755,root,root) %{_bindir}/s390*
+%{_mandir}/man8/s390*
+%endif
+%ifarch %{ix86} %{x8664} x32
+%attr(755,root,root) %{_bindir}/i386
+%{_mandir}/man8/i386*
+%ifarch %{x8664} x32
+%attr(755,root,root) %{_bindir}/x86_64
+%{_mandir}/man8/x86_64*
+%endif
+%endif
+%ifarch ppc ppc64
+%attr(755,root,root) %{_bindir}/ppc*
+%{_mandir}/man8/ppc*
+%endif
+%ifarch sparc sparc64
+%attr(755,root,root) %{_bindir}/sparc*
+%{_mandir}/man8/sparc*
+%endif
+%ifarch ia64
+%attr(755,root,root) %{_bindir}/i386
+%attr(755,root,root) %{_bindir}/ia64
+%{_mandir}/man8/i386*
+%{_mandir}/man8/ia64*
+%endif
+
 %attr(755,root,root) /bin/dmesg
 %attr(755,root,root) /bin/kill
-%{!?with_uClibc:%attr(755,root,root) /bin/more}
-%attr(755,root,root) /sbin/mkfs
-%attr(755,root,root) /sbin/mkswap
+%attr(755,root,root) /bin/more
+
+%attr(755,root,root) /bin/wdctl
+
+%attr(755,root,root) /sbin/chcpu
 %attr(755,root,root) /sbin/ctrlaltdel
 %attr(755,root,root) /sbin/addpart
+%attr(755,root,root) /sbin/blkdiscard
 %attr(755,root,root) /sbin/delpart
 %attr(755,root,root) /sbin/partx
+%attr(755,root,root) /bin/lsblk
+%attr(755,root,root) /sbin/fsfreeze
+%attr(755,root,root) /sbin/fstrim
+%attr(755,root,root) /sbin/mkfs
+%attr(755,root,root) /sbin/mkfs.swap
+%attr(755,root,root) /sbin/mkswap
+%attr(755,root,root) /sbin/sulogin
+%attr(755,root,root) /sbin/swaplabel
+%if "%{pld_release}" != "ac"
+%attr(755,root,root) /sbin/switch_root
+%endif
+%attr(755,root,root) /sbin/wipefs
+%attr(755,root,root) /sbin/zramctl
 %attr(755,root,root) %{_bindir}/cal
 %attr(755,root,root) %{_bindir}/chrt
 %attr(755,root,root) %{_bindir}/col
 %attr(755,root,root) %{_bindir}/colcrt
 %attr(755,root,root) %{_bindir}/colrm
 %attr(755,root,root) %{_bindir}/column
-%attr(755,root,root) %{_bindir}/ddate
-%attr(755,root,root) %{_bindir}/fdformat
+%attr(755,root,root) %{_bindir}/eject
 %attr(755,root,root) %{_bindir}/flock
+%{?with_fallocate:%attr(755,root,root) %{_bindir}/fallocate}
 %attr(755,root,root) %{_bindir}/getopt
 %attr(755,root,root) %{_bindir}/hexdump
 %attr(755,root,root) %{_bindir}/ionice
+%attr(755,root,root) %{_bindir}/ipcmk
 %attr(755,root,root) %{_bindir}/ipcrm
 %attr(755,root,root) %{_bindir}/ipcs
 %attr(755,root,root) %{_bindir}/isosize
 %attr(755,root,root) %{_bindir}/line
+%attr(755,root,root) %{_bindir}/last
+%attr(755,root,root) %{_bindir}/lastb
 %attr(755,root,root) %{_bindir}/logger
 %attr(755,root,root) %{_bindir}/look
+%attr(755,root,root) %{_bindir}/lscpu
+%attr(755,root,root) %{_bindir}/lsipc
+%attr(755,root,root) %{_bindir}/lslocks
+%attr(755,root,root) %{_bindir}/lslogins
+%attr(755,root,root) %{_bindir}/lsns
+%attr(755,root,root) %{_bindir}/mesg
 %attr(755,root,root) %{_bindir}/mcookie
 %attr(755,root,root) %{_bindir}/namei
-%{!?with_uClibc:%attr(755,root,root) %{_bindir}/pg}
+%attr(755,root,root) %{_bindir}/nsenter
+%attr(755,root,root) %{_bindir}/pg
+%attr(755,root,root) %{_bindir}/prlimit
+%attr(755,root,root) %{_bindir}/raw
 %attr(755,root,root) %{_bindir}/rename
 %attr(755,root,root) %{_bindir}/renice
 %attr(755,root,root) %{_bindir}/rev
 %attr(755,root,root) %{_bindir}/script
+%attr(755,root,root) %{_bindir}/scriptreplay
+%attr(755,root,root) %{_bindir}/setpriv
 %attr(755,root,root) %{_bindir}/setsid
-%{!?with_uClibc:%attr(755,root,root) %{_bindir}/setterm}
+%attr(755,root,root) %{_bindir}/setterm
 %attr(755,root,root) %{_bindir}/tailf
 %attr(755,root,root) %{_bindir}/taskset
-%{!?with_uClibc:%attr(755,root,root) %{_bindir}/ul}
+%attr(755,root,root) %{_bindir}/ul
+%attr(755,root,root) %{_bindir}/uname26
+%attr(755,root,root) %{_bindir}/unshare
+%attr(755,root,root) %{_bindir}/utmpdump
+%attr(755,root,root) %{_bindir}/utmpx-dump
 %attr(755,root,root) %{_bindir}/whereis
 %attr(2755,root,tty) %{_bindir}/write
+%attr(755,root,root) %{_sbindir}/fdformat
+%attr(755,root,root) %{_sbindir}/ldattach
 %attr(755,root,root) %{_sbindir}/readprofile
+%attr(755,root,root) %{_sbindir}/resizepart
+%attr(755,root,root) %{_sbindir}/rtcwake
+
+%{systemdunitdir}/fstrim.service
+%{systemdunitdir}/fstrim.timer
 
 %{_mandir}/man1/cal.1*
 %{_mandir}/man1/chrt.1*
@@ -703,72 +1148,98 @@ fi
 %{_mandir}/man1/colcrt.1*
 %{_mandir}/man1/colrm.1*
 %{_mandir}/man1/column.1*
-%{_mandir}/man1/ddate.1*
+%{_mandir}/man1/dmesg.1*
+%{_mandir}/man1/eject.1*
+%{?with_fallocate:%{_mandir}/man1/fallocate.1*}
 %{_mandir}/man1/flock.1*
 %{_mandir}/man1/getopt.1*
 %{_mandir}/man1/hexdump.1*
 %{_mandir}/man1/ionice.1*
+%{_mandir}/man1/ipcrm.1*
+%{_mandir}/man1/ipcmk.1*
+%{_mandir}/man1/ipcs.1*
 %{_mandir}/man1/kill.1*
+%{_mandir}/man1/last.1*
+%{_mandir}/man1/lastb.1*
 %{_mandir}/man1/line.1*
 %{_mandir}/man1/logger.1*
 %{_mandir}/man1/look.1*
+%{_mandir}/man1/lscpu.1*
+%{_mandir}/man1/lsipc.1*
+%{_mandir}/man1/lslogins.1*
 %{_mandir}/man1/mcookie.1*
-%{!?with_uClibc:%{_mandir}/man1/more.1*}
+%{_mandir}/man1/mesg.1*
+%{_mandir}/man1/more.1*
 %{_mandir}/man1/namei.1*
-%{!?with_uClibc:%{_mandir}/man1/pg.1*}
-%{_mandir}/man1/readprofile.1*
+%{_mandir}/man1/nsenter.1*
+%{_mandir}/man1/prlimit.1*
+%{_mandir}/man1/pg.1*
+%{_mandir}/man1/renice.1*
 %{_mandir}/man1/rev.1*
 %{_mandir}/man1/rename.1*
+%{_mandir}/man1/setpriv.1*
+%{_mandir}/man1/setsid.1*
 %{_mandir}/man1/script.1*
-%{!?with_uClibc:%{_mandir}/man1/setterm.1*}
+%{_mandir}/man1/scriptreplay.1*
+%{_mandir}/man1/setterm.1*
 %{_mandir}/man1/tailf.1*
 %{_mandir}/man1/taskset.1*
-%{!?with_uClibc:%{_mandir}/man1/ul.1*}
+%{_mandir}/man1/ul.1*
+%{_mandir}/man1/unshare.1*
+%{_mandir}/man1/utmpdump.1*
 %{_mandir}/man1/whereis.1*
 %{_mandir}/man1/write.1*
-
 %{_mandir}/man8/addpart.8*
-%{_mandir}/man8/ctrlaltdel.8*
-%{_mandir}/man8/cytune.8*
+%{_mandir}/man8/blkdiscard.8*
 %{_mandir}/man8/delpart.8*
-%{_mandir}/man8/dmesg.8*
+%{_mandir}/man8/partx.8*
+%{_mandir}/man8/lsblk.8*
+%{_mandir}/man8/lsns.8*
+%{_mandir}/man8/chcpu.8*
+%{_mandir}/man8/ctrlaltdel.8*
 %{_mandir}/man8/fdformat.8*
-%{_mandir}/man8/ipcrm.8*
-%{_mandir}/man8/ipcs.8*
+%{_mandir}/man8/fsfreeze.8*
+%{_mandir}/man8/fstrim.8*
 %{_mandir}/man8/isosize.8*
+%{_mandir}/man8/ldattach.8*
+%{_mandir}/man8/lslocks.8*
 %{_mandir}/man8/mkswap.8*
-%{_mandir}/man8/partx.8*
-%{_mandir}/man8/renice.8*
-%{_mandir}/man8/setsid.8*
-
-%lang(cs) %{_mandir}/cs/man1/write.1*
+%{_mandir}/man8/raw.8*
+%{_mandir}/man8/readprofile.8*
+%{_mandir}/man8/resizepart.8*
+%{_mandir}/man8/rtcwake.8*
+%{_mandir}/man8/swaplabel.8*
+%if "%{pld_release}" != "ac"
+%{_mandir}/man8/switch_root.8*
+%endif
+%{_mandir}/man8/sulogin.8*
+%{_mandir}/man8/uname26.8*
+%{_mandir}/man8/wdctl.8*
+%{_mandir}/man8/wipefs.8*
+%{_mandir}/man8/zramctl.8*
 
 %lang(de) %{_mandir}/de/man1/kill.1*
 %lang(de) %{_mandir}/de/man1/more.1*
 %lang(de) %{_mandir}/de/man1/write.1*
-
 %lang(de) %{_mandir}/de/man8/fdformat.8*
 
 %lang(es) %{_mandir}/es/man1/colrm.1*
 %lang(es) %{_mandir}/es/man1/column.1*
-%lang(es) %{_mandir}/es/man1/ddate.1*
 %lang(es) %{_mandir}/es/man1/getopt.1*
 %lang(es) %{_mandir}/es/man1/look.1*
 %lang(es) %{_mandir}/es/man1/more.1*
 %lang(es) %{_mandir}/es/man1/namei.1*
-%lang(es) %{_mandir}/es/man1/readprofile.1*
 %lang(es) %{_mandir}/es/man1/rev.1*
 %lang(es) %{_mandir}/es/man1/script.1*
 %lang(es) %{_mandir}/es/man1/setterm.1*
 %lang(es) %{_mandir}/es/man1/ul.1*
 %lang(es) %{_mandir}/es/man1/whereis.1*
 %lang(es) %{_mandir}/es/man1/write.1*
-
-%lang(es) %{_mandir}/es/man8/cytune.8*
 %lang(es) %{_mandir}/es/man8/ctrlaltdel.8*
 %lang(es) %{_mandir}/es/man8/ipcrm.8*
 %lang(es) %{_mandir}/es/man8/ipcs.8*
 %lang(es) %{_mandir}/es/man8/mkswap.8*
+%lang(es) %{_mandir}/es/man8/readprofile.8*
 %lang(es) %{_mandir}/es/man8/renice.8*
 %lang(es) %{_mandir}/es/man8/setsid.8*
 
@@ -783,10 +1254,8 @@ fi
 %lang(fr) %{_mandir}/fr/man1/col.1*
 %lang(fr) %{_mandir}/fr/man1/kill.1*
 %lang(fr) %{_mandir}/fr/man1/more.1*
-%lang(fr) %{_mandir}/fr/man1/rev.1*
 %lang(fr) %{_mandir}/fr/man1/whereis.1*
 %lang(fr) %{_mandir}/fr/man1/write.1*
-
 %lang(fr) %{_mandir}/fr/man8/ctrlaltdel.8*
 %lang(fr) %{_mandir}/fr/man8/dmesg.8*
 %lang(fr) %{_mandir}/fr/man8/fdformat.8*
@@ -803,7 +1272,6 @@ fi
 %lang(hu) %{_mandir}/hu/man1/setterm.1*
 %lang(hu) %{_mandir}/hu/man1/whereis.1*
 %lang(hu) %{_mandir}/hu/man1/write.1*
-
 %lang(hu) %{_mandir}/hu/man8/ctrlaltdel.8*
 %lang(hu) %{_mandir}/hu/man8/fdformat.8*
 %lang(hu) %{_mandir}/hu/man8/mkswap.8*
@@ -814,20 +1282,9 @@ fi
 %lang(id) %{_mandir}/id/man1/more.1*
 %lang(id) %{_mandir}/id/man1/script.1*
 %lang(id) %{_mandir}/id/man1/write.1*
-
 %lang(id) %{_mandir}/id/man8/fdformat.8*
 
-%lang(it) %{_mandir}/it/man1/cal.1*
 %lang(it) %{_mandir}/it/man1/kill.1*
-%lang(it) %{_mandir}/it/man1/rename.1*
-%lang(it) %{_mandir}/it/man1/rev.1*
-
-%lang(it) %{_mandir}/it/man8/ctrlaltdel.8*
-%lang(it) %{_mandir}/it/man8/dmesg.8*
-%lang(it) %{_mandir}/it/man8/fdformat.8*
-%lang(it) %{_mandir}/it/man8/ipcrm.8*
-%lang(it) %{_mandir}/it/man8/ipcs.8*
-%lang(it) %{_mandir}/it/man8/mkfs.8*
 %lang(it) %{_mandir}/it/man8/mkswap.8*
 %lang(it) %{_mandir}/it/man8/setsid.8*
 
@@ -836,7 +1293,6 @@ fi
 %lang(ja) %{_mandir}/ja/man1/colcrt.1*
 %lang(ja) %{_mandir}/ja/man1/colrm.1*
 %lang(ja) %{_mandir}/ja/man1/column.1*
-%lang(ja) %{_mandir}/ja/man1/ddate.1*
 %lang(ja) %{_mandir}/ja/man1/getopt.1*
 %lang(ja) %{_mandir}/ja/man1/hexdump.1*
 %lang(ja) %{_mandir}/ja/man1/kill.1*
@@ -846,24 +1302,21 @@ fi
 %lang(ja) %{_mandir}/ja/man1/mcookie.1*
 %lang(ja) %{_mandir}/ja/man1/more.1*
 %lang(ja) %{_mandir}/ja/man1/namei.1*
-%lang(ja) %{_mandir}/ja/man1/readprofile.1*
 %lang(ja) %{_mandir}/ja/man1/rename.1*
-%lang(ja) %{_mandir}/ja/man1/replay.1*
 %lang(ja) %{_mandir}/ja/man1/rev.1*
 %lang(ja) %{_mandir}/ja/man1/script.1*
 %lang(ja) %{_mandir}/ja/man1/setterm.1*
 %lang(ja) %{_mandir}/ja/man1/ul.1*
 %lang(ja) %{_mandir}/ja/man1/whereis.1*
 %lang(ja) %{_mandir}/ja/man1/write.1*
-
 %lang(ja) %{_mandir}/ja/man8/ctrlaltdel.8*
-%lang(ja) %{_mandir}/ja/man8/cytune.8*
 %lang(ja) %{_mandir}/ja/man8/dmesg.8*
 %lang(ja) %{_mandir}/ja/man8/fdformat.8*
 %lang(ja) %{_mandir}/ja/man8/ipcrm.8*
 %lang(ja) %{_mandir}/ja/man8/ipcs.8*
 %lang(ja) %{_mandir}/ja/man8/isosize.8*
 %lang(ja) %{_mandir}/ja/man8/mkswap.8*
+%lang(ja) %{_mandir}/ja/man8/readprofile.8*
 %lang(ja) %{_mandir}/ja/man8/renice.8*
 %lang(ja) %{_mandir}/ja/man8/setsid.8*
 
@@ -872,7 +1325,6 @@ fi
 %lang(ko) %{_mandir}/ko/man1/colcrt.1*
 %lang(ko) %{_mandir}/ko/man1/colrm.1*
 %lang(ko) %{_mandir}/ko/man1/column.1*
-%lang(ko) %{_mandir}/ko/man1/ddate.1*
 %lang(ko) %{_mandir}/ko/man1/getopt.1*
 %lang(ko) %{_mandir}/ko/man1/hexdump.1*
 %lang(ko) %{_mandir}/ko/man1/kill.1*
@@ -881,20 +1333,19 @@ fi
 %lang(ko) %{_mandir}/ko/man1/mcookie.1*
 %lang(ko) %{_mandir}/ko/man1/more.1*
 %lang(ko) %{_mandir}/ko/man1/namei.1*
-%lang(ko) %{_mandir}/ko/man1/readprofile.1*
 %lang(ko) %{_mandir}/ko/man1/rev.1*
 %lang(ko) %{_mandir}/ko/man1/script.1*
 %lang(ko) %{_mandir}/ko/man1/setterm.1*
 %lang(ko) %{_mandir}/ko/man1/ul.1*
 %lang(ko) %{_mandir}/ko/man1/whereis.1*
 %lang(ko) %{_mandir}/ko/man1/write.1*
-
 %lang(ko) %{_mandir}/ko/man8/ctrlaltdel.8*
 %lang(ko) %{_mandir}/ko/man8/dmesg.8*
 %lang(ko) %{_mandir}/ko/man8/fdformat.8*
 %lang(ko) %{_mandir}/ko/man8/ipcrm.8*
 %lang(ko) %{_mandir}/ko/man8/ipcs.8*
 %lang(ko) %{_mandir}/ko/man8/mkswap.8*
+%lang(ko) %{_mandir}/ko/man8/readprofile.8*
 %lang(ko) %{_mandir}/ko/man8/renice.8*
 %lang(ko) %{_mandir}/ko/man8/setsid.8*
 
@@ -916,7 +1367,6 @@ fi
 %lang(pl) %{_mandir}/pl/man1/ul.1*
 %lang(pl) %{_mandir}/pl/man1/whereis.1*
 %lang(pl) %{_mandir}/pl/man1/write.1*
-
 %lang(pl) %{_mandir}/pl/man8/ctrlaltdel.8*
 %lang(pl) %{_mandir}/pl/man8/dmesg.8*
 %lang(pl) %{_mandir}/pl/man8/fdformat.8*
@@ -925,20 +1375,17 @@ fi
 %lang(pl) %{_mandir}/pl/man8/mkswap.8*
 %lang(pl) %{_mandir}/pl/man8/renice.8*
 
-%dir %{_examplesdir}/getopt
-%attr(755,root,root) %{_examplesdir}/getopt/*
-
 %attr(755,root,root) /sbin/fdisk
 %attr(755,root,root) /sbin/fsck.minix
 %attr(755,root,root) /sbin/mkfs.minix
 %ifnarch sparc sparc64
-%{!?with_uClibc:%attr(755,root,root) /sbin/cfdisk}
+%attr(755,root,root) /sbin/cfdisk
 %attr(755,root,root) /sbin/sfdisk
 %endif
 
 %{_mandir}/man8/fdisk.8*
 %ifnarch sparc sparc64
-%{!?with_uClibc:%{_mandir}/man8/cfdisk.8*}
+%{_mandir}/man8/cfdisk.8*
 %{_mandir}/man8/sfdisk.8*
 %endif
 %{_mandir}/man8/fsck.minix.8*
@@ -953,7 +1400,7 @@ fi
 
 %lang(fr) %{_mandir}/fr/man8/fdisk.8*
 %ifnarch sparc sparc64
-%{!?with_uClibc:%lang(fr) %{_mandir}/fr/man8/cfdisk.8*}
+%lang(fr) %{_mandir}/fr/man8/cfdisk.8*
 %lang(fr) %{_mandir}/fr/man8/sfdisk.8*
 %endif
 %lang(fr) %{_mandir}/fr/man8/mkfs.minix.8*
@@ -963,12 +1410,12 @@ fi
 
 %lang(it) %{_mandir}/it/man8/fdisk.8*
 %ifnarch sparc sparc64
-%{!?with_uClibc:%lang(it) %{_mandir}/it/man8/cfdisk.8*}
+%lang(it) %{_mandir}/it/man8/cfdisk.8*
 %endif
 
 %lang(ja) %{_mandir}/ja/man8/fdisk.8*
 %ifnarch sparc sparc64
-%{!?with_uClibc:%lang(ja) %{_mandir}/ja/man8/cfdisk.8*}
+%lang(ja) %{_mandir}/ja/man8/cfdisk.8*
 %lang(ja) %{_mandir}/ja/man8/sfdisk.8*
 %endif
 %lang(ja) %{_mandir}/ja/man8/fsck.minix.8*
@@ -986,51 +1433,24 @@ fi
 %lang(pl) %{_mandir}/pl/man8/mkfs.minix.8*
 %lang(pl) %{_mandir}/pl/man8/mkfs.8*
 
-%{!?with_uClibc:%attr(755,root,root) /sbin/fsck.cramfs}
-%{!?with_uClibc:%attr(755,root,root) /sbin/mkfs.cramfs}
+%attr(755,root,root) /sbin/fsck.cramfs
+%attr(755,root,root) /sbin/mkfs.cramfs
 %attr(755,root,root) /sbin/mkfs.bfs
-
-%attr(755,root,root) %{_bindir}/cytune
-
-%ifarch %{ix86}
-%attr(755,root,root) %{_sbindir}/ramsize
-%attr(755,root,root) %{_sbindir}/rdev
-%attr(755,root,root) %{_sbindir}/rootflags
-%attr(755,root,root) %{_sbindir}/vidmode
-
-%{_mandir}/man8/ramsize.8*
-%{_mandir}/man8/rdev.8*
-%{_mandir}/man8/rootflags.8*
-%{_mandir}/man8/vidmode.8*
-
-%lang(de) %{_mandir}/de/man8/ramsize.8*
-%lang(de) %{_mandir}/de/man8/rdev.8*
-%lang(de) %{_mandir}/de/man8/rootflags.8*
-%lang(de) %{_mandir}/de/man8/vidmode.8*
-
-%lang(es) %{_mandir}/es/man8/ramsize.8*
-%lang(es) %{_mandir}/es/man8/rdev.8*
-%lang(es) %{_mandir}/es/man8/rootflags.8*
-%lang(es) %{_mandir}/es/man8/vidmode.8*
-
-%lang(ja) %{_mandir}/ja/man8/ramsize.8*
-%lang(ja) %{_mandir}/ja/man8/rdev.8*
-%lang(ja) %{_mandir}/ja/man8/rootflags.8*
-%lang(ja) %{_mandir}/ja/man8/vidmode.8*
-
-%lang(ko) %{_mandir}/ko/man8/ramsize.8*
-%lang(ko) %{_mandir}/ko/man8/rdev.8*
-%lang(ko) %{_mandir}/ko/man8/rootflags.8*
-%lang(ko) %{_mandir}/ko/man8/vidmode.8*
-
-%lang(pl) %{_mandir}/pl/man8/ramsize.8*
-%lang(pl) %{_mandir}/pl/man8/rdev.8*
-%lang(pl) %{_mandir}/pl/man8/rootflags.8*
-%lang(pl) %{_mandir}/pl/man8/vidmode.8*
+%{_mandir}/man8/fsck.cramfs.8*
+%{_mandir}/man8/mkfs.cramfs.8*
+
+%if %{with su}
+%attr(755,root,root) /bin/runuser
+%attr(755,root,root) /sbin/runuser
+%attr(4755,root,root) /bin/su
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/runuser
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/runuser-l
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/su
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/su-l
+%{_mandir}/man1/runuser.1*
+%{_mandir}/man1/su.1*
 %endif
 
-%{_infodir}/ipc*
-
 %ghost /var/lock/wtmpxlock
 
 %files -n blockdev
@@ -1040,18 +1460,22 @@ fi
 %attr(755,root,root) /sbin/blockdev
 %{_mandir}/man8/blockdev.8*
 %lang(ja) %{_mandir}/ja/man8/blockdev.8*
+%{systemdunitdir}/blockdev.service
+%attr(755,root,root) /lib/systemd/pld-helpers.d/blockdev.sh
 
 %files -n mount
 %defattr(644,root,root,755)
-
+%attr(755,root,root) /bin/findmnt
+%attr(755,root,root) /bin/mountpoint
 %attr(4755,root,root) /bin/mount
 %attr(4755,root,root) /bin/umount
 %attr(755,root,root) /sbin/pivot_root
 %attr(755,root,root) /sbin/swapon
 %attr(755,root,root) /sbin/swapoff
 
+%{_mandir}/man1/mountpoint.1*
 %{_mandir}/man5/fstab.5*
-
+%{_mandir}/man8/findmnt.8*
 %{_mandir}/man8/mount.8*
 %{_mandir}/man8/umount.8*
 %{_mandir}/man8/pivot_root.8*
@@ -1063,31 +1487,26 @@ fi
 %lang(de) %{_mandir}/de/man5/fstab.5*
 
 %lang(es) %{_mandir}/es/man5/fstab.5*
-
 %lang(es) %{_mandir}/es/man8/mount.8*
 %lang(es) %{_mandir}/es/man8/umount.8*
 %lang(es) %{_mandir}/es/man8/swapon.8*
 %lang(es) %{_mandir}/es/man8/swapoff.8*
 
 %lang(fr) %{_mandir}/fr/man5/fstab.5*
-
 %lang(fr) %{_mandir}/fr/man8/mount.8*
 %lang(fr) %{_mandir}/fr/man8/umount.8*
 
 %lang(hu) %{_mandir}/hu/man5/fstab.5*
-
 %lang(hu) %{_mandir}/hu/man8/mount.8*
 %lang(hu) %{_mandir}/hu/man8/umount.8*
 
 %lang(it) %{_mandir}/it/man5/fstab.5*
-
 %lang(it) %{_mandir}/it/man8/mount.8*
 %lang(it) %{_mandir}/it/man8/umount.8*
 %lang(it) %{_mandir}/it/man8/swapon.8*
 %lang(it) %{_mandir}/it/man8/swapoff.8*
 
 %lang(ja) %{_mandir}/ja/man5/fstab.5*
-
 %lang(ja) %{_mandir}/ja/man8/mount.8*
 %lang(ja) %{_mandir}/ja/man8/umount.8*
 %lang(ja) %{_mandir}/ja/man8/pivot_root.8*
@@ -1095,14 +1514,12 @@ fi
 %lang(ja) %{_mandir}/ja/man8/swapoff.8*
 
 %lang(ko) %{_mandir}/ko/man5/fstab.5*
-
 %lang(ko) %{_mandir}/ko/man8/mount.8*
 %lang(ko) %{_mandir}/ko/man8/umount.8*
 %lang(ko) %{_mandir}/ko/man8/swapon.8*
 %lang(ko) %{_mandir}/ko/man8/swapoff.8*
 
 %lang(pl) %{_mandir}/pl/man5/fstab.5*
-
 %lang(pl) %{_mandir}/pl/man8/mount.8*
 %lang(pl) %{_mandir}/pl/man8/umount.8*
 %lang(pl) %{_mandir}/pl/man8/swapon.8*
@@ -1111,7 +1528,6 @@ fi
 %files -n losetup
 %defattr(644,root,root,755)
 %attr(755,root,root) /sbin/losetup
-
 %{_mandir}/man8/losetup.8*
 %lang(fr) %{_mandir}/fr/man8/losetup.8*
 %lang(it) %{_mandir}/it/man8/losetup.8*
 %lang(ko) %{_mandir}/ko/man8/losetup.8*
 %lang(pl) %{_mandir}/pl/man8/losetup.8*
 
-%files chkdupexe
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/chkdupexe
-
-%{_mandir}/man1/chkdupexe.1*
-%lang(ja) %{_mandir}/ja/man1/chkdupexe.1*
-%lang(ko) %{_mandir}/ko/man1/chkdupexe.1*
-%lang(pl) %{_mandir}/pl/man1/chkdupexe.1*
-
 %files -n tunelp
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_sbindir}/tunelp
-
 %{_mandir}/man8/tunelp.8*
 %lang(es) %{_mandir}/es/man8/tunelp.8*
 %lang(ja) %{_mandir}/ja/man8/tunelp.8*
 %lang(pl) %{_mandir}/pl/man8/tunelp.8*
 
-%if !%{with uClibc}
 %files -n login
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/login
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.login
 %attr(755,root,root) /bin/login
-
 %{_mandir}/man1/login.1*
 %lang(de) %{_mandir}/de/man1/login.1*
 %lang(es) %{_mandir}/es/man1/login.1*
 %lang(hu) %{_mandir}/hu/man1/login.1*
 %lang(id) %{_mandir}/id/man1/login.1*
-%lang(it) %{_mandir}/it/man1/login.1*
 %lang(ja) %{_mandir}/ja/man1/login.1*
 %lang(ko) %{_mandir}/ko/man1/login.1*
 %lang(pl) %{_mandir}/pl/man1/login.1*
-%endif
 
 %files -n agetty
 %defattr(644,root,root,755)
 %attr(755,root,root) /sbin/agetty
-
 %{_mandir}/man8/agetty.8*
 %lang(es) %{_mandir}/es/man8/agetty.8*
 %lang(ja) %{_mandir}/ja/man8/agetty.8*
 
-%if !%{with uClibc}
-%files -n rawdevices
+%files -n libblkid
 %defattr(644,root,root,755)
-%attr(755,root,root) /sbin/raw
-%attr(754,root,root) /etc/rc.d/init.d/rawdevices
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rawdevices
+%attr(755,root,root) /%{_lib}/libblkid.so.*.*
+%attr(755,root,root) %ghost /%{_lib}/libblkid.so.1
 
-%{_mandir}/man8/raw.8*
-%lang(ja) %{_mandir}/ja/man8/raw.8*
+%files -n libblkid-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libblkid.so
+%{_includedir}/blkid
+%{_pkgconfigdir}/blkid.pc
+%{_mandir}/man3/libblkid.3*
+
+%files -n libblkid-static
+%defattr(644,root,root,755)
+%{_libdir}/libblkid.a
+
+%if %{with initrd} && %{with dietlibc}
+%files -n libblkid-dietlibc
+%defattr(644,root,root,755)
+%{dietlibdir}/libblkid.a
+%endif
+
+%files -n libuuid
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/uuidgen
+%attr(755,root,root) /%{_lib}/libuuid.so.*.*
+%attr(755,root,root) %ghost /%{_lib}/libuuid.so.1
+%{_mandir}/man1/uuidgen.1*
+
+%files -n libuuid-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libuuid.so
+%{_libdir}/libuuid.la
+%{_includedir}/uuid
+%{_pkgconfigdir}/uuid.pc
+%{_mandir}/man3/uuid*.3*
+
+%files -n libuuid-static
+%defattr(644,root,root,755)
+%{_libdir}/libuuid.a
+
+%if %{with initrd} && %{with dietlibc}
+%files -n libuuid-dietlibc
+%defattr(644,root,root,755)
+%{dietlibdir}/libuuid.a
 %endif
+
+%files -n uuidd
+%defattr(644,root,root,755)
+%attr(6755,uuidd,uuidd) %{_sbindir}/uuidd
+%attr(2775,uuidd,uuidd) /var/lib/libuuid
+%{_mandir}/man8/uuidd.8*
+%{systemdunitdir}/uuidd.service
+%{systemdunitdir}/uuidd.socket
+
+%files -n libfdisk
+%defattr(644,root,root,755)
+%doc libfdisk/COPYING
+%attr(755,root,root) /%{_lib}/libfdisk.so.*.*
+%attr(755,root,root) %ghost /%{_lib}/libfdisk.so.1
+
+%files -n libfdisk-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libfdisk.so
+%{_includedir}/libfdisk
+%{_pkgconfigdir}/fdisk.pc
+
+%files -n libfdisk-static
+%defattr(644,root,root,755)
+%{_libdir}/libfdisk.a
+
+%files -n libmount
+%defattr(644,root,root,755)
+%doc libmount/COPYING
+%attr(755,root,root) /%{_lib}/libmount.so.*.*
+%attr(755,root,root) %ghost /%{_lib}/libmount.so.1
+
+%files -n libmount-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libmount.so
+%{_includedir}/libmount
+%{_pkgconfigdir}/mount.pc
+
+%files -n libmount-static
+%defattr(644,root,root,755)
+%{_libdir}/libmount.a
+
+%files -n python3-libmount
+%defattr(644,root,root,755)
+%dir %{py3_sitedir}/libmount
+%attr(755,root,root) %{py3_sitedir}/libmount/pylibmount.so
+%{py3_sitedir}/libmount/__init__.py
+%{py3_sitedir}/libmount/__pycache__
+
+%files -n fsck
+%defattr(644,root,root,755)
+%attr(755,root,root) /sbin/fsck
+%{_mandir}/man8/fsck.8*
+
+%files -n libsmartcols
+%defattr(644,root,root,755)
+%attr(755,root,root) /%{_lib}/libsmartcols.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libsmartcols.so.1
+# common for many utilities (hexdump,cal,dmesg,fdisk,cfdisk; also libblkid,libmount?)
+%{_mandir}/man5/terminal-colors.d.5*
+
+%files -n libsmartcols-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libsmartcols.so
+%{_includedir}/libsmartcols
+%{_pkgconfigdir}/smartcols.pc
+
+%files -n libsmartcols-static
+%defattr(644,root,root,755)
+%{_libdir}/libsmartcols.a
+
+%if %{with initrd}
+%files initrd
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/initrd/blkid
+%attr(755,root,root) %{_libdir}/initrd/blockdev
+%attr(755,root,root) %{_libdir}/initrd/fdformat
+%attr(755,root,root) %{_libdir}/initrd/fdisk
+%attr(755,root,root) %{_libdir}/initrd/findfs
+%attr(755,root,root) %{_libdir}/initrd/hwclock
+%attr(755,root,root) %{_libdir}/initrd/look
+%attr(755,root,root) %{_libdir}/initrd/mkswap
+%attr(755,root,root) %{_libdir}/initrd/namei
+%attr(755,root,root) %{_libdir}/initrd/rename
+%ifnarch sparc sparcv9 sparc64
+%attr(755,root,root) %{_libdir}/initrd/sfdisk
+%endif
+%attr(755,root,root) %{_libdir}/initrd/swaplabel
+%attr(755,root,root) %{_libdir}/initrd/uuidgen
+%attr(755,root,root) %{_libdir}/initrd/wipefs
+# not needed?
+#%attr(755,root,root) %{_libdir}/initrd/chrt
+# not built because of disabled libmount
+#%attr(755,root,root) %{_libdir}/initrd/e2fsck
+#%attr(755,root,root) %{_libdir}/initrd/fsck
+%endif
+
+%files -n bash-completion-util-linux
+%defattr(644,root,root,755)
+/usr/share/bash-completion/completions/*
This page took 0.207356 seconds and 4 git commands to generate.