Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
btrfsprogs
btrfsprogs.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File btrfsprogs.spec of Package btrfsprogs
# # spec file for package btrfsprogs # # Copyright (c) 2021 SUSE LLC # # 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. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define udev_with_btrfs_builtin 190 %define udev_version %(rpm -q --queryformat %{VERSION} udev) %define package_udev_rules %{udev_version} >= %{udev_with_btrfs_builtin} %define _dracutmodulesdir %{_libexecdir}/dracut/modules.d Name: btrfsprogs Version: 4.5.3 Release: 0 Summary: Utilities for the Btrfs filesystem License: GPL-2.0-only Group: System/Filesystems URL: http://btrfs.wiki.kernel.org/index.php/Main_Page #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 Source0: https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v%{version}.tar.gz Source1: module-setup.sh Source2: dracut-fsck-help.txt Patch100: 0169-btrfs-progs-udev-add-rules-for-dm-devices.patch Patch101: btrfs-progs-make-btrfs-image-restore-to-support-dup.patch Patch103: 0001-btrfs-progs-convert-add-compatibility-layer-for-e2fs.patch Patch104: 0002-btrfs-progs-convert-Introduce-functions-to-read-used.patch Patch105: 0003-btrfs-progs-convert-Introduce-new-function-to-remove.patch Patch106: 0004-btrfs-progs-convert-Introduce-function-to-calculate-.patch Patch107: 0005-btrfs-progs-utils-Introduce-new-function-for-convert.patch Patch108: 0006-btrfs-progs-Introduce-function-to-setup-temporary-su.patch Patch109: 0007-btrfs-progs-Introduce-function-to-setup-temporary-tr.patch Patch110: 0008-btrfs-progs-Introduce-function-to-setup-temporary-ch.patch Patch111: 0009-btrfs-progs-Introduce-function-to-initialize-device-.patch Patch112: 0010-btrfs-progs-Introduce-function-to-initialize-fs-tree.patch Patch113: 0011-btrfs-progs-Introduce-function-to-initialize-csum-tr.patch Patch114: 0012-btrfs-progs-Introduce-function-to-setup-temporary-ex.patch Patch115: 0013-btrfs-progs-Introduce-function-to-create-convert-dat.patch Patch116: 0014-btrfs-progs-extent-tree-Introduce-function-to-find-t.patch Patch117: 0015-btrfs-progs-extent-tree-Enhance-btrfs_record_file_ex.patch Patch118: 0016-btrfs-progs-convert-Introduce-new-function-to-create.patch Patch119: 0017-btrfs-progs-convert-Introduce-function-to-migrate-re.patch Patch120: 0018-btrfs-progs-convert-Enhance-record_file_blocks-to-ha.patch Patch121: 0019-btrfs-progs-convert-Introduce-init_btrfs_v2-function.patch Patch122: 0020-btrfs-progs-Introduce-do_convert_v2-function.patch Patch123: 0021-btrfs-progs-Convert-Add-support-for-rollback-new-con.patch Patch124: 0022-btrfs-progs-convert-Strictly-avoid-meta-or-system-ch.patch Patch125: 0023-btrfs-progs-Cleanup-old-btrfs-convert.patch Patch126: 0024-btrfs-progs-convert-Add-support-to-rollback-new-conv.patch Patch127: 0025-btrfs-progs-convert-Fix-a-bug-that-makes-convert-ass.patch Patch128: 0026-btrfs-progs-convert-Fix-bugs-in-backup-superblock-mi.patch Patch129: 0027-btrfs-progs-convert-Insert-needed-holes-for-superblo.patch Patch130: 0028-btrfs-progs-convert-Fix-a-bug-which-fails-to-insert-.patch Patch131: 0103-btrfs-progs-free-qgroup-counts-in-btrfsck.patch Patch132: 0104-btrfs-progs-btrfsck-verify-qgroups-above-level-0.patch Patch133: 0105-btrfs-progs-btrfsck-write-corrected-qgroup-info-to-d.patch Patch134: btrfs-progs-convert-remove-redundant-check.patch Patch135: btrfs-progs-copy-btrfs-inode-flags-from-kernel-header.patch Patch136: btrfs-progs-convert-convert-ext-inode-flags-to-btrfs-inode-flags.patch Patch137: 0170-btrfs-progs-check-release-path-after-usage.patch Patch138: btrfs-progs-convert-prevent-accounting-blocks-beyond-end-of-device.patch Patch139: btrfs-progs-convert-fix-migrate_super_block-to-work-with-64k-sectorsize.patch Patch140: btrfs-progs-file-item-fix-wrong-file-extents-inserted.patch Patch141: 0171-btrfs-progs-qgroup-show-refine-error-messages.patch Patch142: btrfs-progs-introduce-kernel-sizes-to-cleanup-large-intermediate-number.patch Patch143: btrfs-progs-introduce-macro-to-calculate-backup-superblock-offset.patch Patch144: btrfs-progs-convert-introduce-simple-range-structure-for-convert-reserved-ranges.patch Patch145: btrfs-progs-convert-do-not-clear-nodatasum-flag-in-inode-item.patch Patch146: btrfs-progs-convert-do-not-clear-header-rev.patch Patch147: btrfs-progs-convert-properly-handle-reserved-ranges-while-iterating-files.patch Patch148: btrfs-progs-convert-use-search_cache_extent-in-migrate_one_reserved_range.patch Patch149: 2010-btrfs-convert-add-support-to-convert-reiserfs.patch Patch158: btrfs-progs-convert-fix-inline-file-extent-creation-condition.patch Patch150: btrfs-progs-backref-push-state-tracking-into-a-helper-structure.patch Patch151: btrfs-progs-backref-add-list_first_pref-helper.patch Patch152: btrfs-progs-backref-use-separate-list-for-missing-keys.patch Patch153: btrfs-progs-backref-use-separate-list-for-indirect-refs.patch Patch154: 3001-btrfs-progs-Introduce-function-to-fix-unaligned-devi.patch Patch155: 3002-btrfs-progs-Introduce-function-to-fix-super-block-to.patch Patch156: 3003-btrfs-progs-rescue-Introduce-fix-device-size.patch Patch157: btrfs-progs-backref-allow-backref-walk-to-handle-direct-parent-ref.patch Patch159: btrfs-progs-remove-comments-about-delayed-ref-in-backref-c.patch Patch160: btrfs-progs-remove-useless-branch-in-_merge_refs.patch Patch161: btrfs-progs-do-not-merge-tree-block-refs-have-different-root_id.patch Patch2100: 2100-btrfs-progs-fsck-fix-segfault.patch Patch2102: 2102-Btrfs-progs-make-find_and_setup_root-return-an-error.patch Patch2103: 2103-Btrfs-progs-don-t-bug-out-if-we-can-t-find-the-last-.patch Patch2222: btrfs-progs-workaround-linux-sizes.diff Patch2223: 2223-btrfs-progs-fi-du-don-t-call-lookup_path_rootid-for-.patch Patch2224: 2224-btrfs-progs-du-fix-to-skip-not-btrfs-dir-file.patch Patch4000: local-version-override.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: asciidoc BuildRequires: autoconf BuildRequires: automake BuildRequires: dracut BuildRequires: libattr-devel BuildRequires: libblkid-devel BuildRequires: libext2fs-devel BuildRequires: libreiserfscore-devel BuildRequires: libuuid-devel BuildRequires: lzo-devel BuildRequires: pkg-config BuildRequires: udev %if 0%{?suse_version} == 1310 BuildRequires: libudev-devel %endif BuildRequires: xmlto BuildRequires: zlib-devel Supplements: filesystem(btrfs) Recommends: btrfsmaintenance %if %{package_udev_rules} Requires: btrfsprogs-udev-rules %endif %description Utilities needed to create and maintain btrfs file systems under Linux. %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++ Requires: %{name} = %{version}-%{release} Requires: libbtrfs0 = %{version} %description -n libbtrfs-devel This package contains the libraries and headers files for developers to build applications to interface with btrfs. # 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 %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 %prep %setup -q -n btrfs-progs-v%{version} %patch100 -p1 %patch101 -p1 %patch103 -p1 %patch104 -p1 %patch105 -p1 %patch106 -p1 %patch107 -p1 %patch108 -p1 %patch109 -p1 %patch110 -p1 %patch111 -p1 %patch112 -p1 %patch113 -p1 %patch114 -p1 %patch115 -p1 %patch116 -p1 %patch117 -p1 %patch118 -p1 %patch119 -p1 %patch120 -p1 %patch121 -p1 %patch122 -p1 %patch123 -p1 %patch124 -p1 %patch125 -p1 %patch126 -p1 %patch127 -p1 %patch128 -p1 %patch129 -p1 %patch130 -p1 %patch131 -p1 %patch132 -p1 %patch133 -p1 %patch134 -p1 %patch135 -p1 %patch136 -p1 %patch137 -p1 %patch138 -p1 %patch139 -p1 %patch140 -p1 %patch141 -p1 %patch142 -p1 %patch143 -p1 %patch144 -p1 %patch145 -p1 %patch146 -p1 %patch147 -p1 %patch148 -p1 %patch149 -p1 %patch150 -p1 %patch151 -p1 %patch152 -p1 %patch153 -p1 %patch154 -p1 %patch155 -p1 %patch156 -p1 %patch157 -p1 %patch158 -p1 %patch159 -p1 %patch160 -p1 %patch161 -p1 %patch2100 -p1 %patch2102 -p1 %patch2103 -p1 %patch2222 -p1 %patch2223 -p1 %patch2224 -p1 %patch4000 -p1 %build ./autogen.sh %configure make V=1 %{?_smp_mflags} all %install make install DESTDIR=${RPM_BUILD_ROOT} prefix=%{_prefix} bindir=%{_sbindir} mandir=%{_mandir} libdir=%{_libdir} install -m 0755 -d ${RPM_BUILD_ROOT}/%{_sbindir} install -m 0755 -d ${RPM_BUILD_ROOT}/%{_bindir} # move some utilities out of /usr/sbin mv ${RPM_BUILD_ROOT}/%{_sbindir}/btrfs-map-logical ${RPM_BUILD_ROOT}/%{_bindir} # initrd rescue utilities install -m 0755 btrfs-zero-log ${RPM_BUILD_ROOT}/%{_sbindir} install -m 0755 btrfs-select-super ${RPM_BUILD_ROOT}/%{_sbindir} install -m 0755 btrfs-image ${RPM_BUILD_ROOT}/%{_sbindir} install -m 0755 btrfstune ${RPM_BUILD_ROOT}/%{_sbindir} install -m 0755 btrfs-find-root ${RPM_BUILD_ROOT}/%{_sbindir} #UsrMerge install -m 0755 -d ${RPM_BUILD_ROOT}/sbin ln -s %{_sbindir}/btrfs ${RPM_BUILD_ROOT}/sbin ln -s %{_sbindir}/btrfs-zero-log ${RPM_BUILD_ROOT}/sbin ln -s %{_sbindir}/btrfs-convert ${RPM_BUILD_ROOT}/sbin ln -s %{_sbindir}/btrfs-select-super ${RPM_BUILD_ROOT}/sbin ln -s %{_sbindir}/btrfs-image ${RPM_BUILD_ROOT}/sbin ln -s %{_sbindir}/btrfstune ${RPM_BUILD_ROOT}/sbin ln -s %{_sbindir}/btrfsck ${RPM_BUILD_ROOT}/sbin ln -s %{_sbindir}/btrfs-find-root ${RPM_BUILD_ROOT}/sbin ln -s %{_sbindir}/btrfs-debug-tree ${RPM_BUILD_ROOT}/sbin ln -s %{_sbindir}/btrfs-show-super ${RPM_BUILD_ROOT}/sbin ln -s %{_sbindir}/mkfs.btrfs ${RPM_BUILD_ROOT}/sbin #EndUsrMerge # command line options are not compatible (bnc#599224) chmod +x ${RPM_BUILD_ROOT}/%{_sbindir}/fsck.btrfs #UsrMerge ln -s %{_sbindir}/fsck.btrfs ${RPM_BUILD_ROOT}/sbin #EndUsrMerge rm -f ${RPM_BUILD_ROOT}/%{_libdir}/*.la # don't install .a for now rm -f ${RPM_BUILD_ROOT}/%{_libdir}/*.a # bash completion install -m 0755 -d %{buildroot}/%{_datadir}/bash-completion/completions install -m 0644 btrfs-completion %{buildroot}/%{_datadir}/bash-completion/completions/btrfs install -m 0755 -D ${RPM_SOURCE_DIR}/module-setup.sh %{buildroot}/%{_dracutmodulesdir}/95suse-btrfs/module-setup.sh %if 0%{!?for_debugging:1} DEBUG_FILES="/sbin/btrfs-find-root %{_sbindir}/btrfs-find-root %_mandir/man8/btrfs-find-root.8.gz %_mandir/man8/btrfs-select-super.8.gz /sbin/btrfs-select-super %{_sbindir}/btrfs-select-super" for file in $DEBUG_FILES; do rm -f ${RPM_BUILD_ROOT}$file done %endif %post -n libbtrfs0 -p /sbin/ldconfig %postun -n libbtrfs0 -p /sbin/ldconfig %if 0%{?suse_version} >= 1310 %posttrans %{?regenerate_initrd_posttrans} %endif %files %defattr(-, root, root) %doc COPYING %doc ${RPM_SOURCE_DIR}/dracut-fsck-help.txt /sbin/fsck.btrfs # initrd utils #UsrMerge /sbin/btrfs /sbin/btrfs-zero-log /sbin/btrfs-convert /sbin/btrfs-image /sbin/btrfstune /sbin/btrfsck /sbin/mkfs.btrfs /sbin/btrfs-debug-tree /sbin/btrfs-show-super #EndUsrMerge %{_sbindir}/btrfs %{_sbindir}/btrfs-zero-log %{_sbindir}/btrfs-convert %{_sbindir}/btrfs-image %{_sbindir}/btrfstune %{_sbindir}/btrfsck %{_sbindir}/fsck.btrfs %{_sbindir}/mkfs.btrfs %{_sbindir}/btrfs-debug-tree %{_sbindir}/btrfs-show-super %{_bindir}/btrfs-map-logical %{_mandir}/man8/btrfs-image.8.gz %{_mandir}/man8/btrfsck.8.gz %{_mandir}/man8/fsck.btrfs.8.gz %{_mandir}/man8/mkfs.btrfs.8.gz %{_mandir}/man8/btrfs.8.gz %{_mandir}/man5/btrfs.5.gz %{_mandir}/man8/btrfs-convert.8.gz %{_mandir}/man8/btrfs-debug-tree.8.gz %{_mandir}/man8/btrfs-map-logical.8.gz %{_mandir}/man8/btrfs-show-super.8.gz %{_mandir}/man8/btrfs-zero-log.8.gz %{_mandir}/man8/btrfstune.8.gz %{_mandir}/man8/btrfs-balance.8.gz %{_mandir}/man8/btrfs-check.8.gz %{_mandir}/man8/btrfs-device.8.gz %{_mandir}/man8/btrfs-filesystem.8.gz %{_mandir}/man8/btrfs-inspect-internal.8.gz %{_mandir}/man8/btrfs-property.8.gz %{_mandir}/man8/btrfs-qgroup.8.gz %{_mandir}/man8/btrfs-quota.8.gz %{_mandir}/man8/btrfs-receive.8.gz %{_mandir}/man8/btrfs-replace.8.gz %{_mandir}/man8/btrfs-rescue.8.gz %{_mandir}/man8/btrfs-restore.8.gz %{_mandir}/man8/btrfs-scrub.8.gz %{_mandir}/man8/btrfs-send.8.gz %{_mandir}/man8/btrfs-subvolume.8.gz %dir %{_datadir}/bash-completion %dir %{_datadir}/bash-completion/completions %{_datadir}/bash-completion/completions/btrfs %{_dracutmodulesdir}/95suse-btrfs/ %{_dracutmodulesdir}/95suse-btrfs/module-setup.sh %if 0%{?for_debugging:1} /sbin/btrfs-find-root %{_sbindir}/btrfs-find-root %{_mandir}/man8/btrfs-find-root.8.gz /sbin/btrfs-select-super %{_sbindir}/btrfs-select-super %{_mandir}/man8/btrfs-select-super.8.gz %endif %files -n libbtrfs0 %defattr(-, root, root) %{_libdir}/libbtrfs.so.* %files -n libbtrfs-devel %defattr(-, root, root) %dir %{_includedir}/btrfs %{_includedir}/btrfs/* %{_libdir}/libbtrfs.so %if %{package_udev_rules} %files udev-rules %defattr(-, root, root) %dir %{_udevrulesdir} %{_udevrulesdir}/64-btrfs-dm.rules %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor