6c4a157a2f
- add quota group verify patches, sent to list near end of the week starting 5/4/2014 - updates btrfsck with the ability to verify quota groups - Update the changelog with some sad version of diffstat output to meet requirements. - Added patches: * 0200-btrfs-progs-print-qgroup-excl-as-unsigned.patch * 0201-btrfs-progs-import-ulist.patch * 0202-btrfs-progs-add-quota-group-verify-code.patch (forwarded request 235046 from mfasheh) OBS-URL: https://build.opensuse.org/request/show/235059 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/btrfsprogs?expand=0&rev=41
260 lines
9.1 KiB
RPMSpec
260 lines
9.1 KiB
RPMSpec
#
|
|
# spec file for package btrfsprogs
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define tar_version v3.14.1
|
|
Name: btrfsprogs
|
|
Version: 3.14.1
|
|
Release: 0
|
|
Summary: Utilities for the Btrfs filesystem
|
|
License: GPL-2.0
|
|
Group: System/Filesystems
|
|
Url: http://btrfs.wiki.kernel.org/index.php/Main_Page
|
|
#Git-Web: http://git.kernel.org/cgit/linux/kernel/git/mason/btrfs-progs.git
|
|
#Git-Clone: git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs
|
|
# git archive --format=tar --prefix=btrfs-progs-`git describe --tags --match "v*"`/ HEAD > %D/btrfs-progs-`git describe --tags --match "v*"`.tar
|
|
Source: btrfs-progs-%{tar_version}.tar.bz2
|
|
Source1: boot-btrfs.sh
|
|
Source4: setup-btrfs.sh
|
|
|
|
Patch1: 0001-Btrfs-progs-fix-check-to-test-trim-support.patch
|
|
Patch2: 0002-Btrfs-progs-fsck-fix-double-free-memory-crash.patch
|
|
Patch3: 0003-Btrfs-progs-mkfs-Remove-zero_end-1-since-it-has-been.patch
|
|
Patch4: 0004-btrfs-progs-fix-wrong-max-system-array-size-check-in.patch
|
|
Patch5: 0005-btrfs-progs-move-arg_strtou64-to-a-separate-file-for.patch
|
|
Patch6: 0006-Btrfs-progs-fsck-clear-out-log-tree-in-repair-mode.patch
|
|
Patch7: 0007-Btrfs-progs-fsck-avoid-pinning-same-block-several-ti.patch
|
|
Patch8: 0008-Btrfs-progs-fsck-add-ability-to-check-reloc-roots.patch
|
|
Patch9: 0009-btrfs-progs-prevent-close_root-if-the-root-to-close-.patch
|
|
Patch10: 0010-btrfs-progs-fix-mkfs.btrfs-segfault-with-features-op.patch
|
|
Patch11: 0011-btrfs-progs-Enhance-the-command-btrfs-filesystem-df.patch
|
|
Patch12: 0012-btrfs-progs-Add-helpers-functions-to-handle-the-prin.patch
|
|
Patch13: 0013-btrfs-progs-Add-command-btrfs-filesystem-disk-usage.patch
|
|
Patch14: 0014-btrfs-progs-Add-btrfs-device-disk-usage-command.patch
|
|
Patch15: 0015-btrfs-progs-cleanup-dead-return-after-usage-for-fi-d.patch
|
|
Patch16: 0016-btrfs-progs-Fix-memleak-in-get_raid56_used.patch
|
|
Patch17: 0017-Btrfs-progs-fi-usage-free-memory-if-realloc-fails.patch
|
|
Patch18: 0018-btrfs-progs-read-global-reserve-size-from-space-info.patch
|
|
Patch19: 0019-btrfs-progs-add-original-df-and-rename-disk_usage-to.patch
|
|
Patch20: 0020-btrfs-progs-move-device-usage-to-cmds-device-more-cl.patch
|
|
Patch21: 0021-btrfs-progs-check-if-we-can-t-get-info-from-ioctls-d.patch
|
|
Patch22: 0022-btrfs-progs-zero-out-structures-before-calling-ioctl.patch
|
|
Patch23: 0023-btrfs-progs-print-B-for-bytes.patch
|
|
Patch24: 0024-btrfs-progs-Print-more-info-about-device-sizes.patch
|
|
Patch25: 0025-btrfs-progs-compare-unallocated-space-against-the-co.patch
|
|
Patch26: 0026-btrfs-progs-add-section-of-overall-filesystem-usage.patch
|
|
Patch27: 0027-btrfs-progs-cleanup-filesystem-device-usage-code.patch
|
|
Patch28: 0028-btrfs-progs-extend-pretty-printers-with-unit-mode.patch
|
|
Patch29: 0029-btrfs-progs-replace-df_pretty_sizes-with-pretty_size.patch
|
|
Patch30: 0030-btrfs-progs-clean-up-return-codes-and-paths.patch
|
|
Patch31: 0031-btrfs-progs-move-global-reserve-to-overall-summary.patch
|
|
|
|
Patch163: 0163-btrfs-progs-fsck-fix-segfault.patch
|
|
Patch164: 0164-btrfs-progs-convert-set-label-or-copy-from-origin.patch
|
|
Patch167: 0167-Btrfs-progs-make-find_and_setup_root-return-an-error.patch
|
|
Patch168: 0168-Btrfs-progs-don-t-bug-out-if-we-can-t-find-the-last-.patch
|
|
Patch169: 0169-btrfs-progs-Check-metadata-mirrors-in-find-root.patch
|
|
Patch170: 0170-btrfs-progs-In-find-root-dump-bytenr-for-every-slot.patch
|
|
|
|
Patch200: 0200-btrfs-progs-print-qgroup-excl-as-unsigned.patch
|
|
Patch201: 0201-btrfs-progs-import-ulist.patch
|
|
Patch202: 0202-btrfs-progs-add-quota-group-verify-code.patch
|
|
|
|
Patch1000: local-version-override.patch
|
|
BuildRequires: libacl-devel
|
|
BuildRequires: libattr-devel
|
|
BuildRequires: libblkid-devel
|
|
BuildRequires: libext2fs-devel
|
|
BuildRequires: libuuid-devel
|
|
BuildRequires: lzo-devel
|
|
BuildRequires: udev
|
|
BuildRequires: zlib-devel
|
|
# for /bin/true
|
|
Requires: coreutils
|
|
Supplements: filesystem(btrfs)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q -n btrfs-progs-%{tar_version}
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch6 -p1
|
|
%patch7 -p1
|
|
%patch8 -p1
|
|
%patch9 -p1
|
|
%patch10 -p1
|
|
%patch11 -p1
|
|
%patch12 -p1
|
|
%patch13 -p1
|
|
%patch14 -p1
|
|
%patch15 -p1
|
|
%patch16 -p1
|
|
%patch17 -p1
|
|
%patch18 -p1
|
|
%patch19 -p1
|
|
%patch20 -p1
|
|
%patch21 -p1
|
|
%patch22 -p1
|
|
%patch23 -p1
|
|
%patch24 -p1
|
|
%patch25 -p1
|
|
%patch26 -p1
|
|
%patch27 -p1
|
|
%patch28 -p1
|
|
%patch29 -p1
|
|
%patch30 -p1
|
|
%patch31 -p1
|
|
%patch163 -p1
|
|
%patch164 -p1
|
|
%patch167 -p1
|
|
%patch168 -p1
|
|
%patch169 -p1
|
|
%patch170 -p1
|
|
%patch200 -p1
|
|
%patch201 -p1
|
|
%patch202 -p1
|
|
%patch1000 -p1
|
|
|
|
%build
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" all btrfs-convert \
|
|
btrfs-zero-log btrfs-select-super btrfs-image btrfstune \
|
|
btrfs-find-root
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot} prefix=%{_prefix} bindir=%{_sbindir} mandir=%{_mandir} libdir=%{_libdir}
|
|
install -m 0755 -d %{buildroot}/%{_sbindir}
|
|
install -m 0755 -d %{buildroot}/%{_bindir}
|
|
# move some utilities out of /usr/sbin
|
|
mv %{buildroot}/%{_sbindir}/btrfs-map-logical %{buildroot}/%{_bindir}
|
|
# mkinitrd rescue utilities
|
|
install -m 0755 btrfs-zero-log %{buildroot}/%{_sbindir}
|
|
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}
|
|
#UsrMerge
|
|
install -m 0755 -d %{buildroot}/sbin
|
|
ln -s %{_sbindir}/btrfs %{buildroot}/sbin
|
|
ln -s %{_sbindir}/btrfs-zero-log %{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}/btrfs-debug-tree %{buildroot}/sbin
|
|
ln -s %{_sbindir}/btrfs-show-super %{buildroot}/sbin
|
|
ln -s %{_sbindir}/mkfs.btrfs %{buildroot}/sbin
|
|
ln -s %{_sbindir}/fsck.btrfs %{buildroot}/sbin
|
|
#EndUsrMerge
|
|
#UsrMerge
|
|
#EndUsrMerge
|
|
install -d -m0755 %{buildroot}/lib/mkinitrd/scripts/
|
|
install -m 0755 %{SOURCE1} %{buildroot}/lib/mkinitrd/scripts/
|
|
install -m 0755 %{SOURCE4} %{buildroot}/lib/mkinitrd/scripts/
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
# don't install .a for now
|
|
rm -f %{buildroot}/%{_libdir}/*.a
|
|
|
|
%post -n libbtrfs0 -p /sbin/ldconfig
|
|
|
|
%postun -n libbtrfs0 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
/sbin/fsck.btrfs
|
|
# mkinitrd utils
|
|
#UsrMerge
|
|
/sbin/btrfs
|
|
/sbin/btrfs-zero-log
|
|
/sbin/btrfs-convert
|
|
/sbin/btrfs-select-super
|
|
/sbin/btrfs-image
|
|
/sbin/btrfstune
|
|
/sbin/btrfsck
|
|
/sbin/btrfs-find-root
|
|
/sbin/mkfs.btrfs
|
|
/sbin/btrfs-debug-tree
|
|
/sbin/btrfs-show-super
|
|
#EndUsrMerge
|
|
%{_sbindir}/btrfs
|
|
%{_sbindir}/btrfs-zero-log
|
|
%{_sbindir}/btrfs-convert
|
|
%{_sbindir}/btrfs-select-super
|
|
%{_sbindir}/btrfs-image
|
|
%{_sbindir}/btrfstune
|
|
%{_sbindir}/btrfsck
|
|
%{_sbindir}/btrfs-find-root
|
|
%{_sbindir}/fsck.btrfs
|
|
%{_sbindir}/mkfs.btrfs
|
|
%{_sbindir}/btrfs-debug-tree
|
|
%{_sbindir}/btrfs-show-super
|
|
%dir /lib/mkinitrd
|
|
%dir /lib/mkinitrd/scripts
|
|
/lib/mkinitrd/scripts/boot-btrfs.sh
|
|
/lib/mkinitrd/scripts/setup-btrfs.sh
|
|
# other
|
|
%{_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}/man8/btrfs-convert.8.gz
|
|
%{_mandir}/man8/btrfs-debug-tree.8.gz
|
|
%{_mandir}/man8/btrfs-find-root.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
|
|
|
|
%files -n libbtrfs0
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libbtrfs.so.*
|
|
|
|
%files -n libbtrfs-devel
|
|
%defattr(-, root, root)
|
|
%dir %{_includedir}/btrfs
|
|
%{_includedir}/btrfs/*
|
|
%{_libdir}/libbtrfs.so
|
|
|
|
%changelog
|