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
|
|
|
#
|
2011-03-15 10:25:29 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-03-15 10:25:29 +01:00
|
|
|
|
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
Name: btrfsprogs
|
2011-07-13 16:48:36 +02:00
|
|
|
Url: http://btrfs.wiki.kernel.org/index.php/Main_Page
|
2009-07-21 12:23:25 +02:00
|
|
|
Version: 0.19
|
2011-11-09 15:49:06 +01:00
|
|
|
Release: 50
|
|
|
|
%define tar_version v0.19-116-g13eced9
|
2011-08-04 21:28:53 +02:00
|
|
|
Summary: Utilities for the Btrfs filesystem
|
2011-07-13 16:48:36 +02:00
|
|
|
License: GPL v2 only
|
2009-03-01 04:28:54 +01:00
|
|
|
Group: System/Filesystems
|
2009-08-03 18:27:49 +02:00
|
|
|
Supplements: filesystem(btrfs)
|
2010-12-16 20:56:57 +01:00
|
|
|
Source: btrfs-progs-%{tar_version}.tar.bz2
|
2011-11-09 15:49:06 +01:00
|
|
|
Source1: boot-btrfs.sh
|
2009-07-21 12:23:25 +02:00
|
|
|
Patch0: memleak-fix.diff
|
2010-12-16 20:56:57 +01:00
|
|
|
Patch1: 0001-Plug-Memory-leak-in-find_and_setup_log_root.patch
|
2011-08-30 21:33:08 +02:00
|
|
|
Patch1000: local-version-override.patch
|
2011-07-13 16:48:36 +02:00
|
|
|
|
|
|
|
Patch57: ignore-deleted-loopmounts.diff
|
2011-10-04 02:31:38 +02:00
|
|
|
Patch58: btrfsck-ignore-option-a.diff
|
2011-11-09 15:49:06 +01:00
|
|
|
Patch59: build-extra-progs.diff
|
|
|
|
Patch60: btrfs-progs-pass-correct-build-option-for-pthreads.patch
|
2011-07-28 19:55:26 +02:00
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-29 17:42:56 +01:00
|
|
|
BuildRequires: libacl-devel libext2fs-devel libuuid-devel zlib-devel
|
2011-03-14 19:24:28 +01:00
|
|
|
# for /bin/true
|
|
|
|
Requires: coreutils
|
2009-03-01 04:28:54 +01:00
|
|
|
|
|
|
|
%description
|
2011-07-13 16:48:36 +02:00
|
|
|
Utilities needed to create and maintain btrfs file systems under Linux.
|
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
%prep
|
2010-12-16 20:56:57 +01:00
|
|
|
%setup -q -n btrfs-progs-%{tar_version}
|
2009-07-21 12:23:25 +02:00
|
|
|
%patch0
|
2010-03-04 22:49:34 +01:00
|
|
|
%patch1 -p1
|
2011-08-04 21:55:32 +02:00
|
|
|
%patch1000 -p1
|
2011-07-13 16:48:36 +02:00
|
|
|
%patch57 -p1
|
2011-10-04 02:31:38 +02:00
|
|
|
%patch58 -p1
|
2011-11-09 15:49:06 +01:00
|
|
|
%patch59 -p0
|
|
|
|
%patch60 -p1
|
2011-07-28 19:55:26 +02:00
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
%build
|
2011-11-09 15:49:06 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" all convert \
|
|
|
|
btrfs-zero-log btrfs-select-super btrfs-image btrfstune \
|
|
|
|
restore find-root
|
|
|
|
mv restore btrfs-restore
|
|
|
|
mv find-root btrfs-find-root
|
2009-03-01 04:28:54 +01:00
|
|
|
|
|
|
|
%install
|
2009-07-28 00:08:56 +02:00
|
|
|
make install DESTDIR=${RPM_BUILD_ROOT} prefix=%{_prefix} bindir=/sbin mandir=%{_mandir}
|
2011-11-09 15:49:06 +01:00
|
|
|
install -m 0755 -d ${RPM_BUILD_ROOT}/sbin
|
|
|
|
install -m 0755 -d ${RPM_BUILD_ROOT}/%{_bindir}
|
|
|
|
# move some utilities out of /sbin
|
|
|
|
mv ${RPM_BUILD_ROOT}/sbin/{btrfs-show,btrfs-vol,btrfsctl} ${RPM_BUILD_ROOT}/%{_bindir}
|
|
|
|
mv ${RPM_BUILD_ROOT}/sbin/{btrfs-map-logical,btrfs-debug-tree} ${RPM_BUILD_ROOT}/%{_bindir}
|
|
|
|
# mkinitrd rescue utilities
|
|
|
|
install -m 0755 btrfs-zero-log btrfs-select-super btrfs-image btrfstune ${RPM_BUILD_ROOT}/sbin
|
|
|
|
install -m 0755 btrfs-restore btrfs-find-root ${RPM_BUILD_ROOT}/sbin
|
2010-12-16 20:56:57 +01:00
|
|
|
# command line options are not compatible (bnc#599224)
|
2011-11-09 15:49:06 +01:00
|
|
|
# copy needed if /bin is different fs from /sbin
|
|
|
|
cp /bin/true ${RPM_BUILD_ROOT}/sbin/fsck.btrfs
|
|
|
|
install -d -m0755 ${RPM_BUILD_ROOT}/lib/mkinitrd/scripts/
|
|
|
|
cp %{S:1} ${RPM_BUILD_ROOT}/lib/mkinitrd/scripts/
|
2010-12-16 20:56:57 +01:00
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2011-11-09 15:49:06 +01:00
|
|
|
/sbin/fsck.btrfs
|
|
|
|
# mkinitrd utils
|
2010-12-16 20:56:57 +01:00
|
|
|
/sbin/btrfs
|
2011-11-09 15:49:06 +01:00
|
|
|
/sbin/btrfs-zero-log
|
2010-01-29 17:42:56 +01:00
|
|
|
/sbin/btrfs-convert
|
2011-11-09 15:49:06 +01:00
|
|
|
/sbin/btrfs-select-super
|
|
|
|
/sbin/btrfs-image
|
|
|
|
/sbin/btrfstune
|
2009-07-28 00:08:56 +02:00
|
|
|
/sbin/btrfsck
|
2011-11-09 15:49:06 +01:00
|
|
|
/sbin/btrfs-restore
|
|
|
|
/sbin/btrfs-find-root
|
2009-07-28 00:08:56 +02:00
|
|
|
/sbin/mkfs.btrfs
|
2011-11-09 15:49:06 +01:00
|
|
|
/lib/mkinitrd/scripts/boot-btrfs.sh
|
|
|
|
# other
|
|
|
|
/usr/bin/btrfs-map-logical
|
|
|
|
/usr/bin/btrfs-debug-tree
|
|
|
|
# obsolete
|
|
|
|
/usr/bin/btrfs-show
|
|
|
|
/usr/bin/btrfs-vol
|
|
|
|
/usr/bin/btrfsctl
|
2009-07-21 12:23:25 +02:00
|
|
|
%_mandir/man8/btrfs-image.8.gz
|
|
|
|
%_mandir/man8/btrfs-show.8.gz
|
|
|
|
%_mandir/man8/btrfsck.8.gz
|
|
|
|
%_mandir/man8/btrfsctl.8.gz
|
|
|
|
%_mandir/man8/mkfs.btrfs.8.gz
|
2010-12-16 20:56:57 +01:00
|
|
|
%_mandir/man8/btrfs.8.gz
|
2009-03-01 04:28:54 +01:00
|
|
|
|
|
|
|
%changelog
|