2006-12-19 00:15:45 +01:00
|
|
|
#
|
2011-01-17 13:59:24 +01:00
|
|
|
# spec file for package e2fsprogs
|
2006-12-19 00:15:45 +01:00
|
|
|
#
|
2021-02-02 17:02:45 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2006-12-19 00:15:45 +01:00
|
|
|
#
|
2008-08-21 17:58:40 +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.
|
|
|
|
|
2019-05-15 16:48:17 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:15:45 +01:00
|
|
|
#
|
|
|
|
|
2012-01-16 20:28:03 +01:00
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%define build_mini 0
|
|
|
|
|
2006-12-19 00:15:45 +01:00
|
|
|
Name: e2fsprogs
|
2013-02-26 19:05:10 +01:00
|
|
|
%if 0%{?suse_version} >= 1010
|
|
|
|
# Hint for ZYPP
|
2009-08-06 17:38:39 +02:00
|
|
|
Supplements: filesystem(ext2) filesystem(ext3) filesystem(ext4)
|
2013-02-26 19:05:10 +01:00
|
|
|
%endif
|
2019-05-31 14:03:49 +02:00
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
%bcond_without systemd
|
|
|
|
%else
|
|
|
|
%bcond_with systemd
|
|
|
|
%endif
|
2011-12-20 21:56:09 +01:00
|
|
|
BuildRequires: libblkid-devel
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: pkg-config
|
2018-03-08 11:49:51 +01:00
|
|
|
BuildRequires: xz
|
2013-12-10 21:59:42 +01:00
|
|
|
%if ! %{build_mini}
|
2013-02-26 19:05:10 +01:00
|
|
|
%if 0%{?suse_version} > 1220
|
2012-09-11 14:57:54 +02:00
|
|
|
BuildRequires: makeinfo
|
2016-09-12 13:02:41 +02:00
|
|
|
%endif
|
2013-02-26 19:05:10 +01:00
|
|
|
# Define info macros if missing (for Fedora builds)
|
2021-02-02 17:02:45 +01:00
|
|
|
%if ! 0%{?suse_version}
|
2013-02-26 19:05:10 +01:00
|
|
|
%define install_info_prereq info
|
|
|
|
%define install_info sbin/install-info
|
|
|
|
%define install_info_delete sbin/install-info --delete
|
2019-07-25 19:08:11 +02:00
|
|
|
Requires(post): %install_info_prereq
|
|
|
|
Requires(preun): %install_info_prereq
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2021-02-02 17:02:45 +01:00
|
|
|
%endif
|
2009-01-14 17:51:43 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: e2fsprogs-64bit
|
|
|
|
%endif
|
2013-12-10 21:59:42 +01:00
|
|
|
|
|
|
|
%if %{build_mini}
|
|
|
|
Conflicts: e2fsprogs
|
|
|
|
Conflicts: e2fsprogs-devel
|
|
|
|
Conflicts: libext2fs2
|
|
|
|
Conflicts: libext2fs-devel
|
|
|
|
Conflicts: libcom_err2
|
|
|
|
Conflicts: libcom_err-devel
|
|
|
|
%else
|
|
|
|
Conflicts: e2fsprogs-mini
|
|
|
|
Conflicts: e2fsprogs-mini-devel
|
|
|
|
Conflicts: libext2fs2-mini
|
|
|
|
Conflicts: libext2fs-mini-devel
|
|
|
|
Conflicts: libcom_err2-mini
|
|
|
|
Conflicts: libcom_err-mini-devel
|
|
|
|
%endif
|
2009-01-14 17:51:43 +01:00
|
|
|
#
|
2021-08-02 23:03:06 +02:00
|
|
|
Version: 1.46.3
|
2011-12-20 21:56:09 +01:00
|
|
|
Release: 0
|
2006-12-19 00:15:45 +01:00
|
|
|
Summary: Utilities for the Second Extended File System
|
2018-09-11 18:07:52 +02:00
|
|
|
License: GPL-2.0-only
|
2011-12-20 21:56:09 +01:00
|
|
|
Group: System/Filesystems
|
2020-05-04 09:48:24 +02:00
|
|
|
URL: http://e2fsprogs.sourceforge.net
|
2021-02-02 17:02:45 +01:00
|
|
|
# For regenerate_initrd_post macro
|
|
|
|
Requires(post): /usr/bin/mkdir /usr/bin/touch
|
2012-05-23 23:39:30 +02:00
|
|
|
Requires: libcom_err2 >= %{version}
|
2012-06-14 17:27:03 +02:00
|
|
|
Requires: libext2fs2 >= %{version}
|
2019-05-31 14:03:49 +02:00
|
|
|
Suggests: e2fsprogs-scrub
|
2018-03-06 13:48:03 +01:00
|
|
|
Source: http://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v%{version}/e2fsprogs-%{version}.tar.xz
|
2007-07-05 18:28:31 +02:00
|
|
|
Source2: README.SUSE
|
2009-12-16 09:09:35 +01:00
|
|
|
Source3: baselibs.conf
|
2020-05-04 09:48:24 +02:00
|
|
|
Source4: http://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v%{version}/e2fsprogs-%{version}.tar.sign
|
|
|
|
Source5: https://thunk.org/tytso/tytso-key.asc#/%{name}.keyring
|
2008-02-01 21:29:19 +01:00
|
|
|
#
|
|
|
|
# e2fsprogs patches
|
|
|
|
#
|
2006-12-19 00:15:45 +01:00
|
|
|
# libcom_err patches
|
2014-04-28 19:55:32 +02:00
|
|
|
Patch3: libcom_err-compile_et_permissions.patch
|
2012-01-16 20:28:03 +01:00
|
|
|
Patch4: e2fsprogs-1.42-implicit_fortify_decl.patch
|
|
|
|
Patch5: e2fsprogs-1.42-ext2fsh_implicit.patch
|
2021-09-15 11:02:50 +02:00
|
|
|
Patch6: harden_e2scrub@.service.patch
|
|
|
|
Patch7: harden_e2scrub_all.service.patch
|
|
|
|
Patch8: harden_e2scrub_fail@.service.patch
|
|
|
|
Patch9: harden_e2scrub_reap.service.patch
|
2007-07-05 18:28:31 +02:00
|
|
|
# Do not suppress make commands
|
2006-12-19 00:15:45 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Utilities needed to create and maintain ext2 and ext3 file systems
|
|
|
|
under Linux. Included in this package are: chattr, lsattr, mke2fs,
|
|
|
|
mklost+found, tune2fs, e2fsck, resize2fs, and badblocks.
|
|
|
|
|
|
|
|
%package devel
|
2007-07-05 18:28:31 +02:00
|
|
|
Summary: Dummy development package
|
2017-09-05 17:43:36 +02:00
|
|
|
# bug437293
|
2018-09-11 18:07:52 +02:00
|
|
|
License: LGPL-2.0-only
|
2006-12-19 00:15:45 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-01-14 17:51:43 +01:00
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: e2fsprogs-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2012-04-06 00:12:22 +02:00
|
|
|
Requires: libblkid-devel
|
|
|
|
Requires: libext2fs-devel = %version
|
|
|
|
Requires: libuuid-devel
|
2006-12-19 00:15:45 +01:00
|
|
|
|
|
|
|
%description devel
|
2007-07-05 18:28:31 +02:00
|
|
|
Dummy development package for backwards compatibility.
|
2006-12-19 00:15:45 +01:00
|
|
|
|
2019-05-31 14:03:49 +02:00
|
|
|
%if %{build_mini}
|
|
|
|
%package -n e2fsprogs-scrub-mini
|
|
|
|
%else
|
|
|
|
%package -n e2fsprogs-scrub
|
|
|
|
%endif
|
|
|
|
Summary: Ext2fs scrubbing scripts and service files
|
|
|
|
License: GPL-2.0-only
|
|
|
|
Group: System/Filesystems
|
|
|
|
%if %{with systemd}
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
%{?systemd_requires}
|
|
|
|
%endif
|
|
|
|
Requires: e2fsprogs
|
|
|
|
Requires: lvm2
|
|
|
|
Requires: postfix
|
|
|
|
Requires: util-linux
|
|
|
|
|
|
|
|
%description -n e2fsprogs-scrub
|
|
|
|
Scripts and systemd service files for background scrubbing of LVM volumes
|
|
|
|
with ext2, ext3, and ext4 filesystems.
|
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%package -n libext2fs2-mini
|
|
|
|
%else
|
2007-07-05 18:28:31 +02:00
|
|
|
%package -n libext2fs2
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2011-05-31 09:31:50 +02:00
|
|
|
Summary: Ext2fs library
|
2018-09-11 18:07:52 +02:00
|
|
|
License: LGPL-2.0-only
|
2007-07-05 18:28:31 +02:00
|
|
|
Group: System/Filesystems
|
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%description -n libext2fs2-mini
|
|
|
|
%else
|
2007-07-05 18:28:31 +02:00
|
|
|
%description -n libext2fs2
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2009-07-17 16:27:47 +02:00
|
|
|
The basic Ext2fs shared library.
|
2007-07-05 18:28:31 +02:00
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%package -n libext2fs-mini-devel
|
|
|
|
%else
|
2007-07-05 18:28:31 +02:00
|
|
|
%package -n libext2fs-devel
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
Summary: Development files for libext2fs
|
2018-09-11 18:07:52 +02:00
|
|
|
License: LGPL-2.0-only
|
2008-07-11 20:41:52 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-04-06 00:12:22 +02:00
|
|
|
Requires: libcom_err-devel
|
|
|
|
Requires: libext2fs2 = %version
|
2007-07-05 18:28:31 +02:00
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%description -n libext2fs-mini-devel
|
|
|
|
%else
|
2007-07-05 18:28:31 +02:00
|
|
|
%description -n libext2fs-devel
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
Development files for libext2fs.
|
|
|
|
|
2015-08-05 14:31:46 +02:00
|
|
|
%if ! %{build_mini}
|
|
|
|
%package -n libext2fs-devel-static
|
|
|
|
Summary: Development files for libext2fs
|
2018-09-11 18:07:52 +02:00
|
|
|
License: LGPL-2.0-only
|
2015-08-05 14:31:46 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-08-12 15:49:25 +02:00
|
|
|
Requires: libext2fs-devel = %{version}
|
|
|
|
Provides: libext2fs-devel:%{_libdir}/libe2p.a
|
|
|
|
Provides: libext2fs-devel:%{_libdir}/libext2fs.a
|
2015-08-05 14:31:46 +02:00
|
|
|
|
|
|
|
%description -n libext2fs-devel-static
|
|
|
|
Development files for libext2fs. Static libraries.
|
|
|
|
%endif
|
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%package -n libcom_err2-mini
|
|
|
|
%else
|
2007-07-05 18:28:31 +02:00
|
|
|
%package -n libcom_err2
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
Summary: E2fsprogs error reporting library
|
2017-09-05 17:43:36 +02:00
|
|
|
# bug437293
|
2011-12-20 21:56:09 +01:00
|
|
|
License: MIT
|
2007-07-05 18:28:31 +02:00
|
|
|
Group: System/Filesystems
|
2009-01-14 17:51:43 +01:00
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libcom_err-64bit
|
|
|
|
Obsoletes: libcom_err2-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-07-05 18:28:31 +02:00
|
|
|
Provides: libcom_err = %{version}
|
2008-05-07 21:55:14 +02:00
|
|
|
Obsoletes: libcom_err <= 1.40
|
2007-07-05 18:28:31 +02:00
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%description -n libcom_err2-mini
|
|
|
|
%else
|
2007-07-05 18:28:31 +02:00
|
|
|
%description -n libcom_err2
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2006-12-19 00:15:45 +01:00
|
|
|
com_err is an error message display library.
|
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%package -n libcom_err-mini-devel
|
|
|
|
%else
|
2007-07-05 18:28:31 +02:00
|
|
|
%package -n libcom_err-devel
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
Summary: Development files for libcom_err
|
2017-09-05 17:43:36 +02:00
|
|
|
# bug437293
|
2011-12-20 21:56:09 +01:00
|
|
|
License: MIT
|
2008-07-11 20:41:52 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-01-14 17:51:43 +01:00
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libcom_err-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2012-04-06 00:12:22 +02:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libcom_err2 = %version
|
2007-07-05 18:28:31 +02:00
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%description -n libcom_err-mini-devel
|
|
|
|
%else
|
2007-07-05 18:28:31 +02:00
|
|
|
%description -n libcom_err-devel
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
Development files for the com_err error message display library.
|
|
|
|
|
2015-08-05 14:31:46 +02:00
|
|
|
%if ! %{build_mini}
|
|
|
|
%package -n libcom_err-devel-static
|
|
|
|
Summary: Development files for libcom_err, static libraries
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-08-12 15:49:25 +02:00
|
|
|
Requires: libcom_err-devel = %{version}
|
|
|
|
Provides: libcom_err-devel:%{_libdir}/libcom_err.a
|
|
|
|
Provides: libcom_err-devel:%{_libdir}/libss.a
|
2015-08-05 14:31:46 +02:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libcom_err-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
|
|
|
|
|
|
|
%description -n libcom_err-devel-static
|
|
|
|
Development files for the com_err error message display library. Static libraries.
|
|
|
|
%endif
|
|
|
|
|
2006-12-19 00:15:45 +01:00
|
|
|
%prep
|
2013-12-10 21:59:42 +01:00
|
|
|
%setup -q -n e2fsprogs-%{version}
|
2014-04-28 19:55:32 +02:00
|
|
|
# libcom_err patches
|
|
|
|
%patch3 -p1
|
2012-01-16 20:28:03 +01:00
|
|
|
%patch4
|
|
|
|
%patch5
|
2009-07-03 17:13:02 +02:00
|
|
|
cp %{SOURCE2} .
|
2021-09-15 11:02:50 +02:00
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
2006-12-19 00:15:45 +01:00
|
|
|
|
|
|
|
%build
|
2019-07-03 12:53:29 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2012-04-12 00:40:58 +02:00
|
|
|
%configure \
|
2009-07-03 17:13:02 +02:00
|
|
|
--with-root-prefix='' \
|
|
|
|
--enable-elf-shlibs \
|
|
|
|
--disable-libblkid \
|
|
|
|
--disable-libuuid \
|
|
|
|
--disable-uuidd \
|
|
|
|
--disable-fsck \
|
2019-04-01 10:49:22 +02:00
|
|
|
--without-crond-dir \
|
2019-05-31 14:03:49 +02:00
|
|
|
--with-systemd-unit-dir=%{?_unitdir} \
|
2009-07-03 17:13:02 +02:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS"
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
rm -rf doc
|
|
|
|
%endif
|
2010-07-30 12:44:37 +02:00
|
|
|
make %{?_smp_mflags} V=1
|
2011-01-24 15:16:36 +01:00
|
|
|
#Guarantee that tranlations match the source messages
|
|
|
|
make -C po update-po
|
2006-12-19 00:15:45 +01:00
|
|
|
|
|
|
|
%install
|
2012-04-12 00:40:58 +02:00
|
|
|
make install install-libs DESTDIR=$RPM_BUILD_ROOT ELF_INSTALL_DIR=/%{_libdir}
|
2012-08-28 20:55:50 +02:00
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%{find_lang} e2fsprogs
|
2012-08-28 20:55:50 +02:00
|
|
|
|
2006-12-19 00:15:45 +01:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/e2initrd_helper
|
2007-07-27 01:24:33 +02:00
|
|
|
|
2020-11-20 12:13:53 +01:00
|
|
|
%if !0%{?usrmerged}
|
2012-04-12 00:40:58 +02:00
|
|
|
mkdir %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/badblocks %{buildroot}/sbin/badblocks
|
|
|
|
ln -s %{_sbindir}/debugfs %{buildroot}/sbin/debugfs
|
|
|
|
ln -s %{_sbindir}/dumpe2fs %{buildroot}/sbin/dumpe2fs
|
|
|
|
ln -s %{_sbindir}/e2undo %{buildroot}/sbin/e2undo
|
|
|
|
ln -s %{_sbindir}/e2fsck %{buildroot}/sbin/e2fsck
|
|
|
|
ln -s %{_sbindir}/e2label %{buildroot}/sbin/e2label
|
2018-09-11 18:07:52 +02:00
|
|
|
ln -s %{_sbindir}/e2mmpstatus %{buildroot}/sbin/e2mmpstatus
|
2012-04-12 00:40:58 +02:00
|
|
|
ln -s %{_sbindir}/fsck.ext2 %{buildroot}/sbin/fsck.ext2
|
|
|
|
ln -s %{_sbindir}/fsck.ext3 %{buildroot}/sbin/fsck.ext3
|
|
|
|
ln -s %{_sbindir}/fsck.ext4 %{buildroot}/sbin/fsck.ext4
|
|
|
|
ln -s %{_sbindir}/mke2fs %{buildroot}/sbin/mke2fs
|
|
|
|
ln -s %{_sbindir}/mkfs.ext2 %{buildroot}/sbin/mkfs.ext2
|
|
|
|
ln -s %{_sbindir}/mkfs.ext3 %{buildroot}/sbin/mkfs.ext3
|
|
|
|
ln -s %{_sbindir}/mkfs.ext4 %{buildroot}/sbin/mkfs.ext4
|
|
|
|
ln -s %{_sbindir}/resize2fs %{buildroot}/sbin/resize2fs
|
|
|
|
ln -s %{_sbindir}/tune2fs %{buildroot}/sbin/tune2fs
|
|
|
|
ln -s %{_sbindir}/e2image %{buildroot}/sbin/e2image
|
|
|
|
ln -s %{_sbindir}/logsave %{buildroot}/sbin/logsave
|
|
|
|
mkdir %{buildroot}/%{_lib}
|
|
|
|
pushd %{buildroot}/%{_libdir}
|
|
|
|
LIBNAMES=$(ls *.so.*)
|
|
|
|
popd
|
|
|
|
for libName in $LIBNAMES;
|
|
|
|
do ln -s %{_libdir}/$libName %{buildroot}/%{_lib};
|
|
|
|
done
|
2020-11-20 12:13:53 +01:00
|
|
|
%endif
|
2019-05-31 14:03:49 +02:00
|
|
|
|
|
|
|
%if %{with systemd}
|
|
|
|
%if %{build_mini}
|
|
|
|
%pre -n e2fsprogs-scrub-mini
|
|
|
|
%else
|
|
|
|
%pre -n e2fsprogs-scrub
|
|
|
|
%endif
|
|
|
|
%service_add_pre e2scrub@.service e2scrub_all.service e2scrub_all.timer e2scrub_fail@.service e2scrub_reap.service
|
|
|
|
%endif
|
|
|
|
|
2007-07-05 18:28:31 +02:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
2013-12-10 21:59:42 +01:00
|
|
|
%if ! %{build_mini}
|
2021-02-17 15:24:37 +01:00
|
|
|
%if 0%{?suse_version} <= 1530
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libext2fs.info.gz
|
|
|
|
%endif
|
2016-07-25 13:02:06 +02:00
|
|
|
%{?regenerate_initrd_post}
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
|
2019-05-31 14:03:49 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
%if %{build_mini}
|
|
|
|
%post -n e2fsprogs-scrub-mini
|
|
|
|
%else
|
|
|
|
%post -n e2fsprogs-scrub
|
|
|
|
%endif
|
|
|
|
%service_add_post e2scrub@.service e2scrub_all.service e2scrub_all.timer e2scrub_fail@.service e2scrub_reap.service
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with systemd}
|
|
|
|
%if %{build_mini}
|
|
|
|
%preun -n e2fsprogs-scrub-mini
|
|
|
|
%else
|
2019-07-25 19:08:11 +02:00
|
|
|
%preun
|
2021-02-17 15:24:37 +01:00
|
|
|
%if 0%{?suse_version} <= 1530
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libext2fs.info.gz
|
|
|
|
%endif
|
2019-05-31 14:03:49 +02:00
|
|
|
%preun -n e2fsprogs-scrub
|
|
|
|
%endif
|
|
|
|
%service_del_preun e2scrub@.service e2scrub_all.service e2scrub_all.timer e2scrub_fail@.service e2scrub_reap.service
|
|
|
|
%endif
|
|
|
|
|
2007-07-05 18:28:31 +02:00
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
2013-12-10 21:59:42 +01:00
|
|
|
%if ! %{build_mini}
|
2016-07-25 13:02:06 +02:00
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
%endif
|
|
|
|
|
2019-05-31 14:03:49 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
%if %{build_mini}
|
|
|
|
%postun -n e2fsprogs-scrub-mini
|
|
|
|
%else
|
|
|
|
%postun -n e2fsprogs-scrub
|
|
|
|
%endif
|
|
|
|
%service_del_postun e2scrub@.service e2scrub_all.service e2scrub_all.timer e2scrub_fail@.service e2scrub_reap.service
|
|
|
|
%endif
|
|
|
|
|
2016-07-25 13:02:06 +02:00
|
|
|
%if ! %{build_mini}
|
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%post -n libext2fs2-mini -p /sbin/ldconfig
|
|
|
|
%else
|
2009-12-11 13:01:57 +01:00
|
|
|
%post -n libext2fs2 -p /sbin/ldconfig
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%postun -n libext2fs2-mini -p /sbin/ldconfig
|
|
|
|
%else
|
2009-12-11 13:01:57 +01:00
|
|
|
%postun -n libext2fs2 -p /sbin/ldconfig
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%post -n libcom_err2-mini -p /sbin/ldconfig
|
|
|
|
%else
|
2009-12-11 13:01:57 +01:00
|
|
|
%post -n libcom_err2 -p /sbin/ldconfig
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%postun -n libcom_err2-mini -p /sbin/ldconfig
|
|
|
|
%else
|
2009-12-11 13:01:57 +01:00
|
|
|
%postun -n libcom_err2 -p /sbin/ldconfig
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%files -f e2fsprogs.lang
|
2006-12-19 00:15:45 +01:00
|
|
|
%defattr(-, root, root)
|
2021-06-25 16:02:17 +02:00
|
|
|
%doc doc/RelNotes/v%{version}.txt README
|
2017-11-14 14:55:12 +01:00
|
|
|
%if 0%{?sle_version} > 120200
|
|
|
|
%license NOTICE
|
|
|
|
%endif
|
2006-12-19 00:15:45 +01:00
|
|
|
%config /etc/mke2fs.conf
|
2020-11-20 12:13:53 +01:00
|
|
|
%if !0%{?usrmerged}
|
2006-12-19 00:15:45 +01:00
|
|
|
/sbin/badblocks
|
|
|
|
/sbin/debugfs
|
|
|
|
/sbin/dumpe2fs
|
2008-07-18 21:53:07 +02:00
|
|
|
/sbin/e2undo
|
2006-12-19 00:15:45 +01:00
|
|
|
/sbin/e2fsck
|
|
|
|
/sbin/e2label
|
2018-09-11 18:07:52 +02:00
|
|
|
/sbin/e2mmpstatus
|
2006-12-19 00:15:45 +01:00
|
|
|
/sbin/fsck.ext2
|
|
|
|
/sbin/fsck.ext3
|
2009-02-20 21:43:55 +01:00
|
|
|
/sbin/fsck.ext4
|
2006-12-19 00:15:45 +01:00
|
|
|
/sbin/mke2fs
|
|
|
|
/sbin/mkfs.ext2
|
|
|
|
/sbin/mkfs.ext3
|
2009-02-20 21:43:55 +01:00
|
|
|
/sbin/mkfs.ext4
|
2006-12-19 00:15:45 +01:00
|
|
|
/sbin/resize2fs
|
|
|
|
/sbin/tune2fs
|
|
|
|
/sbin/e2image
|
|
|
|
/sbin/logsave
|
2020-11-20 12:13:53 +01:00
|
|
|
%endif
|
2012-04-12 00:40:58 +02:00
|
|
|
%{_sbindir}/badblocks
|
|
|
|
%{_sbindir}/debugfs
|
|
|
|
%{_sbindir}/dumpe2fs
|
|
|
|
%{_sbindir}/e2undo
|
|
|
|
%{_sbindir}/e2fsck
|
|
|
|
%{_sbindir}/e2label
|
2018-09-11 18:07:52 +02:00
|
|
|
%{_sbindir}/e2mmpstatus
|
2012-04-12 00:40:58 +02:00
|
|
|
%{_sbindir}/fsck.ext2
|
|
|
|
%{_sbindir}/fsck.ext3
|
|
|
|
%{_sbindir}/fsck.ext4
|
|
|
|
%{_sbindir}/mke2fs
|
|
|
|
%{_sbindir}/mkfs.ext2
|
|
|
|
%{_sbindir}/mkfs.ext3
|
|
|
|
%{_sbindir}/mkfs.ext4
|
|
|
|
%{_sbindir}/resize2fs
|
|
|
|
%{_sbindir}/tune2fs
|
|
|
|
%{_sbindir}/e2image
|
|
|
|
%{_sbindir}/logsave
|
|
|
|
%{_bindir}/chattr
|
|
|
|
%{_bindir}/lsattr
|
|
|
|
%{_sbindir}/mklost+found
|
|
|
|
%{_sbindir}/filefrag
|
|
|
|
%{_sbindir}/e2freefrag
|
|
|
|
%{_sbindir}/e4defrag
|
2016-06-20 18:45:56 +02:00
|
|
|
%{_sbindir}/e4crypt
|
2013-12-10 21:59:42 +01:00
|
|
|
%if ! %{build_mini}
|
2006-12-19 00:15:45 +01:00
|
|
|
%{_infodir}/libext2fs.info.gz
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2006-12-19 00:15:45 +01:00
|
|
|
%{_mandir}/man1/chattr.1.gz
|
|
|
|
%{_mandir}/man1/lsattr.1.gz
|
2014-01-27 10:58:18 +01:00
|
|
|
%{_mandir}/man5/ext?.5.gz
|
2006-12-19 00:15:45 +01:00
|
|
|
%{_mandir}/man5/e2fsck.conf.5.gz
|
|
|
|
%{_mandir}/man5/mke2fs.conf.5.gz
|
|
|
|
%{_mandir}/man8/*.8.gz
|
|
|
|
|
2007-07-05 18:28:31 +02:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README.SUSE
|
2006-12-19 00:15:45 +01:00
|
|
|
|
2019-05-31 14:03:49 +02:00
|
|
|
%if %{build_mini}
|
|
|
|
%files -n e2fsprogs-scrub-mini
|
|
|
|
%else
|
|
|
|
%files -n e2fsprogs-scrub
|
|
|
|
%endif
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config /etc/e2scrub.conf
|
|
|
|
%{_sbindir}/e2scrub
|
|
|
|
%{_sbindir}/e2scrub_all
|
|
|
|
%if %{with systemd}
|
|
|
|
%{_libdir}/e2fsprogs/
|
|
|
|
%{_libdir}/e2fsprogs/e2scrub_fail
|
|
|
|
%{_unitdir}/e2scrub@.service
|
|
|
|
%{_unitdir}/e2scrub_all.service
|
|
|
|
%{_unitdir}/e2scrub_all.timer
|
|
|
|
%{_unitdir}/e2scrub_fail@.service
|
|
|
|
%{_unitdir}/e2scrub_reap.service
|
|
|
|
%endif
|
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%files -n libext2fs2-mini
|
|
|
|
%else
|
2007-07-05 18:28:31 +02:00
|
|
|
%files -n libext2fs2
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
%defattr(-, root, root)
|
2020-11-20 12:13:53 +01:00
|
|
|
%if !0%{?usrmerged}
|
2007-07-05 18:28:31 +02:00
|
|
|
/%{_lib}/libext2fs.so.*
|
|
|
|
/%{_lib}/libe2p.so.*
|
2020-11-20 12:13:53 +01:00
|
|
|
%endif
|
2012-04-12 00:40:58 +02:00
|
|
|
%{_libdir}/libext2fs.so.*
|
|
|
|
%{_libdir}/libe2p.so.*
|
2007-07-05 18:28:31 +02:00
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%files -n libext2fs-mini-devel
|
|
|
|
%else
|
2007-07-05 18:28:31 +02:00
|
|
|
%files -n libext2fs-devel
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libext2fs.so
|
|
|
|
%{_libdir}/libe2p.so
|
|
|
|
/usr/include/ext2fs
|
|
|
|
/usr/include/e2p
|
2006-12-19 00:15:45 +01:00
|
|
|
%_libdir/pkgconfig/e2p.pc
|
|
|
|
%_libdir/pkgconfig/ext2fs.pc
|
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%files -n libcom_err2-mini
|
|
|
|
%else
|
2007-07-05 18:28:31 +02:00
|
|
|
%files -n libcom_err2
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2006-12-19 00:15:45 +01:00
|
|
|
%defattr(-, root, root)
|
2020-11-20 12:13:53 +01:00
|
|
|
%if !0%{?usrmerged}
|
2006-12-19 00:15:45 +01:00
|
|
|
/%{_lib}/libcom_err.so.*
|
|
|
|
/%{_lib}/libss.so.*
|
2020-11-20 12:13:53 +01:00
|
|
|
%endif
|
2012-04-12 00:40:58 +02:00
|
|
|
%{_libdir}/libcom_err.so.*
|
|
|
|
%{_libdir}/libss.so.*
|
2007-07-05 18:28:31 +02:00
|
|
|
|
2013-12-10 21:59:42 +01:00
|
|
|
%if %{build_mini}
|
|
|
|
%files -n libcom_err-mini-devel
|
|
|
|
%else
|
2007-07-05 18:28:31 +02:00
|
|
|
%files -n libcom_err-devel
|
2013-12-10 21:59:42 +01:00
|
|
|
%endif
|
2007-07-05 18:28:31 +02:00
|
|
|
%defattr(-, root, root)
|
2006-12-19 00:15:45 +01:00
|
|
|
%_bindir/compile_et
|
|
|
|
%_bindir/mk_cmds
|
|
|
|
%{_libdir}/libcom_err.so
|
|
|
|
%{_libdir}/libss.so
|
|
|
|
%_libdir/pkgconfig/com_err.pc
|
|
|
|
%_libdir/pkgconfig/ss.pc
|
2012-01-16 20:28:03 +01:00
|
|
|
%_includedir/com_err.h
|
2006-12-19 00:15:45 +01:00
|
|
|
%_includedir/et
|
|
|
|
%_includedir/ss
|
2009-07-17 16:27:47 +02:00
|
|
|
%_datadir/et
|
|
|
|
%_datadir/ss
|
2007-07-05 18:28:31 +02:00
|
|
|
%{_mandir}/man1/compile_et.1.gz
|
|
|
|
%{_mandir}/man1/mk_cmds.1.gz
|
|
|
|
%{_mandir}/man3/com_err.3.gz
|
2006-12-19 00:15:45 +01:00
|
|
|
|
2015-08-05 14:31:46 +02:00
|
|
|
%if ! %{build_mini}
|
|
|
|
%files -n libcom_err-devel-static
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libcom_err.a
|
|
|
|
%{_libdir}/libss.a
|
|
|
|
|
|
|
|
%files -n libext2fs-devel-static
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libext2fs.a
|
|
|
|
%{_libdir}/libe2p.a
|
|
|
|
%endif
|
|
|
|
|
2007-03-29 00:30:07 +02:00
|
|
|
%changelog
|