2009-03-01 04:28:54 +01:00
|
|
|
#
|
2011-03-15 10:25:29 +01:00
|
|
|
# spec file for package btrfsprogs
|
2009-03-01 04:28:54 +01:00
|
|
|
#
|
2022-01-14 23:12:55 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2009-03-01 04:28:54 +01: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-12-11 15:43:39 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-03-01 04:28:54 +01:00
|
|
|
#
|
|
|
|
|
2011-03-15 10:25:29 +01:00
|
|
|
|
2016-09-05 21:15:56 +02:00
|
|
|
%define udev_with_btrfs_builtin 190
|
2020-01-30 09:30:39 +01:00
|
|
|
%define udev_version %(pkg-config --modversion udev)
|
2016-09-05 21:15:56 +02:00
|
|
|
%define package_udev_rules %{udev_version} >= %{udev_with_btrfs_builtin}
|
2019-10-23 15:32:45 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2016-09-05 21:15:56 +02:00
|
|
|
|
2015-11-08 14:35:08 +01:00
|
|
|
# enable building of btrfsprogs-static
|
|
|
|
%if 0%{?suse_version} <= 1310 || 0%{?suse_version} == 1315
|
|
|
|
%define build_static 0
|
|
|
|
%else
|
2018-02-18 11:40:32 +01:00
|
|
|
%define build_static 1
|
2015-11-08 14:35:08 +01:00
|
|
|
%endif
|
|
|
|
|
2018-02-18 11:40:32 +01:00
|
|
|
# the tarball contains prebuilt documentation
|
2019-05-22 10:54:43 +02:00
|
|
|
%define build_docs 1
|
2018-02-18 11:40:32 +01:00
|
|
|
|
2020-05-01 11:08:34 +02:00
|
|
|
%define _dracutmodulesdir %(pkg-config --variable dracutmodulesdir dracut)
|
2019-02-08 12:05:30 +01:00
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
Name: btrfsprogs
|
2022-11-03 19:13:32 +01:00
|
|
|
Version: 6.0
|
2012-02-21 12:15:43 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Utilities for the Btrfs filesystem
|
2018-04-20 17:24:50 +02:00
|
|
|
License: GPL-2.0-only
|
2009-03-01 04:28:54 +01:00
|
|
|
Group: System/Filesystems
|
2022-04-30 00:45:09 +02:00
|
|
|
URL: https://btrfs.wiki.kernel.org/
|
2014-09-25 09:33:23 +02:00
|
|
|
#Git-Web: http://git.kernel.org/cgit/linux/kernel/git/kdave/btrfs-progs.git
|
|
|
|
#Git-Clone: git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs
|
2014-11-29 08:39:46 +01:00
|
|
|
Source: https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v%{version}.tar.gz
|
2022-04-30 00:45:09 +02:00
|
|
|
Source100: https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v%{version}.tar.sign
|
|
|
|
Source101: btrfsprogs.keyring
|
2014-11-29 08:39:46 +01:00
|
|
|
# support for mkinitrd in < 13.1
|
2012-02-21 12:15:43 +01:00
|
|
|
Source1: boot-btrfs.sh
|
2019-04-04 12:02:10 +02:00
|
|
|
Source2: module-setup.sh.in
|
2019-02-08 12:05:30 +01:00
|
|
|
Source3: dracut-fsck-help.txt
|
2013-07-29 17:35:55 +02:00
|
|
|
Source4: setup-btrfs.sh
|
2022-01-21 01:25:06 +01:00
|
|
|
# Alias that matches the upstream project name
|
|
|
|
Provides: btrfs-progs = %{version}-%{release}
|
|
|
|
Provides: btrfs-progs(%_arch) = %{version}-%{release}
|
2014-04-14 06:43:24 +02:00
|
|
|
|
2017-09-18 19:50:45 +02:00
|
|
|
Patch1: mkfs-default-features.patch
|
2014-09-08 21:28:13 +02:00
|
|
|
|
2018-02-18 11:40:32 +01:00
|
|
|
%if %build_docs
|
2022-04-30 00:45:09 +02:00
|
|
|
BuildRequires: python3-Sphinx
|
2018-02-18 11:40:32 +01:00
|
|
|
%endif
|
2015-03-16 09:37:24 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2019-02-08 12:05:30 +01:00
|
|
|
BuildRequires: dracut
|
2013-06-18 10:28:54 +02:00
|
|
|
BuildRequires: libattr-devel
|
2013-07-29 17:35:55 +02:00
|
|
|
BuildRequires: libblkid-devel
|
2012-02-21 12:15:43 +01:00
|
|
|
BuildRequires: libext2fs-devel
|
2022-08-09 15:25:59 +02:00
|
|
|
%if 0%{?suse_version} == 1500
|
2017-12-06 08:53:10 +01:00
|
|
|
BuildRequires: libreiserfscore-devel >= 3.6.27
|
|
|
|
Requires: libreiserfscore0 >= 3.6.27
|
2022-01-21 01:25:06 +01:00
|
|
|
%endif
|
2012-02-21 12:15:43 +01:00
|
|
|
BuildRequires: libuuid-devel
|
2018-01-16 09:31:22 +01:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
BuildRequires: libzstd-devel
|
|
|
|
%endif
|
2012-02-21 12:15:43 +01:00
|
|
|
BuildRequires: lzo-devel
|
2015-03-16 09:37:24 +01:00
|
|
|
BuildRequires: pkg-config
|
2014-11-29 08:39:46 +01:00
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
BuildRequires: suse-module-tools
|
|
|
|
%endif
|
2016-09-05 21:15:56 +02:00
|
|
|
BuildRequires: libudev-devel
|
2021-11-12 15:59:10 +01:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2018-02-18 11:40:32 +01:00
|
|
|
%if %build_docs
|
2014-06-18 07:50:19 +02:00
|
|
|
BuildRequires: xmlto
|
2018-02-18 11:40:32 +01:00
|
|
|
%endif
|
2022-01-21 01:25:06 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2012-02-21 12:15:43 +01:00
|
|
|
BuildRequires: zlib-devel
|
2015-12-18 21:52:31 +01:00
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
Requires(post): coreutils
|
2021-08-23 10:20:21 +02:00
|
|
|
Requires(postun):coreutils
|
2015-12-18 21:52:31 +01:00
|
|
|
%endif
|
2013-06-18 10:28:54 +02:00
|
|
|
Supplements: filesystem(btrfs)
|
2016-04-03 23:05:27 +02:00
|
|
|
Recommends: btrfsmaintenance
|
2016-09-05 21:15:56 +02:00
|
|
|
%if %{package_udev_rules}
|
|
|
|
Requires: btrfsprogs-udev-rules
|
|
|
|
%endif
|
2014-04-09 18:17:26 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-03-01 04:28:54 +01:00
|
|
|
|
|
|
|
%description
|
2011-08-04 09:32:48 +02:00
|
|
|
Utilities needed to create and maintain btrfs file systems under Linux.
|
|
|
|
|
2015-11-08 14:35:08 +01:00
|
|
|
%if %build_static
|
|
|
|
%package -n btrfsprogs-static
|
|
|
|
Summary: Static build of utilities for the Btrfs filesystem
|
|
|
|
Group: System/Filesystems
|
2022-01-21 01:25:06 +01:00
|
|
|
Provides: btrfs-progs-static = %{version}-%{release}
|
|
|
|
Provides: btrfs-progs-static(%_arch) = %{version}-%{release}
|
2015-11-08 14:35:08 +01:00
|
|
|
BuildRequires: glibc-devel-static
|
|
|
|
BuildRequires: libblkid-devel-static
|
|
|
|
BuildRequires: libcom_err-devel-static
|
|
|
|
BuildRequires: libext2fs-devel-static
|
|
|
|
BuildRequires: libuuid-devel-static
|
2018-06-15 14:35:06 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
2018-02-18 11:40:32 +01:00
|
|
|
BuildRequires: libzstd-devel-static
|
2018-06-15 14:35:06 +02:00
|
|
|
%endif
|
2015-11-08 14:35:08 +01:00
|
|
|
BuildRequires: lzo-devel-static
|
|
|
|
BuildRequires: zlib-devel-static
|
|
|
|
|
|
|
|
%description -n btrfsprogs-static
|
|
|
|
Static build of utilities needed to create and maintain btrfs file systems
|
|
|
|
under Linux. Suitable for limited or rescue environments.
|
|
|
|
|
|
|
|
Warning: the zlib and lzo libraries are statically linked in and may lack
|
|
|
|
important updates
|
|
|
|
%endif
|
|
|
|
|
2013-07-29 17:35:55 +02:00
|
|
|
%package -n libbtrfs0
|
|
|
|
Summary: Library for interacting with Btrfs
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libbtrfs0
|
|
|
|
This package contains the libbtrfs.so shared library needed for some
|
|
|
|
applications to interface with btrfs.
|
|
|
|
|
|
|
|
%package -n libbtrfs-devel
|
|
|
|
Summary: Include Files and Libraries for developing with Btrfs
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-04-14 06:43:24 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: libbtrfs0 = %{version}
|
2013-07-29 17:35:55 +02:00
|
|
|
|
|
|
|
%description -n libbtrfs-devel
|
|
|
|
This package contains the libraries and headers files for developers to
|
2018-04-20 17:24:50 +02:00
|
|
|
build applications to interface with Btrfs.
|
2013-07-29 17:35:55 +02:00
|
|
|
|
2016-09-05 21:15:56 +02:00
|
|
|
# rpm < 4.6.0 (SLE11 uses 4.4) doesn't support noarch subpackages.
|
|
|
|
# Fortunately, it doesn't use systemd either so we can just skip it.
|
|
|
|
%if %{package_udev_rules}
|
|
|
|
%package udev-rules
|
|
|
|
Summary: Udev rules for configuring btrfs file systems
|
|
|
|
Group: System/Kernel
|
|
|
|
Conflicts: udev < %{udev_with_btrfs_builtin}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2018-05-06 14:57:50 +02:00
|
|
|
%description udev-rules
|
|
|
|
This package contains the udev rule file for configuring device mapper
|
|
|
|
devices that are components of btrfs file systems. It is meant to be
|
|
|
|
used with versions of udev that contain the "built-in" btrfs command
|
|
|
|
(v190 and newer). Older versions of udev will call the version of
|
|
|
|
"btrfs ready" contained in the btrfsprogs package, which does the right
|
|
|
|
thing.
|
|
|
|
%endif
|
|
|
|
|
2018-04-20 17:24:50 +02:00
|
|
|
%package -n libbtrfsutil1
|
|
|
|
Summary: Utility library for interacting with Btrfs
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libbtrfsutil1
|
|
|
|
This package contains the libbtrfsutil.so shared library. This library is
|
|
|
|
LGPL unlike libbtrfs.so and can be used by applications to interact with Btrfs
|
|
|
|
filesystems.
|
|
|
|
|
|
|
|
%package -n libbtrfsutil-devel
|
|
|
|
Summary: Include Files and Libraries for developing with libbtrfsutil
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: libbtrfsutil1 = %{version}
|
|
|
|
|
|
|
|
%description -n libbtrfsutil-devel
|
|
|
|
This package contains the libraries and headers files for developers to
|
|
|
|
build applications to interface with Btrfs using libbtrfsutil.
|
|
|
|
|
2019-10-23 15:32:45 +02:00
|
|
|
%package -n python-btrfsutil
|
|
|
|
Summary: Python bindings for developing with libbtrfsutil
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: libbtrfsutil1 = %{version}
|
|
|
|
Requires: python3
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: pkgconfig(python3)
|
|
|
|
|
|
|
|
%description -n python-btrfsutil
|
|
|
|
This package contains the python bindings to build applications to interface
|
|
|
|
with Btrfs using libbtrfsutil.
|
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
%prep
|
2014-11-29 08:39:46 +01:00
|
|
|
%setup -q -n btrfs-progs-v%{version}
|
2017-09-18 19:50:45 +02:00
|
|
|
%patch1 -p1
|
2011-07-28 19:55:26 +02:00
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
%build
|
2015-03-16 09:37:24 +01:00
|
|
|
./autogen.sh
|
2016-11-05 21:23:30 +01:00
|
|
|
|
2018-01-16 09:31:22 +01:00
|
|
|
%configure \
|
2019-10-23 15:32:45 +02:00
|
|
|
--enable-python \
|
2018-08-15 10:29:45 +02:00
|
|
|
%if !%{build_docs}
|
2018-02-18 11:40:32 +01:00
|
|
|
--disable-documentation \
|
|
|
|
%endif
|
2018-01-16 09:31:22 +01:00
|
|
|
%if 0%{?suse_version} <= 1500
|
2021-07-04 22:10:10 +02:00
|
|
|
--disable-zoned \
|
2018-01-16 09:31:22 +01:00
|
|
|
--disable-zstd
|
|
|
|
%endif
|
|
|
|
|
2015-11-08 14:35:08 +01:00
|
|
|
make V=1 %{?_smp_mflags} all \
|
2018-08-15 10:29:45 +02:00
|
|
|
%if %{build_static}
|
2015-11-08 14:35:08 +01:00
|
|
|
static
|
|
|
|
%endif
|
2012-03-20 11:26:08 +01:00
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
%install
|
2015-11-08 14:35:08 +01:00
|
|
|
make install \
|
2018-08-15 10:29:45 +02:00
|
|
|
%if %{build_static}
|
2015-11-08 14:35:08 +01:00
|
|
|
install-static \
|
|
|
|
%endif
|
2019-10-23 15:32:45 +02:00
|
|
|
DESTDIR=%{buildroot} prefix=%{_prefix} bindir=%{_sbindir} mandir=%{_mandir} libdir=%{_libdir} \
|
|
|
|
install_python
|
2015-11-08 14:35:08 +01:00
|
|
|
|
2018-08-15 10:29:45 +02:00
|
|
|
%if !%{build_docs}
|
2018-02-18 11:40:32 +01:00
|
|
|
cd Documentation
|
2018-12-11 15:43:39 +01:00
|
|
|
install -m 0755 -d %{buildroot}/%{_mandir}/man5
|
|
|
|
install -m 0755 -d %{buildroot}/%{_mandir}/man8
|
|
|
|
install -m 0644 *.5 %{buildroot}/%{_mandir}/man5
|
|
|
|
install -m 0644 *.8 %{buildroot}/%{_mandir}/man8
|
2018-02-18 11:40:32 +01:00
|
|
|
cd ..
|
|
|
|
%endif
|
|
|
|
|
2018-08-15 10:29:45 +02:00
|
|
|
%if %{build_static}
|
2015-11-08 14:35:08 +01:00
|
|
|
make install-static DESTDIR=%{buildroot} prefix=%{_prefix} bindir=%{_sbindir} mandir=%{_mandir} libdir=%{_libdir}
|
|
|
|
%endif
|
|
|
|
|
2014-04-09 18:17:26 +02:00
|
|
|
install -m 0755 -d %{buildroot}/%{_sbindir}
|
|
|
|
install -m 0755 -d %{buildroot}/%{_bindir}
|
2012-03-20 11:26:08 +01:00
|
|
|
# move some utilities out of /usr/sbin
|
2014-04-09 18:17:26 +02:00
|
|
|
mv %{buildroot}/%{_sbindir}/btrfs-map-logical %{buildroot}/%{_bindir}
|
2014-09-08 21:28:13 +02:00
|
|
|
# initrd rescue utilities
|
2014-04-09 18:17:26 +02:00
|
|
|
install -m 0755 btrfs-select-super %{buildroot}/%{_sbindir}
|
|
|
|
install -m 0755 btrfs-image %{buildroot}/%{_sbindir}
|
|
|
|
install -m 0755 btrfstune %{buildroot}/%{_sbindir}
|
|
|
|
install -m 0755 btrfs-find-root %{buildroot}/%{_sbindir}
|
2021-01-19 16:01:18 +01:00
|
|
|
%if !0%{?usrmerged}
|
2014-04-09 18:17:26 +02:00
|
|
|
install -m 0755 -d %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfs %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfs-convert %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfs-select-super %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfs-image %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfstune %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfsck %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfs-find-root %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/mkfs.btrfs %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/fsck.btrfs %{buildroot}/sbin
|
2021-01-19 16:01:18 +01:00
|
|
|
%endif
|
2014-11-29 08:39:46 +01:00
|
|
|
%if 0%{?suse_version} < 1310
|
2014-04-09 18:17:26 +02:00
|
|
|
install -d -m0755 %{buildroot}/lib/mkinitrd/scripts/
|
|
|
|
install -m 0755 %{SOURCE1} %{buildroot}/lib/mkinitrd/scripts/
|
|
|
|
install -m 0755 %{SOURCE4} %{buildroot}/lib/mkinitrd/scripts/
|
2014-11-29 08:39:46 +01:00
|
|
|
%endif
|
2013-07-29 17:35:55 +02:00
|
|
|
# don't install .a for now
|
2014-04-09 18:17:26 +02:00
|
|
|
rm -f %{buildroot}/%{_libdir}/*.a
|
2015-06-04 08:58:52 +02:00
|
|
|
# bash completion
|
|
|
|
install -m 0755 -d %{buildroot}/%{_datadir}/bash-completion/completions
|
|
|
|
install -m 0644 btrfs-completion %{buildroot}/%{_datadir}/bash-completion/completions/btrfs
|
2019-04-04 12:02:10 +02:00
|
|
|
sed -e 's,@@INSTALLDIR@@,%{_datadir}/%{name}/,;' %{SOURCE2} > module-setup.sh
|
|
|
|
install -m 0755 -D module-setup.sh %{buildroot}/%{_dracutmodulesdir}/95suse-btrfs/module-setup.sh
|
|
|
|
rm -f module-setup.sh
|
|
|
|
install -m 0644 -D %{SOURCE3} %{buildroot}/%{_datadir}/%{name}/dracut-fsck-help.txt
|
2013-07-29 17:35:55 +02:00
|
|
|
|
2014-06-18 07:50:19 +02:00
|
|
|
%if 0%{!?for_debugging:1}
|
|
|
|
DEBUG_FILES="/sbin/btrfs-find-root
|
|
|
|
%{_sbindir}/btrfs-find-root
|
2018-12-11 15:43:39 +01:00
|
|
|
%{_mandir}/man8/btrfs-find-root.8
|
2014-06-18 07:50:19 +02:00
|
|
|
/sbin/btrfs-select-super
|
|
|
|
%{_sbindir}/btrfs-select-super"
|
|
|
|
for file in $DEBUG_FILES; do
|
|
|
|
rm -f %{buildroot}$file
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
2013-07-29 17:35:55 +02:00
|
|
|
%post -n libbtrfs0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libbtrfs0 -p /sbin/ldconfig
|
2011-03-15 10:25:19 +01:00
|
|
|
|
2018-04-20 17:24:50 +02:00
|
|
|
%post -n libbtrfsutil1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libbtrfsutil1 -p /sbin/ldconfig
|
|
|
|
|
2014-11-29 08:39:46 +01:00
|
|
|
%if 0%{?suse_version} >= 1310
|
2015-12-18 21:52:31 +01:00
|
|
|
%post
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
2014-11-29 08:39:46 +01:00
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
%endif
|
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2019-01-26 22:19:09 +01:00
|
|
|
%license COPYING
|
2019-04-04 12:02:10 +02:00
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}/dracut-fsck-help.txt
|
|
|
|
%dir %{_dracutmodulesdir}/95suse-btrfs/
|
2019-02-08 12:05:30 +01:00
|
|
|
%{_dracutmodulesdir}/95suse-btrfs/module-setup.sh
|
2021-01-19 16:01:18 +01:00
|
|
|
%if !0%{?usrmerged}
|
2012-02-21 12:15:43 +01:00
|
|
|
/sbin/fsck.btrfs
|
|
|
|
# mkinitrd utils
|
2011-03-15 10:25:19 +01:00
|
|
|
/sbin/btrfs
|
2010-01-29 17:42:56 +01:00
|
|
|
/sbin/btrfs-convert
|
2012-02-21 12:15:43 +01:00
|
|
|
/sbin/btrfs-image
|
|
|
|
/sbin/btrfstune
|
2009-07-28 00:08:56 +02:00
|
|
|
/sbin/btrfsck
|
|
|
|
/sbin/mkfs.btrfs
|
2021-01-19 16:01:18 +01:00
|
|
|
%endif
|
2012-03-20 11:26:08 +01:00
|
|
|
%{_sbindir}/btrfs
|
|
|
|
%{_sbindir}/btrfs-convert
|
|
|
|
%{_sbindir}/btrfs-image
|
|
|
|
%{_sbindir}/btrfstune
|
|
|
|
%{_sbindir}/btrfsck
|
|
|
|
%{_sbindir}/fsck.btrfs
|
|
|
|
%{_sbindir}/mkfs.btrfs
|
2014-11-29 08:39:46 +01:00
|
|
|
%if 0%{?suse_version} < 1310
|
2014-04-30 15:00:45 +02:00
|
|
|
%dir /lib/mkinitrd
|
|
|
|
%dir /lib/mkinitrd/scripts
|
2012-02-21 12:15:43 +01:00
|
|
|
/lib/mkinitrd/scripts/boot-btrfs.sh
|
2013-07-29 17:35:55 +02:00
|
|
|
/lib/mkinitrd/scripts/setup-btrfs.sh
|
2014-11-29 08:39:46 +01:00
|
|
|
%endif
|
2014-04-09 18:17:26 +02:00
|
|
|
%{_bindir}/btrfs-map-logical
|
2018-08-15 10:29:45 +02:00
|
|
|
%{_mandir}/man8/btrfs-image.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfsck.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/fsck.btrfs.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/mkfs.btrfs.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs.8%{?ext_man}
|
|
|
|
%{_mandir}/man5/btrfs.5%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-convert.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-map-logical.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfstune.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-balance.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-check.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-device.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-filesystem.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-inspect-internal.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-property.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-qgroup.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-quota.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-receive.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-replace.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-rescue.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-restore.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-scrub.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-send.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-subvolume.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/btrfs-select-super.8%{?ext_man}
|
2015-06-04 08:58:52 +02:00
|
|
|
%dir %{_datadir}/bash-completion
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
|
|
|
%{_datadir}/bash-completion/completions/btrfs
|
2014-06-18 07:50:19 +02:00
|
|
|
|
|
|
|
%if 0%{?for_debugging:1}
|
|
|
|
/sbin/btrfs-find-root
|
|
|
|
%{_sbindir}/btrfs-find-root
|
2018-08-15 10:29:45 +02:00
|
|
|
%{_mandir}/man8/btrfs-find-root.8%{?ext_man}
|
2014-06-18 07:50:19 +02:00
|
|
|
/sbin/btrfs-select-super
|
|
|
|
%{_sbindir}/btrfs-select-super
|
|
|
|
%endif
|
2013-07-29 17:35:55 +02:00
|
|
|
|
2018-08-15 10:29:45 +02:00
|
|
|
%if %{build_static}
|
2015-11-08 14:35:08 +01:00
|
|
|
%files -n btrfsprogs-static
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_sbindir}/btrfs.static
|
|
|
|
%{_sbindir}/btrfs-convert.static
|
|
|
|
%{_sbindir}/btrfs-image.static
|
|
|
|
%{_sbindir}/btrfstune.static
|
|
|
|
%{_sbindir}/btrfsck.static
|
|
|
|
%{_sbindir}/mkfs.btrfs.static
|
|
|
|
%{_sbindir}/btrfs-corrupt-block.static
|
|
|
|
%{_sbindir}/btrfs-find-root.static
|
|
|
|
%{_sbindir}/btrfs-map-logical.static
|
|
|
|
%{_sbindir}/btrfs-select-super.static
|
|
|
|
%endif
|
|
|
|
|
2013-07-29 17:35:55 +02:00
|
|
|
%files -n libbtrfs0
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libbtrfs.so.*
|
|
|
|
|
|
|
|
%files -n libbtrfs-devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %{_includedir}/btrfs
|
|
|
|
%{_includedir}/btrfs/*
|
|
|
|
%{_libdir}/libbtrfs.so
|
2009-03-01 04:28:54 +01:00
|
|
|
|
2018-04-20 17:24:50 +02:00
|
|
|
%files -n libbtrfsutil1
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libbtrfsutil.so.*
|
|
|
|
|
|
|
|
%files -n libbtrfsutil-devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_includedir}/btrfsutil.h
|
|
|
|
%{_libdir}/libbtrfsutil.so
|
2020-10-29 09:21:47 +01:00
|
|
|
%{_libdir}/pkgconfig/libbtrfsutil.pc
|
2018-04-20 17:24:50 +02:00
|
|
|
|
2016-09-05 21:15:56 +02:00
|
|
|
%if %{package_udev_rules}
|
|
|
|
%files udev-rules
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %{_udevrulesdir}
|
|
|
|
%{_udevrulesdir}/64-btrfs-dm.rules
|
2022-02-11 23:07:03 +01:00
|
|
|
%{_udevrulesdir}/64-btrfs-zoned.rules
|
2016-09-05 21:15:56 +02:00
|
|
|
%endif
|
|
|
|
|
2019-10-23 15:32:45 +02:00
|
|
|
%files -n python-btrfsutil
|
|
|
|
%{python3_sitearch}/*
|
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
%changelog
|