Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
btrfsprogs.356
btrfsprogs.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File btrfsprogs.spec of Package btrfsprogs.356
# # spec file for package btrfsprogs # # Copyright (c) 2015 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/ # Name: btrfsprogs Url: http://btrfs.wiki.kernel.org/index.php/Main_Page Version: 3.16.2 Release: 0 %define tar_version v3.16.2 Summary: Utilities for the Btrfs filesystem License: GPL-2.0 Group: System/Filesystems #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 Source: btrfs-progs-%{tar_version}.tar.gz Patch32: 0032-btrfs-progs-Fix-malloc-size-for-superblock.patch Patch37: 0037-btrfs-progs-fsck-avoid-pinning-same-block-several-ti.patch Patch38: 0038-btrfs-progs-fsck-clear-out-log-tree-in-repair-mode.patch Patch39: 0039-btrfs-progs-fsck-remove-unfriendly-BUG_ON-for-search.patch Patch40: 0040-btrfs-progs-fsck-finish-transaction-commit-if-repair.patch Patch41: 0041-btrfs-progs-fsck-add-ability-to-check-reloc-roots.patch Patch42: 0042-btrfs-progs-check-fix-csum-check-in-the-presence-of-.patch Patch43: 0043-btrfs-progs-make-free-space-checker-work-on-non-4k-s.patch Patch64: 0064-btrfs-progs-print-B-for-bytes.patch Patch65: 0065-btrfs-progs-extend-pretty-printers-with-unit-mode.patch Patch66: 0066-btrfs-progs-Remove-extra-const-modifiers-they-don-t-.patch Patch67: 0067-btrfs-progs-add-options-to-tune-units-for-fi-df-outp.patch Patch68: 0068-btrfs-progs-convert-set-label-or-copy-from-origin.patch Patch87: 0087-Btrfs-progs-check-fix-return-value-check-of-is_child.patch Patch100: 0100-btrfs-progs-Fix-number-of-arguments-check-of-btrfs-f.patch Patch108: 0108-btrfs-progs-use-the-correct-SI-prefixes.patch Patch133: 0133-btrfs-progs-fix-spacing-in-error-messages.patch Patch139: 0139-btrfs-progs-move-group-type-and-profile-pretty-print.patch Patch140: 0140-btrfs-progs-Enhance-the-command-btrfs-filesystem-df.patch Patch141: 0141-btrfs-progs-Add-helpers-functions-to-handle-the-prin.patch Patch142: 0142-btrfs-progs-Add-command-btrfs-filesystem-disk-usage.patch Patch143: 0143-btrfs-progs-Add-btrfs-device-disk-usage-command.patch Patch144: 0144-btrfs-progs-cleanup-dead-return-after-usage-for-fi-d.patch Patch145: 0145-btrfs-progs-Fix-memleak-in-get_raid56_used.patch Patch146: 0146-Btrfs-progs-fi-usage-free-memory-if-realloc-fails.patch Patch147: 0147-btrfs-progs-add-original-df-and-rename-disk_usage-to.patch Patch148: 0148-btrfs-progs-move-device-usage-to-cmds-device-more-cl.patch Patch149: 0149-btrfs-progs-check-if-we-can-t-get-info-from-ioctls-d.patch Patch150: 0150-btrfs-progs-zero-out-structures-before-calling-ioctl.patch Patch151: 0151-btrfs-progs-Print-more-info-about-device-sizes.patch Patch152: 0152-btrfs-progs-compare-unallocated-space-against-the-co.patch Patch153: 0153-btrfs-progs-add-section-of-overall-filesystem-usage.patch Patch154: 0154-btrfs-progs-cleanup-filesystem-device-usage-code.patch Patch155: 0155-btrfs-progs-replace-df_pretty_sizes-with-pretty_size.patch Patch156: 0156-btrfs-progs-clean-up-return-codes-and-paths.patch Patch157: 0157-btrfs-progs-move-global-reserve-to-overall-summary.patch Patch158: 0158-btrfs-progs-hide-FS-occupied-from-device-usage-outpu.patch Patch159: 0159-btrfs-progs-provide-better-error-message-for-raid-pr.patch Patch160: 0160-btrfs-progs-fix-wrong-data-ratio-for-raid56-in-btrfs.patch Patch161: 0161-btrfs-progs-output-the-correct-path-when-fi-usage-fa.patch Patch162: 0162-btrfs-progs-fix-improper-output-msg-for-btrfs-fi-usa.patch Patch163: 0163-btrfs-progs-rework-calculations-of-fi-usage.patch Patch189: 0189-btrfs-progs-mkfs-make-skinny-metadata-default.patch Patch201: 0201-btrfs-progs-fi-usage-change-option-for-tabular-outpu.patch Patch202: 0202-btrfs-progs-fi-usage-add-switches-to-set-output-unit.patch Patch203: 0203-btrfs-progs-fi-usage-update-manpage.patch Patch204: 0204-btrfs-progs-dev-usage-add-switches-to-set-output-uni.patch Patch205: 0205-btrfs-progs-dev-usage-update-manpage.patch Patch206: 0206-btrfs-progs-unify-unit-mode-parameters-and-variables.patch Patch219: 0219-btrfs-progs-cleanup-avoid-to-use-literal-for-getopt-.patch Patch267: 0267-btrfs-progs-Fix-a-extent-buffer-leak-in-count_csum_r.patch Patch275: 0275-btrfs-progs-Remove-redundant-short-description-from-.patch Patch1000: local-version-override.patch Patch2000: 2000-btrfs-convert-clean-up-blk_iterate_data-handling-wrt.patch Patch2001: 2001-btrfs-convert-remove-unused-fs-argument-from-block_i.patch Patch2002: 2002-btrfs-convert-remove-unused-inode_key-in-copy_single.patch Patch2003: 2003-btrfs-convert-rename-ext2_root-to-image_root.patch Patch2004: 2004-compat-define-DIV_ROUND_UP-if-not-already-defined.patch Patch2005: 2005-btrfs-convert-add-context-and-operations-struct-to-a.patch Patch2006: 2006-btrfs-constify-some-function-parameters.patch Patch2007: 2007-btrfs-convert-factor-out-adding-dirent-into-convert.patch Patch2008: 2008-btrfs-convert-factor-out-block-iteration-callback.patch Patch2009: 2009-btrfs-convert-fix-typo-in-btrfs_insert_dir_item-call.patch Patch2010: 2010-btrfs-convert-add-support-to-convert-reiserfs.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 Patch2104: 2104-btrfs-progs-Check-metadata-mirrors-in-find-root.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: asciidoc BuildRequires: libacl-devel BuildRequires: libattr-devel BuildRequires: libblkid-devel BuildRequires: libext2fs-devel BuildRequires: libreiserfscore-devel BuildRequires: libuuid-devel BuildRequires: lzo-devel BuildRequires: udev BuildRequires: xmlto BuildRequires: zlib-devel # for /bin/true Requires: coreutils Supplements: filesystem(btrfs) Recommends: btrfsmaintenance %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} %patch32 -p1 %patch37 -p1 %patch38 -p1 %patch39 -p1 %patch40 -p1 %patch41 -p1 %patch42 -p1 %patch43 -p1 %patch64 -p1 %patch65 -p1 %patch66 -p1 %patch67 -p1 %patch68 -p1 %patch87 -p1 %patch100 -p1 %patch108 -p1 %patch133 -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 %patch162 -p1 %patch163 -p1 %patch189 -p1 %patch201 -p1 %patch202 -p1 %patch203 -p1 %patch204 -p1 %patch205 -p1 %patch206 -p1 %patch219 -p1 %patch267 -p1 %patch275 -p1 %patch2000 -p1 %patch2001 -p1 %patch2002 -p1 %patch2003 -p1 %patch2004 -p1 %patch2005 -p1 %patch2006 -p1 %patch2007 -p1 %patch2008 -p1 %patch2009 -p1 %patch2010 -p1 %patch2100 -p1 %patch2102 -p1 %patch2103 -p1 %patch2104 -p1 %patch1000 -p1 %build make %{?_smp_mflags} CFLAGS="%{optflags}" all btrfs-convert \ btrfs-zero-log btrfs-select-super btrfs-image btrfstune %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 %if 0%{!?for_debugging:1} DEBUG_FILES="/sbin/btrfs-find-root %{_sbindir}/btrfs-find-root %_mandir/man8/btrfs-find-root.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 %files %defattr(-, root, root) /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 %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 %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 %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