]>
Commit | Line | Data |
---|---|---|
e3346250 AM |
1 | Summary: Utilities belonging to the btrfs filesystem |
2 | Name: btrfs-progs | |
7172bf1c ER |
3 | Version: 3.12 |
4 | Release: 1 | |
e3346250 AM |
5 | License: GPL v2 |
6 | Group: Applications/System | |
7172bf1c ER |
7 | Source0: https://www.kernel.org/pub/linux/kernel/people/mason/btrfs-progs/%{name}-v%{version}.tar.xz |
8 | # Source0-md5: cd96bb73acd864e577cddba5fe310650 | |
e3346250 | 9 | URL: http://btrfs.wiki.kernel.org/ |
7172bf1c ER |
10 | BuildRequires: acl-devel |
11 | BuildRequires: e2fsprogs-devel | |
12 | BuildRequires: libblkid-devel | |
e3346250 | 13 | BuildRequires: libuuid-devel |
7172bf1c ER |
14 | BuildRequires: lzo-devel |
15 | BuildRequires: tar >= 1:1.22 | |
16 | BuildRequires: xz | |
1d46f4d5 | 17 | BuildRequires: zlib-devel |
e3346250 AM |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %define _sbindir /sbin | |
21 | ||
22 | %description | |
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. | |
26 | ||
7172bf1c ER |
27 | %package devel |
28 | Summary: btrfs filesystem-specific libraries and headers | |
29 | Group: Development/Libraries | |
30 | Requires: %{name} = %{version}-%{release} | |
31 | ||
32 | %description devel | |
33 | btrfs-progs-devel contains the libraries and header files needed to | |
34 | develop btrfs filesystem-specific programs. | |
e3346250 | 35 | |
7172bf1c ER |
36 | You should install btrfs-progs-devel if you want to develop btrfs |
37 | filesystem-specific programs. | |
38 | ||
39 | %prep | |
40 | %setup -q -n %{name}-v%{version} | |
e3346250 AM |
41 | |
42 | %build | |
43 | %{__make} \ | |
7172bf1c | 44 | V=1 \ |
e3346250 | 45 | CC="%{__cc}" \ |
7172bf1c | 46 | CFLAGS="%{rpmcppflags} %{rpmcflags} -fno-strict-aliasing" |
e3346250 AM |
47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} | |
e3346250 | 51 | %{__make} install \ |
1295fb7d | 52 | prefix=%{_prefix} \ |
e3346250 | 53 | bindir=%{_sbindir} \ |
1295fb7d | 54 | mandir=%{_mandir} \ |
7172bf1c | 55 | libdir=%{_libdir} \ |
e3346250 AM |
56 | DESTDIR=$RPM_BUILD_ROOT |
57 | ||
58 | ln -sf btrfsck $RPM_BUILD_ROOT%{_sbindir}/fsck.btrfs | |
59 | ||
7172bf1c ER |
60 | rm $RPM_BUILD_ROOT%{_libdir}/*.a |
61 | ||
e3346250 AM |
62 | %clean |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc INSTALL | |
7172bf1c ER |
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* | |
93 | ||
94 | %files devel | |
95 | %defattr(644,root,root,755) | |
96 | %{_includedir}/btrfs | |
97 | %{_libdir}/libbtrfs.so |