f1d9bdca52
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/btrfsprogs?expand=0&rev=19
78 lines
2.2 KiB
RPMSpec
78 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package btrfsprogs
|
|
#
|
|
# Copyright (c) 2011 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://oss.oracle.com/~mason/btrfs/
|
|
Version: 0.19
|
|
Release: 20
|
|
%define tar_version v0.19-35-g1b444cd
|
|
Summary: Btrfs File System Utilities
|
|
License: GNU General Public License (GPL)
|
|
Group: System/Filesystems
|
|
Supplements: filesystem(btrfs)
|
|
Source: btrfs-progs-%{tar_version}.tar.bz2
|
|
Patch0: memleak-fix.diff
|
|
Patch1: 0001-Plug-Memory-leak-in-find_and_setup_log_root.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: libacl-devel libext2fs-devel libuuid-devel zlib-devel
|
|
# for /bin/true
|
|
Requires: coreutils
|
|
|
|
%description
|
|
This package contains utilities for creating, checking, and
|
|
debugging btrfs file systems.
|
|
|
|
%prep
|
|
%setup -q -n btrfs-progs-%{tar_version}
|
|
%patch0
|
|
%patch1 -p1
|
|
|
|
%build
|
|
make %{?jobs:-j%jobs} CFLAGS="%{optflags}" all convert
|
|
|
|
%install
|
|
make install DESTDIR=${RPM_BUILD_ROOT} prefix=%{_prefix} bindir=/sbin mandir=%{_mandir}
|
|
# command line options are not compatible (bnc#599224)
|
|
#ln ${RPM_BUILD_ROOT}/sbin/btrfsck ${RPM_BUILD_ROOT}/sbin/fsck.btrfs
|
|
ln /bin/true ${RPM_BUILD_ROOT}/sbin/fsck.btrfs
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
/sbin/btrfs
|
|
/sbin/btrfs-debug-tree
|
|
/sbin/btrfs-show
|
|
/sbin/btrfs-vol
|
|
/sbin/btrfs-convert
|
|
/sbin/btrfsck
|
|
/sbin/btrfsctl
|
|
/sbin/mkfs.btrfs
|
|
/sbin/fsck.btrfs
|
|
/sbin/btrfs-map-logical
|
|
%_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
|
|
%_mandir/man8/btrfs.8.gz
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%changelog
|