1 Summary: Utilities belonging to the btrfs filesystem
6 Group: Applications/System
7 Source0: https://www.kernel.org/pub/linux/kernel/people/mason/btrfs-progs/%{name}-v%{version}.tar.xz
8 # Source0-md5: cd96bb73acd864e577cddba5fe310650
9 URL: http://btrfs.wiki.kernel.org/
10 BuildRequires: acl-devel
11 BuildRequires: e2fsprogs-devel
12 BuildRequires: libblkid-devel
13 BuildRequires: libuuid-devel
14 BuildRequires: lzo-devel
15 BuildRequires: tar >= 1:1.22
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.
28 Summary: btrfs filesystem-specific libraries and headers
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release}
33 btrfs-progs-devel contains the libraries and header files needed to
34 develop btrfs filesystem-specific programs.
36 You should install btrfs-progs-devel if you want to develop btrfs
37 filesystem-specific programs.
40 %setup -q -n %{name}-v%{version}
46 CFLAGS="%{rpmcppflags} %{rpmcflags} -fno-strict-aliasing"
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
56 DESTDIR=$RPM_BUILD_ROOT
58 ln -sf btrfsck $RPM_BUILD_ROOT%{_sbindir}/fsck.btrfs
60 rm $RPM_BUILD_ROOT%{_libdir}/*.a
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
68 %attr(755,root,root) %{_sbindir}/btrfsck
69 %attr(755,root,root) %{_sbindir}/mkfs.btrfs
70 %attr(755,root,root) %{_sbindir}/fsck.btrfs
71 %attr(755,root,root) %{_sbindir}/btrfs-debug-tree
72 %attr(755,root,root) %{_sbindir}/btrfs-image
73 %attr(755,root,root) %{_sbindir}/btrfs-convert
74 %attr(755,root,root) %{_sbindir}/btrfstune
75 %attr(755,root,root) %{_sbindir}/btrfs
76 %attr(755,root,root) %{_sbindir}/btrfs-map-logical
77 %attr(755,root,root) %{_sbindir}/btrfs-zero-log
78 %attr(755,root,root) %{_sbindir}/btrfs-find-root
79 %attr(755,root,root) %{_sbindir}/btrfs-show-super
80 %attr(755,root,root) %{_libdir}/libbtrfs.so.*.*
81 %ghost %{_libdir}/libbtrfs.so.0
82 %{_mandir}/man8/btrfs-image.8*
83 %{_mandir}/man8/btrfsck.8*
84 %{_mandir}/man8/mkfs.btrfs.8*
85 %{_mandir}/man8/btrfs.8*
86 %{_mandir}/man8/btrfs-convert.8*
87 %{_mandir}/man8/btrfs-debug-tree.8*
88 %{_mandir}/man8/btrfs-find-root.8*
89 %{_mandir}/man8/btrfs-map-logical.8*
90 %{_mandir}/man8/btrfs-show-super.8*
91 %{_mandir}/man8/btrfs-zero-log.8*
92 %{_mandir}/man8/btrfstune.8*
95 %defattr(644,root,root,755)
97 %{_libdir}/libbtrfs.so