2006-12-19 00:18:10 +01:00
|
|
|
#
|
2011-01-18 11:38:37 +01:00
|
|
|
# spec file for package util-linux
|
2006-12-19 00:18:10 +01:00
|
|
|
#
|
2014-01-10 14:13:23 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:18:10 +01:00
|
|
|
#
|
2008-08-18 22:57:09 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:18:10 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-24 11:56:25 +01:00
|
|
|
|
2013-06-05 15:07:12 +02:00
|
|
|
%bcond_without sysvinit_tools
|
|
|
|
%bcond_without enable_su
|
|
|
|
%bcond_without enable_eject
|
2013-12-12 13:34:11 +01:00
|
|
|
%bcond_with enable_last
|
2013-06-05 15:07:12 +02:00
|
|
|
|
2006-12-19 00:18:10 +01:00
|
|
|
Name: util-linux
|
2010-07-30 12:35:45 +02:00
|
|
|
BuildRequires: audit-devel
|
2012-05-31 16:44:07 +02:00
|
|
|
BuildRequires: binutils-devel
|
2012-02-24 11:56:25 +01:00
|
|
|
BuildRequires: fdupes
|
2010-07-30 12:35:45 +02:00
|
|
|
BuildRequires: gettext-devel
|
2013-09-13 09:08:46 +02:00
|
|
|
# Use rpmbuild -D 'VERIFY_SIG 1' to verify signature during build or run
|
|
|
|
# one-shot check by
|
|
|
|
# xzcat util-linux-*.tar.xz | \
|
|
|
|
# sh -x gpg-offline --verify --package=util-linux *.tar.sign -
|
|
|
|
%if 0%{?VERIFY_SIG}
|
Accepting request 198586 from home:sbrabec:branches:Base:System
VERIFY_SIG is not set, as it is expected to cause build loops.
If you want to set it to 1, then it would depend on request 198583.
- Update to version 2.23.2:
nsenter(1):
* this NEW COMMAND provides command line interface to setns()
Linux syscall and allows to run program with namespaces of
other processes
unshare(1):
* supports new PID and USER namespaces
fdisk(8):
* provides experimental support for GUID Partition Table (GPT),
the implementation is still not complete and some (unimportant)
features are missing.
* ~50% of fdisk code has been refactored, this task is going to
be complete in the next release. The goal is to have libfdisk
shared between all fdisks.
partx(8):
* supports new "update" command (implemented by
BLKPG_RESIZE_PARTITION ioctl)
mount(8):
* supports new userspace mount option x-mount.mkdir[=<mode>] to
create mountpoints on demand
* the support for propagation flags has been improved, now the
flags could be specified in /etc/fstab and used together with
regular mount options. It's also possible to specify more
propagation flags together. This EXPERIMENTAL feature is
implemented by additional mount(2) syscalls, because Linux does
not allow to use propagation flags with another options or more
flags together.
umount(8):
* supports new command line option --recursive to recursively
unmount all sub-mounts for the specified mountpoint * supports
new command line option --all-targets to unmount all
mountpoints in the current namespace for the specified
filesystem * the options --recursive and --all-targets could be
used together
dmesg(1):
* supports new command line options --color, --human and
--nopager, the --human option enables relative times, colors and
pager support.
su(1):
* supports new command line options --group and --supp-group to
specify primary and supplementary groups
chfn(1) and chsh(1):
* the commands could be linked with libuser to support non-local
accounts modification (e.g. LDAP, etc).
kill(1):
* the command has been improved to be compatible with procps
version, the procps version is deprecated now, the util-linux
version is enabled by default.
blkdiscard(8):
* this NEW COMMAND discard sectors on a device (for example on
SSD disks)
sulogin(8):
* provides multi-console feature from SysVinit
findmnt(8):
* provides new columns FREQ, PASSNO, ID, OPT-FIELDS, PROPAGATION
lslocks(8):
* provides new column BLOCKER and detects blocked locks
lsblk(8):
* supports new command line option --scsi and new columns HCTL,
TRANsport VENDOR and REVision
swapon(8) and losetup(8):
* the commands prints basic overview by default if no option
specified
column(1):
* supports new command line option --output-separator to specify
table output delimiter
rename(1):
* supports new command line option --symlink to rename symlink
target
hwclock(8):
* supports new command line option --compare to periodically
compare the Hardware Clock to the System Time (based on
adjtimex -c)
ipcs(1):
* supports new command line options --bytes and --human
wipefs(1):
* supports new command line option --force to force erase on used
devices
OBS-URL: https://build.opensuse.org/request/show/198586
OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=178
2013-09-12 17:29:39 +02:00
|
|
|
BuildRequires: gpg-offline
|
2013-09-13 09:08:46 +02:00
|
|
|
%endif
|
2010-07-30 12:35:45 +02:00
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: libsepol-devel
|
2011-12-25 23:19:56 +01:00
|
|
|
BuildRequires: libtool
|
2010-07-30 12:35:45 +02:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: readline-devel
|
2013-12-12 13:34:11 +01:00
|
|
|
%if 0%{?suse_version} <= 1230
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
%else
|
2013-06-19 16:32:02 +02:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2013-12-12 13:34:11 +01:00
|
|
|
%endif
|
2013-06-05 15:07:12 +02:00
|
|
|
BuildRequires: utempter-devel
|
2010-07-30 12:35:45 +02:00
|
|
|
BuildRequires: zlib-devel
|
2013-12-12 13:34:11 +01:00
|
|
|
Version: 2.24
|
2011-12-25 23:19:56 +01:00
|
|
|
Release: 0
|
2011-08-26 09:32:58 +02:00
|
|
|
# util-linux is a base package and uuidd pre-requiring pwdutils pulls
|
|
|
|
# that into the core build cycle. pwdutils also pulls in the whole
|
|
|
|
# ldap stack into it. Avoid this whole mess which is done only to
|
|
|
|
# make the rpm install check of uuidd happy which has support to work without
|
|
|
|
# these tools as well
|
|
|
|
#!BuildIgnore: pwdutils
|
2013-06-05 15:07:12 +02:00
|
|
|
Url: https://www.kernel.org/pub/linux/utils/util-linux/
|
2007-04-04 20:44:32 +02:00
|
|
|
Supplements: filesystem(minix)
|
2010-11-26 19:15:49 +01:00
|
|
|
Provides: fsck-with-dev-lock = %{version}
|
2010-12-14 17:25:55 +01:00
|
|
|
# bnc#651598:
|
|
|
|
Provides: util-linux(fake+no-canonicalize)
|
2006-12-19 00:18:10 +01:00
|
|
|
PreReq: %install_info_prereq permissions
|
2011-01-11 16:19:40 +01:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2006-12-19 00:18:10 +01:00
|
|
|
Summary: A collection of basic system utilities
|
2011-12-25 23:19:56 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Base
|
2013-12-12 13:34:11 +01:00
|
|
|
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.24/%{name}-%{version}.tar.xz
|
2009-07-03 17:12:19 +02:00
|
|
|
Source1: util-linux-rpmlintrc
|
2012-03-14 15:25:45 +01:00
|
|
|
# XXX: make nologin part of util-linux upstream
|
2006-12-19 00:18:10 +01:00
|
|
|
Source2: nologin.c
|
|
|
|
Source3: nologin.8
|
|
|
|
Source4: raw.init
|
|
|
|
Source5: etc.raw
|
2007-04-12 18:31:42 +02:00
|
|
|
Source6: etc_filesystems
|
2009-12-16 08:59:34 +01:00
|
|
|
Source7: baselibs.conf
|
2012-03-14 15:25:45 +01:00
|
|
|
Source8: login.pamd
|
|
|
|
Source9: remote.pamd
|
2013-06-06 11:42:28 +02:00
|
|
|
Source10: su.pamd
|
|
|
|
Source11: su.default
|
2013-12-12 13:34:11 +01:00
|
|
|
Source12: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.24/%{name}-%{version}.tar.sign
|
Accepting request 198586 from home:sbrabec:branches:Base:System
VERIFY_SIG is not set, as it is expected to cause build loops.
If you want to set it to 1, then it would depend on request 198583.
- Update to version 2.23.2:
nsenter(1):
* this NEW COMMAND provides command line interface to setns()
Linux syscall and allows to run program with namespaces of
other processes
unshare(1):
* supports new PID and USER namespaces
fdisk(8):
* provides experimental support for GUID Partition Table (GPT),
the implementation is still not complete and some (unimportant)
features are missing.
* ~50% of fdisk code has been refactored, this task is going to
be complete in the next release. The goal is to have libfdisk
shared between all fdisks.
partx(8):
* supports new "update" command (implemented by
BLKPG_RESIZE_PARTITION ioctl)
mount(8):
* supports new userspace mount option x-mount.mkdir[=<mode>] to
create mountpoints on demand
* the support for propagation flags has been improved, now the
flags could be specified in /etc/fstab and used together with
regular mount options. It's also possible to specify more
propagation flags together. This EXPERIMENTAL feature is
implemented by additional mount(2) syscalls, because Linux does
not allow to use propagation flags with another options or more
flags together.
umount(8):
* supports new command line option --recursive to recursively
unmount all sub-mounts for the specified mountpoint * supports
new command line option --all-targets to unmount all
mountpoints in the current namespace for the specified
filesystem * the options --recursive and --all-targets could be
used together
dmesg(1):
* supports new command line options --color, --human and
--nopager, the --human option enables relative times, colors and
pager support.
su(1):
* supports new command line options --group and --supp-group to
specify primary and supplementary groups
chfn(1) and chsh(1):
* the commands could be linked with libuser to support non-local
accounts modification (e.g. LDAP, etc).
kill(1):
* the command has been improved to be compatible with procps
version, the procps version is deprecated now, the util-linux
version is enabled by default.
blkdiscard(8):
* this NEW COMMAND discard sectors on a device (for example on
SSD disks)
sulogin(8):
* provides multi-console feature from SysVinit
findmnt(8):
* provides new columns FREQ, PASSNO, ID, OPT-FIELDS, PROPAGATION
lslocks(8):
* provides new column BLOCKER and detects blocked locks
lsblk(8):
* supports new command line option --scsi and new columns HCTL,
TRANsport VENDOR and REVision
swapon(8) and losetup(8):
* the commands prints basic overview by default if no option
specified
column(1):
* supports new command line option --output-separator to specify
table output delimiter
rename(1):
* supports new command line option --symlink to rename symlink
target
hwclock(8):
* supports new command line option --compare to periodically
compare the Hardware Clock to the System Time (based on
adjtimex -c)
ipcs(1):
* supports new command line options --bytes and --human
wipefs(1):
* supports new command line option --force to force erase on used
devices
OBS-URL: https://build.opensuse.org/request/show/198586
OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=178
2013-09-12 17:29:39 +02:00
|
|
|
Source13: %{name}.keyring
|
2012-02-24 11:56:25 +01:00
|
|
|
# TODO: split to separate package
|
2013-06-06 11:42:28 +02:00
|
|
|
Source40: klogconsole.tar.bz2
|
2013-06-05 15:07:12 +02:00
|
|
|
# XXX: Run a program in a new session and with controlling tty
|
2006-12-19 00:18:10 +01:00
|
|
|
Source22: setctsid.c
|
|
|
|
Source23: setctsid.8
|
2010-02-25 11:23:43 +01:00
|
|
|
# XXX: ppc specific, still needed?
|
2006-12-19 00:18:10 +01:00
|
|
|
Source28: mkzimage_cmdline.8
|
|
|
|
Source29: mkzimage_cmdline.c
|
2010-02-25 11:23:42 +01:00
|
|
|
Source31: addnote.c
|
2010-02-25 11:23:43 +01:00
|
|
|
#
|
|
|
|
Source26: README.raw
|
|
|
|
Source30: README.largedisk
|
2009-07-03 17:12:19 +02:00
|
|
|
Source50: uuidd.rc
|
2009-07-17 15:52:45 +02:00
|
|
|
Source51: blkid.conf
|
2007-04-12 18:31:42 +02:00
|
|
|
##
|
2008-02-15 01:43:38 +01:00
|
|
|
## util-linux patches
|
2007-04-12 18:31:42 +02:00
|
|
|
##
|
|
|
|
# 241372 - remove legacy warnings from fdisk
|
2013-12-12 13:34:11 +01:00
|
|
|
Patch1: util-linux-2.24-fdisk_remove_bogus_warnings.patch
|
2013-06-05 15:07:12 +02:00
|
|
|
Patch2: util-linux-2.23.1-eject-fpie.patch
|
2013-06-06 11:42:28 +02:00
|
|
|
# PATCH-EXTEND-UPSTREAM: Let `su' handle /sbin and /usr/sbin in path
|
|
|
|
Patch4: make-sure-sbin-resp-usr-sbin-are-in-PATH.diff
|
2012-06-19 09:55:51 +02:00
|
|
|
# disable encryption
|
2013-06-05 15:07:12 +02:00
|
|
|
Patch12: util-linux-2.23.1-noenc-suse.diff
|
2013-11-05 12:09:54 +01:00
|
|
|
# PATCH-FIX-UPSTREAM blkdiscard-BLKSSZGET-fills-in-an-int.patch tytso@mit.edu
|
|
|
|
Patch13: blkdiscard-BLKSSZGET-fills-in-an-int.patch
|
2013-11-29 14:48:16 +01:00
|
|
|
# PATCH-FIX-SUSE -- better support of S390 in agetty
|
|
|
|
Patch14: tty3270-on-serial-line-of-s390.patch
|
2014-01-10 14:13:23 +01:00
|
|
|
# PATCH-FIX-SUSE -- Let agetty not be fooled by locked termios srtucture
|
2014-01-10 15:07:34 +01:00
|
|
|
Patch15: agetty-fooled-on-serial-line-due-plymouth.patch
|
2012-09-20 09:10:39 +02:00
|
|
|
|
2012-06-20 13:15:52 +02:00
|
|
|
# hack for boot.localfs
|
|
|
|
Patch20: util-linux-HACK-boot.localfs.diff
|
2013-01-07 14:47:48 +01:00
|
|
|
|
2007-08-28 19:22:43 +02:00
|
|
|
##
|
2007-04-12 18:31:42 +02:00
|
|
|
## klogconsole
|
|
|
|
##
|
|
|
|
Patch55: klogconsole-quiet.patch
|
|
|
|
Patch56: klogconsole.diff
|
2011-11-21 18:09:42 +01:00
|
|
|
|
2006-12-19 00:18:10 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
PreReq: %insserv_prereq %fillup_prereq /bin/sed
|
2010-02-25 11:23:43 +01:00
|
|
|
#
|
2013-06-29 12:05:39 +02:00
|
|
|
%if %{with enable_eject}
|
|
|
|
Provides: eject = 2.1.0-166.8
|
|
|
|
%endif
|
2012-03-16 10:57:54 +01:00
|
|
|
Provides: login = 4.0-33.7
|
2013-06-29 12:05:39 +02:00
|
|
|
%if %{with enable_eject}
|
|
|
|
# File conflict of eject (up to 12.3 and SLE11).
|
|
|
|
Obsoletes: eject < 2.1.0-166.8
|
|
|
|
%endif
|
|
|
|
# File conflict of login (up to 12.1 and SLE11).
|
2012-03-16 10:57:54 +01:00
|
|
|
Obsoletes: login < 4.0-33.7
|
2013-06-29 12:05:39 +02:00
|
|
|
%if %{with enable_su}
|
|
|
|
# File conflict of su and kill (up to 12.3 and SLE11).
|
|
|
|
# It should be coreutils < 8.21-4, but coreutils provide Release-less symbol.
|
|
|
|
Conflicts: coreutils < 8.21
|
|
|
|
%endif
|
2013-07-01 16:31:56 +02:00
|
|
|
%if %{with sysvinit_tools}
|
2013-06-29 12:05:39 +02:00
|
|
|
# File conflict of sulogin and utmpdump (up to 12.3 and SLE11).
|
|
|
|
Conflicts: sysvinit-tools < 2.88+-87
|
|
|
|
%endif
|
2013-03-26 15:44:19 +01:00
|
|
|
#
|
|
|
|
# Using "Requires" here would lend itself to help upgrading, but since
|
|
|
|
# util-linux is in the initial bootstrap, that is not a good thing to do:
|
|
|
|
#
|
|
|
|
Recommends: adjtimex
|
|
|
|
Recommends: time
|
|
|
|
Recommends: which
|
2006-12-19 00:18:10 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains a large variety of low-level system utilities
|
|
|
|
that are necessary for a Linux system to function. It contains the
|
|
|
|
mount program, the fdisk configuration tool, and more.
|
|
|
|
|
2009-07-03 17:12:19 +02:00
|
|
|
%package -n libblkid1
|
|
|
|
Summary: Filesystem detection library
|
|
|
|
Group: System/Filesystems
|
|
|
|
|
|
|
|
%description -n libblkid1
|
|
|
|
Library for filesystem detection.
|
|
|
|
|
|
|
|
%package -n libblkid-devel
|
|
|
|
Summary: Development files for the filesystem detection library
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-01-11 16:19:40 +01:00
|
|
|
Requires: libblkid1 = %{version}
|
2009-07-03 17:12:19 +02:00
|
|
|
|
|
|
|
%description -n libblkid-devel
|
|
|
|
Files needed to develop applications using the library for filesystem
|
|
|
|
detection.
|
|
|
|
|
|
|
|
%package -n uuidd
|
2011-01-11 16:19:40 +01:00
|
|
|
Summary: Helper daemon to guarantee uniqueness of time-based UUIDs
|
2009-07-03 17:12:19 +02:00
|
|
|
Group: System/Filesystems
|
2011-01-11 16:19:40 +01:00
|
|
|
PreReq: %fillup_prereq
|
|
|
|
PreReq: %insserv_prereq
|
|
|
|
PreReq: permissions
|
|
|
|
PreReq: pwdutils
|
2009-07-03 17:12:19 +02:00
|
|
|
|
|
|
|
%description -n uuidd
|
2011-01-11 16:19:40 +01:00
|
|
|
The uuidd package contains a userspace daemon (uuidd) which guarantees
|
|
|
|
uniqueness of time-based UUID generation even at very high rates on
|
|
|
|
SMP systems.
|
2006-12-19 00:18:10 +01:00
|
|
|
|
2009-07-03 17:12:19 +02:00
|
|
|
%package -n libuuid1
|
|
|
|
Summary: Library to generate UUIDs
|
|
|
|
Group: System/Filesystems
|
2006-12-19 00:18:10 +01:00
|
|
|
|
2009-07-03 17:12:19 +02:00
|
|
|
%description -n libuuid1
|
|
|
|
A library to generate universally unique IDs (UUIDs).
|
|
|
|
|
|
|
|
%package -n libuuid-devel
|
|
|
|
Summary: Development files for libuuid1
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-01-11 16:19:40 +01:00
|
|
|
Requires: libuuid1 = %{version}
|
2009-07-03 17:12:19 +02:00
|
|
|
|
|
|
|
%description -n libuuid-devel
|
|
|
|
Files to develop applications using the library to generate universally
|
|
|
|
unique IDs (UUIDs).
|
2006-12-19 00:18:10 +01:00
|
|
|
|
2010-07-30 12:35:45 +02:00
|
|
|
%package -n libmount1
|
2011-01-11 16:19:40 +01:00
|
|
|
Summary: Device mount library
|
2010-07-30 12:35:45 +02:00
|
|
|
Group: System/Filesystems
|
|
|
|
|
|
|
|
%description -n libmount1
|
|
|
|
Library designed to be used in low-level utils like
|
2012-03-13 13:38:21 +01:00
|
|
|
mount(8) and /usr/sbin/mount.<type> helpers.
|
2010-07-30 12:35:45 +02:00
|
|
|
|
|
|
|
%package -n libmount-devel
|
|
|
|
Summary: Development files for libmount1
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-01-11 16:19:40 +01:00
|
|
|
Requires: libmount1 = %{version}
|
2010-07-30 12:35:45 +02:00
|
|
|
|
|
|
|
%description -n libmount-devel
|
|
|
|
Files to develop applications using the libmount library.
|
|
|
|
|
2008-03-27 23:24:22 +01:00
|
|
|
%lang_package
|
2006-12-19 00:18:10 +01:00
|
|
|
%prep
|
Accepting request 198586 from home:sbrabec:branches:Base:System
VERIFY_SIG is not set, as it is expected to cause build loops.
If you want to set it to 1, then it would depend on request 198583.
- Update to version 2.23.2:
nsenter(1):
* this NEW COMMAND provides command line interface to setns()
Linux syscall and allows to run program with namespaces of
other processes
unshare(1):
* supports new PID and USER namespaces
fdisk(8):
* provides experimental support for GUID Partition Table (GPT),
the implementation is still not complete and some (unimportant)
features are missing.
* ~50% of fdisk code has been refactored, this task is going to
be complete in the next release. The goal is to have libfdisk
shared between all fdisks.
partx(8):
* supports new "update" command (implemented by
BLKPG_RESIZE_PARTITION ioctl)
mount(8):
* supports new userspace mount option x-mount.mkdir[=<mode>] to
create mountpoints on demand
* the support for propagation flags has been improved, now the
flags could be specified in /etc/fstab and used together with
regular mount options. It's also possible to specify more
propagation flags together. This EXPERIMENTAL feature is
implemented by additional mount(2) syscalls, because Linux does
not allow to use propagation flags with another options or more
flags together.
umount(8):
* supports new command line option --recursive to recursively
unmount all sub-mounts for the specified mountpoint * supports
new command line option --all-targets to unmount all
mountpoints in the current namespace for the specified
filesystem * the options --recursive and --all-targets could be
used together
dmesg(1):
* supports new command line options --color, --human and
--nopager, the --human option enables relative times, colors and
pager support.
su(1):
* supports new command line options --group and --supp-group to
specify primary and supplementary groups
chfn(1) and chsh(1):
* the commands could be linked with libuser to support non-local
accounts modification (e.g. LDAP, etc).
kill(1):
* the command has been improved to be compatible with procps
version, the procps version is deprecated now, the util-linux
version is enabled by default.
blkdiscard(8):
* this NEW COMMAND discard sectors on a device (for example on
SSD disks)
sulogin(8):
* provides multi-console feature from SysVinit
findmnt(8):
* provides new columns FREQ, PASSNO, ID, OPT-FIELDS, PROPAGATION
lslocks(8):
* provides new column BLOCKER and detects blocked locks
lsblk(8):
* supports new command line option --scsi and new columns HCTL,
TRANsport VENDOR and REVision
swapon(8) and losetup(8):
* the commands prints basic overview by default if no option
specified
column(1):
* supports new command line option --output-separator to specify
table output delimiter
rename(1):
* supports new command line option --symlink to rename symlink
target
hwclock(8):
* supports new command line option --compare to periodically
compare the Hardware Clock to the System Time (based on
adjtimex -c)
ipcs(1):
* supports new command line options --bytes and --human
wipefs(1):
* supports new command line option --force to force erase on used
devices
OBS-URL: https://build.opensuse.org/request/show/198586
OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=178
2013-09-12 17:29:39 +02:00
|
|
|
%if 0%{?VERIFY_SIG}
|
|
|
|
xzcat %{S:0} | %gpg_verify %{S:12} -
|
|
|
|
%endif
|
2013-06-06 11:42:28 +02:00
|
|
|
%setup -q -n %{name}-%{version} -b 40
|
2009-10-02 23:21:11 +02:00
|
|
|
%patch1 -p1
|
2011-08-02 16:03:08 +02:00
|
|
|
%patch2 -p1
|
2013-06-06 11:42:28 +02:00
|
|
|
%patch4 -p1
|
2012-06-19 09:55:51 +02:00
|
|
|
%patch12 -p1
|
2013-11-05 12:09:54 +01:00
|
|
|
%patch13 -p1
|
2013-11-29 14:48:16 +01:00
|
|
|
%patch14 -p0
|
2014-01-10 14:13:23 +01:00
|
|
|
%patch15 -p0
|
2012-06-20 13:15:52 +02:00
|
|
|
#
|
|
|
|
%patch20 -p1
|
2007-04-12 18:31:42 +02:00
|
|
|
#
|
2006-12-19 00:18:10 +01:00
|
|
|
# setctsid
|
2013-06-05 15:07:12 +02:00
|
|
|
cp -p %{S:22} %{S:23} .
|
2007-04-12 18:31:42 +02:00
|
|
|
# nologin
|
2013-06-05 15:07:12 +02:00
|
|
|
cp -p %{S:2} %{S:3} %{S:26} %{S:30} .
|
2013-06-05 14:07:19 +02:00
|
|
|
|
2013-06-05 15:07:12 +02:00
|
|
|
pushd ../klogconsole
|
2010-07-30 12:35:45 +02:00
|
|
|
%patch55 -p1
|
2011-01-11 16:19:40 +01:00
|
|
|
%patch56 -p1
|
2013-06-05 15:07:12 +02:00
|
|
|
popd
|
2006-12-19 00:18:10 +01:00
|
|
|
|
|
|
|
%build
|
2013-06-05 15:07:12 +02:00
|
|
|
pushd ../klogconsole
|
2006-12-19 00:18:10 +01:00
|
|
|
# klogconsole build
|
2011-10-05 17:26:36 +02:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" CC="%{__cc}"
|
2006-12-19 00:18:10 +01:00
|
|
|
popd
|
|
|
|
# setctsid build
|
|
|
|
rm -f setctsid
|
2011-10-05 17:26:36 +02:00
|
|
|
make %{?_smp_mflags} setctsid CFLAGS="%{optflags}" CC="%{__cc}"
|
2007-04-12 18:31:42 +02:00
|
|
|
#
|
2013-06-05 15:07:12 +02:00
|
|
|
# Version check for libutempter
|
|
|
|
#
|
2013-06-06 11:42:28 +02:00
|
|
|
uhead=$(find %_includedir -name utempter.h 2>/dev/null)
|
2013-06-05 15:07:12 +02:00
|
|
|
if test -n "$uhead" && grep -q utempter_add_record "$uhead"
|
|
|
|
then
|
|
|
|
uhead=--with-utempter
|
|
|
|
else
|
|
|
|
uhead=--without-utempter
|
|
|
|
fi
|
|
|
|
#
|
2006-12-19 00:18:10 +01:00
|
|
|
# util-linux itself
|
2007-04-12 18:31:42 +02:00
|
|
|
#
|
2008-06-26 00:34:31 +02:00
|
|
|
autoreconf -fi
|
2010-02-25 11:23:43 +01:00
|
|
|
export SUID_CFLAGS="-fpie"
|
|
|
|
export SUID_LDFLAGS="-pie"
|
2010-11-16 19:58:07 +01:00
|
|
|
%configure \
|
2013-12-12 13:34:11 +01:00
|
|
|
--docdir=%{_docdir}/%{name} \
|
2009-07-03 17:12:19 +02:00
|
|
|
--with-audit \
|
2013-06-05 15:07:12 +02:00
|
|
|
--with-gnu-ld \
|
|
|
|
--with-ncurses \
|
2009-07-03 17:12:19 +02:00
|
|
|
--with-selinux \
|
2013-06-05 15:07:12 +02:00
|
|
|
$uhead \
|
|
|
|
--with-systemdsystemunitdir=%_unitdir \
|
|
|
|
--with-bashcompletiondir=%{_datadir}/bash-completion \
|
2009-07-03 17:12:19 +02:00
|
|
|
--enable-mesg \
|
|
|
|
--enable-partx \
|
|
|
|
--enable-raw \
|
|
|
|
--enable-write \
|
2011-08-02 16:03:08 +02:00
|
|
|
--enable-line \
|
2012-05-29 11:39:29 +02:00
|
|
|
--enable-new-mount \
|
2012-03-14 15:25:45 +01:00
|
|
|
--enable-login-utils \
|
2013-06-05 15:07:12 +02:00
|
|
|
--enable-tunelp \
|
2013-12-12 13:34:11 +01:00
|
|
|
%if %{with enable_last}
|
|
|
|
--enable-last \
|
|
|
|
%else
|
|
|
|
--disable-last \
|
|
|
|
%endif
|
2013-06-05 15:07:12 +02:00
|
|
|
--enable-logger \
|
|
|
|
%if %{with enable_eject}
|
|
|
|
--enable-eject \
|
|
|
|
%else
|
|
|
|
--disable-eject \
|
|
|
|
%endif
|
|
|
|
%if %{with sysvinit_tools}
|
|
|
|
--enable-sulogin \
|
|
|
|
--enable-sulogin-emergency-mount \
|
|
|
|
--enable-mountpoint \
|
|
|
|
%else
|
|
|
|
--disable-sulogin \
|
2011-08-02 16:03:08 +02:00
|
|
|
--disable-mountpoint \
|
2013-06-05 15:07:12 +02:00
|
|
|
%endif
|
|
|
|
%if %{with enable_su}
|
|
|
|
--enable-kill \
|
|
|
|
--enable-su \
|
|
|
|
%else
|
|
|
|
--disable-su \
|
|
|
|
--disable-kill \
|
|
|
|
%endif
|
2009-07-03 17:12:19 +02:00
|
|
|
--disable-use-tty-group \
|
|
|
|
--disable-static \
|
2012-02-24 11:56:25 +01:00
|
|
|
--disable-silent-rules \
|
|
|
|
--disable-rpath
|
2010-02-25 11:23:43 +01:00
|
|
|
#
|
2010-07-30 12:35:45 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-02-25 11:23:43 +01:00
|
|
|
#
|
2012-02-24 11:56:25 +01:00
|
|
|
%{__cc} -fwhole-program %{optflags} -o nologin nologin.c
|
|
|
|
%{__cc} -fwhole-program %{optflags} -o mkzimage_cmdline %{S:29}
|
|
|
|
%{__cc} -fwhole-program %{optflags} -o chrp-addnote %{SOURCE31}
|
2008-02-10 18:13:34 +01:00
|
|
|
|
2013-12-12 13:34:11 +01:00
|
|
|
%check
|
|
|
|
if ! make check; then
|
|
|
|
echo "cat test diffs:"
|
|
|
|
find tests/diff -type f | xargs -r cat
|
|
|
|
#exit 1
|
|
|
|
fi
|
|
|
|
|
2006-12-19 00:18:10 +01:00
|
|
|
%install
|
2013-06-06 11:42:28 +02:00
|
|
|
mkdir -p %{buildroot}{%{_sysconfdir}/{init.d,pam.d,default},%{_mandir}/man{1,8},/bin,/sbin,%{_bindir},%{_sbindir},%{_infodir}}
|
2011-01-11 16:19:40 +01:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/libuuid/
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/run/uuidd/
|
|
|
|
install -m 744 %{SOURCE50} %{buildroot}%{_initddir}/uuidd
|
|
|
|
install -m 644 %{SOURCE51} %{buildroot}%{_sysconfdir}/blkid.conf
|
2013-06-06 11:42:28 +02:00
|
|
|
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/pam.d/login
|
|
|
|
install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/pam.d/remote
|
|
|
|
%if %{with enable_su}
|
|
|
|
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su
|
|
|
|
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su-l
|
|
|
|
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/default/su
|
|
|
|
%endif
|
2011-01-11 16:19:40 +01:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
|
2013-06-05 15:07:12 +02:00
|
|
|
pushd ../klogconsole
|
2006-12-19 00:18:10 +01:00
|
|
|
# klogconsole install
|
2011-01-11 16:19:40 +01:00
|
|
|
make install DEST=%{buildroot}
|
2006-12-19 00:18:10 +01:00
|
|
|
popd
|
2007-04-12 18:31:42 +02:00
|
|
|
#
|
2006-12-19 00:18:10 +01:00
|
|
|
# util-linux install
|
2007-04-12 18:31:42 +02:00
|
|
|
#
|
2011-01-11 16:19:40 +01:00
|
|
|
%make_install
|
2012-03-13 13:38:21 +01:00
|
|
|
#UsrMerge
|
2013-06-05 15:07:12 +02:00
|
|
|
%if %{with enable_su}
|
|
|
|
ln -s %{_bindir}/kill %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/su %{buildroot}/bin
|
|
|
|
%endif
|
2012-03-13 13:38:21 +01:00
|
|
|
ln -s %{_bindir}/logger %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/dmesg %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/more %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/mount %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/umount %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/findmnt %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/lsblk %{buildroot}/bin
|
|
|
|
ln -s %{_sbindir}/agetty %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/blockdev %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/cfdisk %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/ctrlaltdel %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/fdisk %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/fsck.minix %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/fsck.cramfs %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/hwclock %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/losetup %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/mkfs %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/mkfs.bfs %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/mkfs.minix %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/mkfs.cramfs %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/mkswap %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/pivot_root %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/raw %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/sfdisk %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/swapoff %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/swapon %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/blkid %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/findfs %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/fsck %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/switch_root %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/wipefs %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/fsfreeze %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/swaplabel %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/fstrim %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/chcpu %{buildroot}/sbin
|
|
|
|
#EndUsrMerge
|
2011-01-11 16:19:40 +01:00
|
|
|
install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/filesystems
|
2012-03-13 13:38:21 +01:00
|
|
|
install -m 755 nologin %{buildroot}/%{_sbindir}
|
|
|
|
#UsrMerge
|
|
|
|
ln -s %{_sbindir}/nologin %{buildroot}/sbin
|
|
|
|
#EndUsrMerge
|
2011-01-11 16:19:40 +01:00
|
|
|
rm -f %{buildroot}/%{_libdir}/libblkid.la
|
|
|
|
rm -f %{buildroot}/%{_libdir}/libuuid.la
|
|
|
|
rm -f %{buildroot}/%{_libdir}/libmount.la
|
2006-12-19 00:18:10 +01:00
|
|
|
%ifnarch ppc ppc64
|
2012-03-13 13:38:21 +01:00
|
|
|
install -m 755 mkzimage_cmdline %{buildroot}/%{_bindir}
|
2011-01-11 16:19:40 +01:00
|
|
|
install -m 644 %{S:28} %{buildroot}%{_mandir}/man8
|
2012-03-13 13:38:21 +01:00
|
|
|
install -m 755 chrp-addnote %{buildroot}/%{_bindir}
|
2006-12-19 00:18:10 +01:00
|
|
|
%endif
|
2011-01-11 16:19:40 +01:00
|
|
|
install -m 644 nologin.8 %{buildroot}%{_mandir}/man8
|
2006-12-19 00:18:10 +01:00
|
|
|
# setctsid install
|
2012-03-13 13:38:21 +01:00
|
|
|
install -m 755 setctsid %{buildroot}/%{_sbindir}
|
2011-01-11 16:19:40 +01:00
|
|
|
install -m 444 setctsid.8 %{buildroot}%{_mandir}/man8/
|
|
|
|
echo -e "#! /bin/bash\n/sbin/blockdev --flushbufs \$1" > %{buildroot}%{_sbindir}/flushb
|
|
|
|
chmod 755 %{buildroot}%{_sbindir}/flushb
|
2006-12-19 00:18:10 +01:00
|
|
|
# Install scripts to configure raw devices at boot time
|
2013-06-06 11:42:28 +02:00
|
|
|
install -m 644 $RPM_SOURCE_DIR%{_sysconfdir}.raw %{buildroot}%{_sysconfdir}/raw
|
2011-01-11 16:19:40 +01:00
|
|
|
install -m 755 $RPM_SOURCE_DIR/raw.init %{buildroot}%{_initddir}/raw
|
2013-06-06 11:42:28 +02:00
|
|
|
ln -sf ../..%{_sysconfdir}/init.d/raw %{buildroot}%{_sbindir}/rcraw
|
2013-12-12 13:34:11 +01:00
|
|
|
# upstream moved getopt examples from datadir to docdir but we keep
|
|
|
|
# the old location because we would need to fix the manpage first
|
|
|
|
mv %{buildroot}%{_docdir}/%{name}/getopt %{buildroot}%{_datadir}/
|
2006-12-19 00:18:10 +01:00
|
|
|
# Stupid hack so we don't have a tcsh dependency
|
2011-01-11 16:19:40 +01:00
|
|
|
chmod 644 %{buildroot}%{_datadir}/getopt/getopt*.tcsh
|
2006-12-19 00:18:10 +01:00
|
|
|
# Following files we don't want to package, so remove them
|
2011-01-11 16:19:40 +01:00
|
|
|
rm -f %{buildroot}%{_bindir}/pg
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/pg.1*
|
2007-06-07 13:16:42 +02:00
|
|
|
# Do not package these files to get rid of the perl dependency
|
2011-01-11 16:19:40 +01:00
|
|
|
rm -f %{buildroot}%{_bindir}/chkdupexe
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/chkdupexe.1
|
2012-03-14 15:25:45 +01:00
|
|
|
# we use this tools from pwdutils
|
|
|
|
rm -f %{buildroot}/%{_bindir}/{chfn,chsh,newgrp}
|
|
|
|
rm -f %{buildroot}/%{_sbindir}/{vigr,vipw}
|
|
|
|
rm -f %{buildroot}/%{_mandir}/man1/{chfn.1*,chsh.1*,newgrp.1*}
|
|
|
|
rm -f %{buildroot}/%{_mandir}/man8/{vigr.8*,vipw.8*}
|
|
|
|
# login is always and only in /bin
|
|
|
|
mv %{buildroot}/%{_bindir}/login %{buildroot}/bin/
|
2007-06-07 13:16:42 +02:00
|
|
|
# arch dependent
|
2006-12-19 00:18:10 +01:00
|
|
|
%ifarch s390 s390x
|
2011-01-11 16:19:40 +01:00
|
|
|
rm -f %{buildroot}%{_sysconfdir}/fdprm
|
|
|
|
rm -f %{buildroot}%{_bindir}/cytune
|
|
|
|
rm -f %{buildroot}%{_sbindir}/fdformat
|
2012-03-13 13:38:21 +01:00
|
|
|
rm -f %{buildroot}%{_sbindir}/hwclock
|
|
|
|
#UsrMerge
|
2011-01-11 16:19:40 +01:00
|
|
|
rm -f %{buildroot}/sbin/hwclock
|
2012-03-13 13:38:21 +01:00
|
|
|
#EndUsrMerge
|
2011-01-11 16:19:40 +01:00
|
|
|
rm -f %{buildroot}%{_sbindir}/klogconsole
|
|
|
|
rm -f %{buildroot}%{_bindir}/setterm
|
|
|
|
rm -f %{buildroot}%{_sbindir}/tunelp
|
|
|
|
rm -f %{buildroot}/%{_mandir}/man8/cytune.8*
|
|
|
|
rm -f %{buildroot}/%{_mandir}/man8/fdformat.8*
|
|
|
|
rm -f %{buildroot}/%{_mandir}/man8/hwclock.8*
|
|
|
|
rm -f %{buildroot}/%{_mandir}/man8/klogconsole.8*
|
|
|
|
rm -f %{buildroot}/%{_mandir}/man8/tunelp.8*
|
2006-12-19 00:18:10 +01:00
|
|
|
%endif
|
2013-10-09 17:02:58 +02:00
|
|
|
%ifarch ia64 %sparc m68k
|
2011-01-11 16:19:40 +01:00
|
|
|
rm -f %{buildroot}/%{_mandir}/man8/cfdisk.8*
|
|
|
|
rm -f %{buildroot}/%{_mandir}/man8/sfdisk.8*
|
2012-03-13 13:38:21 +01:00
|
|
|
rm -f %{buildroot}%{_sbindir}/cfdisk
|
|
|
|
#UsrMerge
|
2011-01-11 16:19:40 +01:00
|
|
|
rm -f %{buildroot}/sbin/cfdisk
|
2012-03-13 13:38:21 +01:00
|
|
|
#EndUsrMerge
|
|
|
|
rm -f %{buildroot}%{_sbindir}/sfdisk
|
|
|
|
#UsrMerge
|
2011-01-11 16:19:40 +01:00
|
|
|
rm -f %{buildroot}/sbin/sfdisk
|
2012-03-13 13:38:21 +01:00
|
|
|
#EndUsrMerge
|
2006-12-19 00:18:10 +01:00
|
|
|
%endif
|
2013-10-09 17:02:58 +02:00
|
|
|
%ifarch ia64 m68k
|
2012-03-13 13:38:21 +01:00
|
|
|
rm -f %{buildroot}%{_sbindir}/fdisk
|
|
|
|
#UsrMerge
|
2011-01-11 16:19:40 +01:00
|
|
|
rm -f %{buildroot}/sbin/fdisk
|
2012-03-13 13:38:21 +01:00
|
|
|
#EndUsrMerge
|
2011-01-11 16:19:40 +01:00
|
|
|
rm -f %{buildroot}%{_mandir}/man8/fdisk.8*
|
2006-12-19 00:18:10 +01:00
|
|
|
%endif
|
2011-01-11 16:19:40 +01:00
|
|
|
%find_lang %{name} %{name}.lang
|
2009-07-03 17:12:19 +02:00
|
|
|
# create list of setarch(8) symlinks
|
2011-01-11 16:19:40 +01:00
|
|
|
find %{buildroot}%{_bindir}/ -regextype posix-egrep -type l \
|
2010-06-25 20:44:47 +02:00
|
|
|
-regex ".*(linux32|linux64|s390|s390x|i386|ppc|ppc64|ppc32|sparc|sparc64|sparc32|sparc32bash|mips|mips64|mips32|ia64|x86_64|parisc|parisc32|parisc64)$" \
|
2009-07-03 17:12:19 +02:00
|
|
|
-printf "%{_bindir}/%f\n" >> %{name}.files
|
2011-01-11 16:19:40 +01:00
|
|
|
find %{buildroot}%{_mandir}/man8 -regextype posix-egrep \
|
2010-06-25 20:44:47 +02:00
|
|
|
-regex ".*(linux32|linux64|s390|s390x|i386|ppc|ppc64|ppc32|sparc|sparc64|sparc32|sparc32bash|mips|mips64|mips32|ia64|x86_64|parisc|parisc32|parisc64)\.8.*" \
|
2009-07-03 17:12:19 +02:00
|
|
|
-printf "%{_mandir}/man8/%f*\n" >> %{name}.files
|
2011-08-02 16:03:08 +02:00
|
|
|
# clock.txt from uuidd is a ghost file
|
|
|
|
touch %{buildroot}%{_localstatedir}/lib/libuuid/clock.txt
|
|
|
|
# rcuuidd helper
|
|
|
|
ln -sf ../..%{_sysconfdir}/init.d/uuidd %{buildroot}%{_sbindir}/rcuuidd
|
2012-02-24 11:56:25 +01:00
|
|
|
# remove duplicate manpages
|
|
|
|
%fdupes -s %{buildroot}/%{_mandir}
|
2006-12-19 00:18:10 +01:00
|
|
|
|
|
|
|
%post
|
2008-08-18 22:57:09 +02:00
|
|
|
%{fillup_and_insserv raw}
|
2013-06-06 11:42:28 +02:00
|
|
|
%set_permissions %{_bindir}/wall %{_bindir}/write %{_bindir}/mount %{_bindir}/umount
|
2013-06-07 06:34:16 +02:00
|
|
|
%if %{with enable_su}
|
2013-06-06 11:42:28 +02:00
|
|
|
%set_permissions %{_bindir}/su
|
2013-10-08 10:48:43 +02:00
|
|
|
# Safely migrate PAM files from coreutils to util-linux
|
|
|
|
# (openSUSE 12.3->13.1, SLE11->SLE12)
|
|
|
|
#
|
|
|
|
# coreutils with su were upgraded (and su removed) before util-linux
|
|
|
|
# with su was installed (see the Conflicts above). If the admin edited
|
|
|
|
# the PAM file, the seemingly no more used modified file was saved as
|
|
|
|
# .rpmsave and the new clean file was installed. As we want
|
|
|
|
# "noreplace" upgrade, and the contents of the clean file contents has
|
|
|
|
# no changes, we should restore admin modification, and rename the
|
|
|
|
# clean file to .rpmnew, as it would happen if the file was not moved
|
|
|
|
# from one package to another.
|
|
|
|
for PAM_FILE in default/su pam.d/su pam.d/su-l ; do
|
|
|
|
if test -f %{_sysconfdir}/$PAM_FILE.rpmsave ; then
|
|
|
|
mv %{_sysconfdir}/$PAM_FILE %{_sysconfdir}/$PAM_FILE.rpmnew
|
|
|
|
mv %{_sysconfdir}/$PAM_FILE.rpmsave %{_sysconfdir}/$PAM_FILE
|
|
|
|
fi
|
|
|
|
done
|
2013-06-05 15:07:12 +02:00
|
|
|
%endif
|
|
|
|
%if %{with enable_eject}
|
2013-06-06 11:42:28 +02:00
|
|
|
%set_permissions %{_bindir}/eject
|
2013-06-05 15:07:12 +02:00
|
|
|
%endif
|
2011-01-11 16:19:40 +01:00
|
|
|
|
2006-12-19 00:18:10 +01:00
|
|
|
# mount option 'code=' is now called 'codepage=' so change fstab
|
|
|
|
if [ -f etc/fstab ]; then
|
|
|
|
sed -i 's:code=:codepage=:' etc/fstab
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ipc.info.gz
|
|
|
|
%{insserv_cleanup}
|
2011-01-11 16:19:40 +01:00
|
|
|
|
2006-12-19 00:18:10 +01:00
|
|
|
%verifyscript
|
2013-06-06 11:42:28 +02:00
|
|
|
%verify_permissions -e %{_bindir}/wall -e %{_bindir}/write -e %{_bindir}/mount -e %{_bindir}/umount
|
2013-06-07 06:34:16 +02:00
|
|
|
%if %{with enable_su}
|
2013-06-06 11:42:28 +02:00
|
|
|
%verify_permissions -e %{_bindir}/su
|
2013-06-05 15:07:12 +02:00
|
|
|
%endif
|
|
|
|
%if %{with enable_eject}
|
2013-06-06 11:42:28 +02:00
|
|
|
%verify_permissions -e %{_bindir}/eject
|
2013-06-05 15:07:12 +02:00
|
|
|
%endif
|
2006-12-19 00:18:10 +01:00
|
|
|
|
2011-01-11 16:19:40 +01:00
|
|
|
%post -n libblkid1 -p /sbin/ldconfig
|
2009-07-03 17:12:19 +02:00
|
|
|
|
2011-01-11 16:19:40 +01:00
|
|
|
%postun -n libblkid1 -p /sbin/ldconfig
|
2009-07-03 17:12:19 +02:00
|
|
|
|
2011-01-11 16:19:40 +01:00
|
|
|
%post -n libmount1 -p /sbin/ldconfig
|
2010-07-30 12:35:45 +02:00
|
|
|
|
2011-01-11 16:19:40 +01:00
|
|
|
%postun -n libmount1 -p /sbin/ldconfig
|
2010-07-30 12:35:45 +02:00
|
|
|
|
2009-07-03 17:12:19 +02:00
|
|
|
%pre -n uuidd
|
2013-06-06 11:42:28 +02:00
|
|
|
%{_sbindir}/groupadd -r uuidd 2>/dev/null || :
|
|
|
|
%{_sbindir}/useradd -r -g uuidd -c "User for uuidd" \
|
2009-07-03 17:12:19 +02:00
|
|
|
-d /var/run/uuidd uuidd 2>/dev/null || :
|
|
|
|
|
|
|
|
%preun -n uuidd
|
|
|
|
%{stop_on_removal uuidd}
|
|
|
|
|
|
|
|
%post -n uuidd
|
|
|
|
%{fillup_and_insserv -n uuidd}
|
2013-06-06 11:42:28 +02:00
|
|
|
%set_permissions %{_sbindir}/uuidd
|
2009-07-03 17:12:19 +02:00
|
|
|
|
|
|
|
%postun -n uuidd
|
|
|
|
%{restart_on_update uuidd}
|
|
|
|
%{insserv_cleanup}
|
|
|
|
|
2011-01-11 16:19:40 +01:00
|
|
|
%post -n libuuid1 -p /sbin/ldconfig
|
2009-07-03 17:12:19 +02:00
|
|
|
|
2012-02-17 15:30:01 +01:00
|
|
|
%postun -n libuuid1 -p /sbin/ldconfig
|
2011-01-11 16:19:40 +01:00
|
|
|
|
2009-07-03 17:12:19 +02:00
|
|
|
%verifyscript -n uuidd
|
2013-06-06 11:42:28 +02:00
|
|
|
%verify_permissions -e %{_sbindir}/uuidd
|
2009-07-03 17:12:19 +02:00
|
|
|
|
2008-03-27 23:24:22 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2009-07-03 17:12:19 +02:00
|
|
|
%files -f %{name}.files
|
2006-12-19 00:18:10 +01:00
|
|
|
# Common files for all archs
|
|
|
|
%defattr(-,root,root)
|
2012-02-24 11:56:25 +01:00
|
|
|
# util-linux documentation files
|
|
|
|
%doc Documentation/blkid.txt
|
|
|
|
%doc Documentation/cal.txt
|
|
|
|
%doc Documentation/cfdisk.txt
|
|
|
|
%doc Documentation/col.txt
|
|
|
|
%doc Documentation/deprecated.txt
|
|
|
|
%doc Documentation/fdisk.txt
|
|
|
|
%doc Documentation/getopt.txt
|
|
|
|
%doc Documentation/howto-debug.txt
|
|
|
|
%doc Documentation/hwclock.txt
|
|
|
|
%doc Documentation/modems-with-agetty.txt
|
|
|
|
%doc Documentation/mount.txt
|
|
|
|
%doc Documentation/pg.txt
|
|
|
|
%doc Documentation/sfdisk.txt
|
2011-01-11 16:19:40 +01:00
|
|
|
%config %attr(744,root,root) %{_sysconfdir}/init.d/raw
|
|
|
|
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/raw
|
|
|
|
%config(noreplace) %{_sysconfdir}/filesystems
|
|
|
|
%config(noreplace) %{_sysconfdir}/blkid.conf
|
2013-06-06 11:42:28 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/login
|
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/remote
|
|
|
|
%if %{with enable_su}
|
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/su
|
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/su-l
|
|
|
|
%config(noreplace) %{_sysconfdir}/default/su
|
|
|
|
%endif
|
2012-03-13 13:38:21 +01:00
|
|
|
#UsrMerge
|
2013-06-05 15:07:12 +02:00
|
|
|
%if %{with enable_su}
|
|
|
|
/bin/kill
|
|
|
|
/bin/su
|
|
|
|
%endif
|
2006-12-19 00:18:10 +01:00
|
|
|
/bin/dmesg
|
|
|
|
/bin/more
|
|
|
|
/bin/mount
|
|
|
|
/bin/umount
|
2010-07-30 12:35:45 +02:00
|
|
|
/bin/findmnt
|
2012-03-13 13:38:21 +01:00
|
|
|
/bin/logger
|
2012-03-14 15:25:45 +01:00
|
|
|
/bin/login
|
2011-01-11 16:19:40 +01:00
|
|
|
/bin/lsblk
|
2006-12-19 00:18:10 +01:00
|
|
|
/sbin/agetty
|
|
|
|
/sbin/blockdev
|
|
|
|
/sbin/ctrlaltdel
|
|
|
|
/sbin/fsck.minix
|
|
|
|
/sbin/fsck.cramfs
|
|
|
|
/sbin/losetup
|
|
|
|
/sbin/mkfs
|
|
|
|
/sbin/mkfs.bfs
|
|
|
|
/sbin/mkfs.minix
|
|
|
|
/sbin/mkfs.cramfs
|
|
|
|
/sbin/mkswap
|
|
|
|
/sbin/nologin
|
|
|
|
/sbin/pivot_root
|
2007-04-12 18:31:42 +02:00
|
|
|
/sbin/raw
|
2006-12-19 00:18:10 +01:00
|
|
|
/sbin/swapoff
|
|
|
|
/sbin/swapon
|
2009-07-03 17:12:19 +02:00
|
|
|
/sbin/blkid
|
|
|
|
/sbin/findfs
|
|
|
|
/sbin/fsck
|
|
|
|
/sbin/switch_root
|
2010-02-25 11:23:43 +01:00
|
|
|
/sbin/wipefs
|
2010-07-30 12:35:45 +02:00
|
|
|
/sbin/fsfreeze
|
|
|
|
/sbin/swaplabel
|
2011-01-11 16:19:40 +01:00
|
|
|
/sbin/fstrim
|
2012-02-24 11:56:25 +01:00
|
|
|
/sbin/chcpu
|
2012-03-13 13:38:21 +01:00
|
|
|
#EndUsrMerge
|
2013-06-05 15:07:12 +02:00
|
|
|
%if %{with enable_su}
|
|
|
|
%{_bindir}/kill
|
|
|
|
%{_bindir}/su
|
|
|
|
%endif
|
|
|
|
%if %{with enable_eject}
|
2013-12-12 13:34:11 +01:00
|
|
|
%if 0%{?suse_version} <= 1310
|
|
|
|
%verify(not mode) %attr(4750,root,audio) %{_bindir}/eject
|
|
|
|
%else
|
2013-10-28 11:50:01 +01:00
|
|
|
%{_bindir}/eject
|
2013-06-05 15:07:12 +02:00
|
|
|
%endif
|
2013-12-12 13:34:11 +01:00
|
|
|
%endif
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_bindir}/cal
|
|
|
|
%{_bindir}/chrt
|
|
|
|
%{_bindir}/col
|
|
|
|
%{_bindir}/colcrt
|
|
|
|
%{_bindir}/colrm
|
|
|
|
%{_bindir}/column
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_bindir}/dmesg
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_bindir}/fallocate
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_bindir}/findmnt
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_bindir}/flock
|
|
|
|
%{_bindir}/getopt
|
|
|
|
%{_bindir}/hexdump
|
|
|
|
%{_bindir}/ionice
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_bindir}/ipcmk
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_bindir}/ipcrm
|
|
|
|
%{_bindir}/ipcs
|
|
|
|
%{_bindir}/isosize
|
2013-12-12 13:34:11 +01:00
|
|
|
%if %{with enable_last}
|
|
|
|
%{_bindir}/last
|
|
|
|
%{_bindir}/lastb
|
|
|
|
%endif
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_bindir}/line
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_bindir}/logger
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_bindir}/look
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_bindir}/lsblk
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_bindir}/lscpu
|
2013-06-05 15:07:12 +02:00
|
|
|
%{_bindir}/lslocks
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_bindir}/mcookie
|
|
|
|
%{_bindir}/mesg
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_bindir}/more
|
|
|
|
%{_bindir}/mount
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_bindir}/namei
|
2013-06-05 15:07:12 +02:00
|
|
|
%{_bindir}/nsenter
|
2012-02-24 11:56:25 +01:00
|
|
|
%{_bindir}/prlimit
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_bindir}/rename
|
|
|
|
%{_bindir}/renice
|
|
|
|
%{_bindir}/rev
|
|
|
|
%{_bindir}/script
|
|
|
|
%{_bindir}/scriptreplay
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_bindir}/setarch
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_bindir}/setsid
|
|
|
|
%{_bindir}/tailf
|
|
|
|
%{_bindir}/taskset
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_bindir}/ul
|
|
|
|
%{_bindir}/umount
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_bindir}/unshare
|
2013-06-05 15:07:12 +02:00
|
|
|
%if %{with sysvinit_tools}
|
|
|
|
%{_bindir}/mountpoint
|
|
|
|
%{_bindir}/utmpdump
|
|
|
|
%endif
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_bindir}/uuidgen
|
|
|
|
%ifnarch ppc ppc64
|
|
|
|
%{_bindir}/chrp-addnote
|
|
|
|
%{_bindir}/mkzimage_cmdline
|
|
|
|
%endif
|
2013-06-05 15:07:12 +02:00
|
|
|
%{_bindir}/wdctl
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_sbindir}/addpart
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_sbindir}/agetty
|
|
|
|
%{_sbindir}/blkid
|
2013-06-05 15:07:12 +02:00
|
|
|
%{_sbindir}/blkdiscard
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_sbindir}/blockdev
|
|
|
|
%{_sbindir}/chcpu
|
|
|
|
%{_sbindir}/ctrlaltdel
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_sbindir}/delpart
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_sbindir}/findfs
|
|
|
|
%{_sbindir}/fsck
|
|
|
|
%{_sbindir}/fsck.minix
|
|
|
|
%{_sbindir}/fsck.cramfs
|
|
|
|
%{_sbindir}/fsfreeze
|
|
|
|
%{_sbindir}/fstrim
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_sbindir}/ldattach
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_sbindir}/losetup
|
|
|
|
%{_sbindir}/mkfs
|
|
|
|
%{_sbindir}/mkfs.bfs
|
|
|
|
%{_sbindir}/mkfs.minix
|
|
|
|
%{_sbindir}/mkfs.cramfs
|
|
|
|
%{_sbindir}/mkswap
|
|
|
|
%{_sbindir}/nologin
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_sbindir}/partx
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_sbindir}/pivot_root
|
|
|
|
%{_sbindir}/raw
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_sbindir}/rcraw
|
2013-06-05 15:07:12 +02:00
|
|
|
%{_sbindir}/resizepart
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_sbindir}/rtcwake
|
2013-06-05 15:07:12 +02:00
|
|
|
%{_sbindir}/runuser
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_sbindir}/setctsid
|
2013-06-05 15:07:12 +02:00
|
|
|
%if %{with sysvinit_tools}
|
|
|
|
%{_sbindir}/sulogin
|
|
|
|
%endif
|
2012-03-13 13:38:21 +01:00
|
|
|
%{_sbindir}/swaplabel
|
|
|
|
%{_sbindir}/swapoff
|
|
|
|
%{_sbindir}/swapon
|
|
|
|
%{_sbindir}/switch_root
|
|
|
|
%{_sbindir}/wipefs
|
2011-01-11 16:19:40 +01:00
|
|
|
%verify(not mode) %attr(0755,root,tty) %{_bindir}/wall
|
|
|
|
%{_bindir}/whereis
|
|
|
|
%verify(not mode) %attr(0755,root,tty) %{_bindir}/write
|
2013-06-05 15:07:12 +02:00
|
|
|
%if %{with enable_su}
|
|
|
|
%{_mandir}/man1/kill.1.gz
|
|
|
|
%{_mandir}/man1/su.1.gz
|
|
|
|
%endif
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man1/cal.1.gz
|
|
|
|
%{_mandir}/man1/chrt.1.gz
|
|
|
|
%{_mandir}/man1/col.1.gz
|
|
|
|
%{_mandir}/man1/colcrt.1.gz
|
|
|
|
%{_mandir}/man1/colrm.1.gz
|
|
|
|
%{_mandir}/man1/column.1.gz
|
2007-06-05 20:09:38 +02:00
|
|
|
%{_mandir}/man1/dmesg.1.gz
|
2013-06-05 15:07:12 +02:00
|
|
|
%if %{with enable_eject}
|
|
|
|
%{_mandir}/man1/eject.1.gz
|
|
|
|
%endif
|
2010-02-25 11:23:43 +01:00
|
|
|
%{_mandir}/man1/fallocate.1.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man1/flock.1.gz
|
|
|
|
%{_mandir}/man1/getopt.1.gz
|
|
|
|
%{_mandir}/man1/hexdump.1.gz
|
2007-06-05 20:09:38 +02:00
|
|
|
%{_mandir}/man1/ipcrm.1.gz
|
|
|
|
%{_mandir}/man1/ipcs.1.gz
|
2013-12-12 13:34:11 +01:00
|
|
|
%if %{with enable_last}
|
|
|
|
%{_mandir}/man1/last.1.gz
|
|
|
|
%{_mandir}/man1/lastb.1.gz
|
|
|
|
%endif
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man1/line.1.gz
|
|
|
|
%{_mandir}/man1/logger.1.gz
|
2012-03-14 15:25:45 +01:00
|
|
|
%{_mandir}/man1/login.1.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man1/look.1.gz
|
2008-10-08 18:42:45 +02:00
|
|
|
%{_mandir}/man1/lscpu.1.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man1/mcookie.1.gz
|
|
|
|
%{_mandir}/man1/mesg.1.gz
|
|
|
|
%{_mandir}/man1/more.1.gz
|
|
|
|
%{_mandir}/man1/namei.1.gz
|
2013-06-05 15:07:12 +02:00
|
|
|
%{_mandir}/man1/nsenter.1.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man1/ionice.1.gz
|
2012-02-24 11:56:25 +01:00
|
|
|
%{_mandir}/man1/prlimit.1.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man1/rename.1.gz
|
|
|
|
%{_mandir}/man1/rev.1.gz
|
2007-06-05 20:09:38 +02:00
|
|
|
%{_mandir}/man1/renice.1.gz
|
|
|
|
%{_mandir}/man1/setsid.1.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man1/script.1.gz
|
2008-06-26 00:34:31 +02:00
|
|
|
%{_mandir}/man1/scriptreplay.1.gz
|
2007-04-12 18:31:42 +02:00
|
|
|
%{_mandir}/man1/setterm.1.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man1/tailf.1.gz
|
|
|
|
%{_mandir}/man1/taskset.1.gz
|
|
|
|
%{_mandir}/man1/ul.1.gz
|
2010-02-25 11:23:43 +01:00
|
|
|
%{_mandir}/man1/unshare.1.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man1/wall.1.gz
|
|
|
|
%{_mandir}/man1/whereis.1.gz
|
|
|
|
%{_mandir}/man1/write.1.gz
|
2009-07-03 17:12:19 +02:00
|
|
|
%{_mandir}/man1/ipcmk.1.gz
|
2013-06-05 15:07:12 +02:00
|
|
|
%if %{with sysvinit_tools}
|
|
|
|
%{_mandir}/man1/mountpoint.1.gz
|
|
|
|
%{_mandir}/man1/utmpdump.1.gz
|
|
|
|
%endif
|
|
|
|
%{_mandir}/man1/runuser.1.gz
|
2009-07-03 17:12:19 +02:00
|
|
|
%{_mandir}/man1/uuidgen.1.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man5/fstab.5.gz
|
2007-04-12 18:31:42 +02:00
|
|
|
%{_mandir}/man8/addpart.8.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man8/agetty.8.gz
|
|
|
|
%{_mandir}/man8/blockdev.8.gz
|
2007-04-12 18:31:42 +02:00
|
|
|
%{_mandir}/man8/delpart.8.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man8/ctrlaltdel.8.gz
|
2009-07-03 17:12:19 +02:00
|
|
|
%{_mandir}/man8/blkid.8.gz
|
2013-06-05 15:07:12 +02:00
|
|
|
%{_mandir}/man8/blkdiscard.8.gz
|
2009-07-03 17:12:19 +02:00
|
|
|
%{_mandir}/man8/switch_root.8.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man8/mkfs.bfs.8.gz
|
|
|
|
%{_mandir}/man8/mkfs.minix.8.gz
|
2009-07-03 17:12:19 +02:00
|
|
|
%{_mandir}/man8/findfs.8.gz
|
|
|
|
%{_mandir}/man8/fsck.8.gz
|
2013-06-05 15:07:12 +02:00
|
|
|
%{_mandir}/man8/fsck.cramfs.8.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man8/fsck.minix.8.gz
|
|
|
|
%{_mandir}/man8/isosize.8.gz
|
2008-06-26 00:34:31 +02:00
|
|
|
%{_mandir}/man8/ldattach.8.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man8/losetup.8.gz
|
2013-06-05 15:07:12 +02:00
|
|
|
%{_mandir}/man8/lslocks.8.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man8/mkfs.8.gz
|
2013-06-05 15:07:12 +02:00
|
|
|
%{_mandir}/man8/mkfs.cramfs.8.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man8/mkswap.8.gz
|
|
|
|
%{_mandir}/man8/mount.8.gz
|
|
|
|
%{_mandir}/man8/nologin.8.gz
|
2010-07-30 12:35:45 +02:00
|
|
|
%{_mandir}/man8/findmnt.8.gz
|
|
|
|
%{_mandir}/man8/fsfreeze.8.gz
|
|
|
|
%{_mandir}/man8/swaplabel.8.gz
|
2012-02-24 11:56:25 +01:00
|
|
|
%{_mandir}/man8/readprofile.8.gz
|
|
|
|
%{_mandir}/man8/chcpu.8.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%ifnarch ppc ppc64
|
|
|
|
%{_mandir}/man8/mkzimage_cmdline.8.gz
|
|
|
|
%endif
|
2007-04-12 18:31:42 +02:00
|
|
|
%{_mandir}/man8/partx.8.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man8/pivot_root.8.gz
|
|
|
|
%{_mandir}/man8/raw.8.gz
|
2007-07-18 22:39:11 +02:00
|
|
|
%{_mandir}/man8/rtcwake.8.gz
|
2009-07-03 17:12:19 +02:00
|
|
|
%{_mandir}/man8/setarch.8.gz
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man8/swapoff.8.gz
|
|
|
|
%{_mandir}/man8/swapon.8.gz
|
|
|
|
%{_mandir}/man8/umount.8.gz
|
|
|
|
%{_mandir}/man8/setctsid.8.gz
|
2010-02-25 11:23:43 +01:00
|
|
|
%{_mandir}/man8/wipefs.8.gz
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_mandir}/man8/fstrim.8.gz
|
|
|
|
%{_mandir}/man8/lsblk.8.gz
|
2013-06-05 15:07:12 +02:00
|
|
|
%{_mandir}/man8/resizepart.8.gz
|
|
|
|
%if %{with sysvinit_tools}
|
|
|
|
%{_mandir}/man8/sulogin.8.gz
|
|
|
|
%endif
|
|
|
|
%{_mandir}/man8/wdctl.8.gz
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_sbindir}/flushb
|
|
|
|
%{_sbindir}/readprofile
|
|
|
|
%dir %{_datadir}/getopt
|
|
|
|
%attr (755,root,root) %{_datadir}/getopt/getopt-parse.bash
|
|
|
|
%attr (755,root,root) %{_datadir}/getopt/getopt-parse.tcsh
|
2013-06-29 12:05:39 +02:00
|
|
|
# FIXME: Fix directory ownership.
|
2013-06-20 21:14:46 +02:00
|
|
|
%{_datadir}/bash-completion
|
2013-10-09 17:02:58 +02:00
|
|
|
%ifnarch ia64 m68k
|
2012-02-24 11:56:25 +01:00
|
|
|
#XXX: post our patches upstream
|
|
|
|
#XXX: call fdupes on /usr/share/man
|
2012-03-13 13:38:21 +01:00
|
|
|
#UsrMerge
|
2006-12-19 00:18:10 +01:00
|
|
|
/sbin/fdisk
|
2012-03-13 13:38:21 +01:00
|
|
|
#EndUsrMerge
|
|
|
|
%{_sbindir}/fdisk
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man8/fdisk.8.gz
|
|
|
|
%endif
|
2013-10-09 17:02:58 +02:00
|
|
|
%ifnarch %sparc ia64 m68k
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man8/cfdisk.8.gz
|
|
|
|
%{_mandir}/man8/sfdisk.8.gz
|
2012-03-13 13:38:21 +01:00
|
|
|
#UsrMerge
|
2006-12-19 00:18:10 +01:00
|
|
|
/sbin/cfdisk
|
|
|
|
/sbin/sfdisk
|
2012-03-13 13:38:21 +01:00
|
|
|
#EndUsrMerge
|
|
|
|
%{_sbindir}/cfdisk
|
|
|
|
%{_sbindir}/sfdisk
|
2006-12-19 00:18:10 +01:00
|
|
|
%endif
|
|
|
|
%ifnarch s390 s390x
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_bindir}/cytune
|
|
|
|
%{_sbindir}/fdformat
|
2012-03-13 13:38:21 +01:00
|
|
|
#UsrMerge
|
2006-12-19 00:18:10 +01:00
|
|
|
/sbin/hwclock
|
2012-03-13 13:38:21 +01:00
|
|
|
#EndUsrMerge
|
|
|
|
%{_sbindir}/hwclock
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_sbindir}/klogconsole
|
|
|
|
%{_bindir}/setterm
|
|
|
|
%{_sbindir}/tunelp
|
2006-12-19 00:18:10 +01:00
|
|
|
%{_mandir}/man8/cytune.8.gz
|
|
|
|
%{_mandir}/man8/fdformat.8.gz
|
|
|
|
%{_mandir}/man8/hwclock.8.gz
|
|
|
|
%{_mandir}/man8/klogconsole.8.gz
|
|
|
|
%{_mandir}/man8/tunelp.8.gz
|
|
|
|
%endif
|
2008-02-10 18:13:34 +01:00
|
|
|
|
2009-07-03 17:12:19 +02:00
|
|
|
%files -n libblkid1
|
|
|
|
%defattr(-, root, root)
|
2012-02-24 11:56:25 +01:00
|
|
|
/%{_libdir}/libblkid.so.1
|
|
|
|
/%{_libdir}/libblkid.so.1.*
|
2009-07-03 17:12:19 +02:00
|
|
|
|
|
|
|
%files -n libblkid-devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libblkid.so
|
|
|
|
%dir %{_includedir}/blkid
|
|
|
|
%{_includedir}/blkid/blkid.h
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_libdir}/pkgconfig/blkid.pc
|
2009-07-03 17:12:19 +02:00
|
|
|
%{_mandir}/man3/libblkid.3.gz
|
|
|
|
|
2010-07-30 12:35:45 +02:00
|
|
|
%files -n libmount1
|
|
|
|
%defattr(-, root, root)
|
2012-02-24 11:56:25 +01:00
|
|
|
/%{_libdir}/libmount.so.1
|
|
|
|
/%{_libdir}/libmount.so.1.*
|
2010-07-30 12:35:45 +02:00
|
|
|
|
|
|
|
%files -n libmount-devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libmount.so
|
2011-01-26 12:52:47 +01:00
|
|
|
%dir %{_includedir}/libmount
|
|
|
|
%{_includedir}/libmount/libmount.h
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_libdir}/pkgconfig/mount.pc
|
2010-07-30 12:35:45 +02:00
|
|
|
|
2009-07-03 17:12:19 +02:00
|
|
|
%files -n uuidd
|
|
|
|
%defattr(-, root, root)
|
2011-01-11 16:19:40 +01:00
|
|
|
%verify(not mode) %attr(0755,root,root) %{_sbindir}/uuidd
|
|
|
|
%attr(-,uuidd,uuidd) %dir %{_localstatedir}/lib/libuuid
|
2011-08-02 16:03:08 +02:00
|
|
|
%ghost %{_localstatedir}/lib/libuuid/clock.txt
|
2011-01-11 16:19:40 +01:00
|
|
|
%attr(-,uuidd,uuidd) %ghost %dir %{_localstatedir}/run/uuidd
|
2012-02-24 11:56:25 +01:00
|
|
|
%{_initddir}/uuidd
|
2009-07-03 17:12:19 +02:00
|
|
|
%{_mandir}/man8/uuidd.8.gz
|
2011-08-02 16:03:08 +02:00
|
|
|
%{_sbindir}/rcuuidd
|
2013-06-05 15:07:12 +02:00
|
|
|
%{_unitdir}/uuidd.service
|
|
|
|
%{_unitdir}/uuidd.socket
|
2009-07-03 17:12:19 +02:00
|
|
|
|
|
|
|
%files -n libuuid1
|
|
|
|
%defattr(-, root, root)
|
2012-02-24 11:56:25 +01:00
|
|
|
/%{_libdir}/libuuid.so.1
|
|
|
|
/%{_libdir}/libuuid.so.1.*
|
2009-07-03 17:12:19 +02:00
|
|
|
|
|
|
|
%files -n libuuid-devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libuuid.so
|
|
|
|
%dir %{_includedir}/uuid
|
|
|
|
%{_includedir}/uuid/uuid.h
|
2011-01-11 16:19:40 +01:00
|
|
|
%{_libdir}/pkgconfig/uuid.pc
|
2009-07-03 17:12:19 +02:00
|
|
|
%{_mandir}/man3/uuid*
|
|
|
|
|
2007-03-01 21:08:53 +01:00
|
|
|
%changelog
|