1 Summary: Utilities belonging to the btrfs filesystem
6 Group: Applications/System
7 Source0: http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/%{name}-%{version}.tar.bz2
8 # Source0-md5: 5854728d080cc76f21a83bdc99b6ddaa
9 Patch0: %{name}-fix-labels.patch
10 Patch1: %{name}-build-everything.patch
11 Patch2: %{name}-valgrind.patch
12 Patch3: %{name}-fix-return-value.patch
13 Patch4: %{name}-build-fixes.patch
14 Patch5: %{name}-upstream.patch
15 URL: http://btrfs.wiki.kernel.org/
16 BuildRequires: libuuid-devel
17 BuildRequires: zlib-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _sbindir /sbin
23 Btrfs is a new copy on write filesystem for Linux aimed at
24 implementing advanced features while focusing on fault tolerance,
25 repair and easy administration.
36 sed -i -e 's#gcc#$(CC)#g' Makefile
41 CFLAGS="%{rpmcppflags} %{rpmcflags}"
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
51 DESTDIR=$RPM_BUILD_ROOT
53 ln -sf btrfsck $RPM_BUILD_ROOT%{_sbindir}/fsck.btrfs
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_sbindir}/*