2007-01-16 00:42:30 +01:00
|
|
|
#
|
2011-10-15 07:09:26 +02:00
|
|
|
# spec file for package xfsprogs
|
2007-01-16 00:42:30 +01:00
|
|
|
#
|
2021-01-21 12:16:36 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2007-01-16 00:42:30 +01:00
|
|
|
#
|
2008-09-02 18:22:58 +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.
|
|
|
|
|
2018-11-19 16:37:09 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:42:30 +01:00
|
|
|
#
|
|
|
|
|
2012-03-15 14:55:10 +01:00
|
|
|
|
2020-08-19 15:10:51 +02:00
|
|
|
%define _dracutmodulesdir %{_prefix}/lib/dracut/modules.d
|
2018-05-25 05:50:13 +02:00
|
|
|
# make sure we use systemd services on products where it is available
|
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
%bcond_without systemd
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
%else
|
2018-05-25 05:50:13 +02:00
|
|
|
%bcond_with systemd
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
%endif
|
2018-05-25 05:50:13 +02:00
|
|
|
%define libname libhandle1
|
2018-07-20 02:13:50 +02:00
|
|
|
|
2007-01-16 00:42:30 +01:00
|
|
|
Name: xfsprogs
|
2021-05-28 00:24:44 +02:00
|
|
|
Version: 5.12.0
|
2015-03-19 15:44:17 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Utilities for managing the XFS file system
|
2018-03-08 11:19:43 +01:00
|
|
|
License: GPL-2.0-or-later
|
2015-03-19 15:44:17 +01:00
|
|
|
Group: System/Filesystems
|
2020-01-15 20:09:05 +01:00
|
|
|
URL: https://xfs.wiki.kernel.org/
|
2017-05-23 20:14:04 +02:00
|
|
|
Source0: https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-%{version}.tar.xz
|
|
|
|
Source1: https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-%{version}.tar.sign
|
2015-03-19 15:44:17 +01:00
|
|
|
Source2: %{name}.keyring
|
2017-05-23 20:14:04 +02:00
|
|
|
Source3: module-setup.sh.in
|
|
|
|
Source4: dracut-fsck-help.txt
|
2015-03-19 15:44:17 +01:00
|
|
|
Patch0: xfsprogs-docdir.diff
|
2018-09-11 11:46:02 +02:00
|
|
|
Patch2: 0001-repair-shift-inode-back-into-place-if-corrupted-by-b.patch
|
2017-11-17 21:03:23 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2015-11-18 22:13:09 +01:00
|
|
|
BuildRequires: libblkid-devel
|
2021-01-21 12:16:36 +01:00
|
|
|
BuildRequires: libedit-devel
|
|
|
|
BuildRequires: libinih-devel
|
2018-05-25 05:50:13 +02:00
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xz
|
2015-03-19 15:44:17 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2018-05-25 05:50:13 +02:00
|
|
|
Requires(post): coreutils
|
2007-04-04 20:13:27 +02:00
|
|
|
# hint for ZYPP
|
|
|
|
Supplements: filesystem(xfs)
|
2016-01-04 10:27:31 +01:00
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
BuildRequires: suse-module-tools
|
|
|
|
%endif
|
2018-05-25 05:50:13 +02:00
|
|
|
%if %{with systemd}
|
2018-04-22 15:06:05 +02:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
%endif
|
2021-01-21 12:16:36 +01:00
|
|
|
Suggests: xfsprogs-scrub
|
2018-05-25 05:50:13 +02:00
|
|
|
|
2007-01-16 00:42:30 +01:00
|
|
|
%description
|
|
|
|
A set of commands to use the XFS file system, including mkfs.xfs.
|
|
|
|
|
|
|
|
XFS is a high performance journaling file system which originated on
|
|
|
|
the SGI IRIX platform. It is completely multithreaded. It can support
|
|
|
|
large files and large file systems, extended attributes, and variable
|
2018-03-08 11:38:33 +01:00
|
|
|
block sizes. It is extent based and makes extensive use of Btrees
|
2007-01-16 00:42:30 +01:00
|
|
|
(directories, extents, and free space) to aid both performance and
|
|
|
|
scalability.
|
|
|
|
|
2020-01-15 20:09:05 +01:00
|
|
|
Refer to the documentation at https://xfs.wiki.kernel.org/ for complete
|
|
|
|
details. This implementation is on-disk compatible with the IRIX
|
|
|
|
version of XFS.
|
2007-01-16 00:42:30 +01:00
|
|
|
|
2018-05-25 05:50:13 +02:00
|
|
|
%package -n %{libname}
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
Summary: XFS Filesystem-specific Shared library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
2018-05-25 05:50:13 +02:00
|
|
|
%description -n %{libname}
|
|
|
|
%{libname} contains the shared libraries needed by xfsprogs
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
to run xfsprogs programs.
|
|
|
|
|
2018-05-25 05:50:13 +02:00
|
|
|
%{libname} is always needed by xfsprogs. If you want to use this
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
library for your own new xfs tools install xfsprogs-devel.
|
|
|
|
|
2007-01-16 00:42:30 +01:00
|
|
|
%package devel
|
|
|
|
Summary: XFS Filesystem-specific Static Libraries and Headers
|
2012-02-15 14:37:22 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-07-09 20:30:08 +02:00
|
|
|
Requires: %{libname} = %{version}
|
2018-07-20 02:13:50 +02:00
|
|
|
Requires: libuuid-devel
|
2015-03-19 15:44:17 +01:00
|
|
|
Requires: xfsprogs = %{version}
|
2007-01-16 00:42:30 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
xfsprogs-devel contains the libraries and header files needed to
|
|
|
|
develop XFS file system-specific programs.
|
|
|
|
|
|
|
|
You should install xfsprogs-devel if you want to develop XFS file
|
|
|
|
system-specific programs. If you install xfsprogs-devel, you will also
|
|
|
|
want to install xfsprogs.
|
|
|
|
|
2020-01-15 20:09:05 +01:00
|
|
|
%package -n xfsprogs-scrub
|
2021-01-21 12:16:36 +01:00
|
|
|
Summary: XFS scrubbing scripts and service files
|
2020-01-15 20:09:05 +01:00
|
|
|
Group: System/Filesystems
|
2021-01-21 12:16:36 +01:00
|
|
|
Requires: xfsprogs
|
2020-01-15 20:09:05 +01:00
|
|
|
|
|
|
|
%description -n xfsprogs-scrub
|
|
|
|
Scripts and systemd service files for background scrubbing of metadata
|
|
|
|
on xfs filesystems.
|
|
|
|
|
2007-01-16 00:42:30 +01:00
|
|
|
%prep
|
2007-04-04 20:13:27 +02:00
|
|
|
%setup -q
|
2017-12-21 17:10:43 +01:00
|
|
|
%patch0 -p1
|
2018-09-11 11:46:02 +02:00
|
|
|
%patch2 -p1
|
2007-01-16 00:42:30 +01:00
|
|
|
|
|
|
|
%build
|
2017-11-17 21:03:23 +01:00
|
|
|
aclocal -I m4
|
|
|
|
autoconf
|
|
|
|
|
2007-01-16 00:42:30 +01:00
|
|
|
export OPTIMIZER="-fPIC"
|
|
|
|
export DEBUG=-DNDEBUG
|
2015-03-19 15:44:17 +01:00
|
|
|
export LIBUUID=%{_libdir}/libuuid.a
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
|
2018-05-25 05:50:13 +02:00
|
|
|
%configure \
|
2020-07-28 12:42:12 +02:00
|
|
|
--enable-editline=yes \
|
2018-05-25 05:50:13 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
--with-systemd-unit-dir=%{_unitdir} \
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
%endif
|
2018-05-25 05:50:13 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
--disable-lto \
|
|
|
|
%endif
|
|
|
|
%{nil}
|
2016-01-04 10:27:31 +01:00
|
|
|
make %{?_smp_mflags} V=1
|
2007-01-16 00:42:30 +01:00
|
|
|
|
2017-05-23 20:14:04 +02:00
|
|
|
PATH_TO_HELP="%{_dracutmodulesdir}/95suse-xfs/dracut-fsck-help.txt"
|
|
|
|
sed -e "s|@@PATH_TO_HELP@@|$PATH_TO_HELP|" %{SOURCE3} > module-setup.sh
|
|
|
|
|
2007-01-16 00:42:30 +01:00
|
|
|
%install
|
2015-03-19 15:44:17 +01:00
|
|
|
export DIST_ROOT=%{buildroot}
|
2018-05-25 05:50:13 +02:00
|
|
|
%make_install
|
2015-03-19 15:44:17 +01:00
|
|
|
make install-dev
|
2018-05-25 05:50:13 +02:00
|
|
|
# remove the static libs and libtool archive
|
|
|
|
rm -rf %{buildroot}/%{_lib}/*.{la,a}
|
|
|
|
rm -rf %{buildroot}/%{_libdir}/*.{la,a}
|
2015-03-19 15:44:17 +01:00
|
|
|
mv %{buildroot}/%{_lib}/* %{buildroot}%{_libdir}
|
|
|
|
%find_lang %{name}
|
2017-05-23 20:14:04 +02:00
|
|
|
install -m 0755 -d %{buildroot}/%{_dracutmodulesdir}/95suse-xfs/
|
|
|
|
install -m 0755 module-setup.sh %{buildroot}/%{_dracutmodulesdir}/95suse-xfs/
|
|
|
|
install -m 0644 %{SOURCE4} %{buildroot}/%{_dracutmodulesdir}/95suse-xfs/
|
2007-01-16 00:42:30 +01:00
|
|
|
|
2018-05-25 05:50:13 +02:00
|
|
|
%if %{with systemd}
|
2020-01-15 20:09:05 +01:00
|
|
|
%pre -n xfsprogs-scrub
|
2018-05-25 05:50:13 +02:00
|
|
|
%service_add_pre xfs_scrub_all.service xfs_scrub_all.timer
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
|
2020-01-15 20:09:05 +01:00
|
|
|
%post -n xfsprogs-scrub
|
2018-05-25 05:50:13 +02:00
|
|
|
%service_add_post xfs_scrub_all.service xfs_scrub_all.timer
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
|
2020-01-15 20:09:05 +01:00
|
|
|
%preun -n xfsprogs-scrub
|
2018-05-25 05:50:13 +02:00
|
|
|
%service_del_preun xfs_scrub_all.service xfs_scrub_all.timer
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
|
2020-01-15 20:09:05 +01:00
|
|
|
%postun -n xfsprogs-scrub
|
2018-05-25 05:50:13 +02:00
|
|
|
%service_del_postun xfs_scrub_all.service xfs_scrub_all.timer
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
%endif
|
|
|
|
|
2018-05-25 05:50:13 +02:00
|
|
|
%post -n %{libname}
|
2016-01-04 10:27:31 +01:00
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
2018-05-25 05:50:13 +02:00
|
|
|
%postun -n %{libname}
|
2016-01-04 10:27:31 +01:00
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
2018-05-25 05:50:13 +02:00
|
|
|
%posttrans -n %{libname}
|
2016-01-04 10:27:31 +01:00
|
|
|
%{?regenerate_initrd_posttrans}
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
|
2015-03-19 15:44:17 +01:00
|
|
|
%files -f %{name}.lang
|
2007-01-16 00:42:30 +01:00
|
|
|
%defattr(-,root,root,755)
|
2012-02-15 14:37:22 +01:00
|
|
|
#UsrMerge
|
2007-06-22 18:53:51 +02:00
|
|
|
/sbin/*
|
2012-02-15 14:37:22 +01:00
|
|
|
#EndUsrMerge
|
2015-03-19 15:44:17 +01:00
|
|
|
%{_sbindir}/*
|
2020-01-15 20:09:05 +01:00
|
|
|
%exclude %{_sbindir}/xfs_scrub_all
|
2018-05-25 05:50:13 +02:00
|
|
|
%{_mandir}/man[258]/*
|
2015-03-19 15:44:17 +01:00
|
|
|
%doc %{_defaultdocdir}/%{name}
|
2018-05-25 05:50:13 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2018-07-20 02:13:50 +02:00
|
|
|
# SLE12 doesn't do %license
|
|
|
|
%if 0%{?suse_version} > 1315 || 0%{?is_opensuse}
|
2018-10-20 02:34:52 +02:00
|
|
|
%license LICENSES/GPL-2.0 LICENSES/LGPL-2.1
|
2018-05-25 05:50:13 +02:00
|
|
|
%endif
|
2018-07-20 02:13:50 +02:00
|
|
|
%endif
|
2020-08-19 15:10:51 +02:00
|
|
|
%dir %{_prefix}/lib/dracut
|
|
|
|
%dir %{_prefix}/lib/dracut/modules.d
|
2017-05-23 20:14:04 +02:00
|
|
|
%dir %{_dracutmodulesdir}/95suse-xfs/
|
|
|
|
%{_dracutmodulesdir}/95suse-xfs/dracut-fsck-help.txt
|
|
|
|
%{_dracutmodulesdir}/95suse-xfs/module-setup.sh
|
2007-06-22 18:53:51 +02:00
|
|
|
|
2018-05-25 05:50:13 +02:00
|
|
|
%files -n %{libname}
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%{_libdir}/libhandle.so.*
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
|
|
|
|
%files -n xfsprogs-devel
|
2007-01-16 00:42:30 +01:00
|
|
|
%defattr(-,root,root,755)
|
2015-03-19 15:44:17 +01:00
|
|
|
%{_includedir}/xfs
|
Accepting request 605498 from home:mcgrof:branches:filesystems
- Fix OpenSUSE Tumbleweed package build (bsc#1091300) due to the libhandle1
library shared object (so) name expectations, this is documented here:
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy
- Move systemd check to use a macro, to make it clear when the check is
used and for what purpose exactly. Perhaps this should be moved later
into a generic OpenSUSE/SUSE macro as a generic check as I suspect tons
of other rpms will likely need the same.
- Address -Werror errors on old compilers, for the life of me I can't see
how xfsprogs is at fault, so just disable -Werror on older compilers for
now. In the future we can consider adding a work around for the compiler
instead of disabling -Werror entirely, but for now this is the best I can
come up with.
- Drop make_xfs_scrub_interp_explicit.patch, this is now upstream
- Update to v4.16.1 (using verbiage from xfsprogs/doc/CHANGES now):
* fsck.xfs: remove bashism which may interfere with boot (Eric Sandeen)
* platforms: warn of impending deprecation of irix, freebsd, darwin
* mkfs.xfs : enable sparse inodes by default (Darrick Wong)
* fsck.xfs: allow forced boot-time repairs using xfs_repair (Jan Tulak)
* xfs_repair: new -e flag alters exit code for fixed errors (Jan Tulak)
* xfs_repair: fix to allow zeroing of corrupt log (Xiao Yang)
* xfs_repair: remove old dead code (Eric Sandeen)
* xfs_io: fix operation time reporting (Dave Chinner)
* xfs_io: add RWF_DSYNC support to pwrite (Dave Chinner)
* xfs_io: support a basic extent swap command (Brian Foster)
* xfs_scrub: Many updates, still experimental (Darrick Wong)
* xfs_db: print transaction reservation type information
* libxfs: framework to detect memory leaks (Eric Sandeen)
* misc: Fix up new warnings from gcc 7.3 (Darrick Wong)
* misc: enable link time optimization, if requested (Darrick Wong)
* misc: enable retpolines across all xfsprogs utilities (Darrick Wong)
OBS-URL: https://build.opensuse.org/request/show/605498
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=68
2018-05-09 18:22:52 +02:00
|
|
|
%{_libdir}/libhandle.so
|
2015-03-19 15:44:17 +01:00
|
|
|
%{_mandir}/man3/*
|
2008-02-04 17:44:01 +01:00
|
|
|
|
2020-01-15 20:09:05 +01:00
|
|
|
%files -n xfsprogs-scrub
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%dir %{_libdir}/xfsprogs/
|
|
|
|
%{_libdir}/xfsprogs/xfs_scrub_all.cron
|
|
|
|
%{_sbindir}/xfs_scrub_all
|
|
|
|
%if %{with systemd}
|
|
|
|
%{_libdir}/xfsprogs/xfs_scrub_fail
|
|
|
|
%{_unitdir}/xfs_scrub@.service
|
|
|
|
%{_unitdir}/xfs_scrub_all.service
|
|
|
|
%{_unitdir}/xfs_scrub_all.timer
|
|
|
|
%{_unitdir}/xfs_scrub_fail@.service
|
|
|
|
%endif
|
|
|
|
|
2007-04-04 20:13:27 +02:00
|
|
|
%changelog
|