]>
Commit | Line | Data |
---|---|---|
e3346250 AM |
1 | Summary: Utilities belonging to the btrfs filesystem |
2 | Name: btrfs-progs | |
1295fb7d | 3 | Version: 0.19 |
e3346250 AM |
4 | Release: 1 |
5 | License: GPL v2 | |
6 | Group: Applications/System | |
7 | Source0: http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/%{name}-%{version}.tar.bz2 | |
1295fb7d | 8 | # Source0-md5: 5854728d080cc76f21a83bdc99b6ddaa |
e3346250 AM |
9 | URL: http://btrfs.wiki.kernel.org/ |
10 | BuildRequires: autoconf >= 2.50 | |
11 | BuildRequires: automake | |
12 | BuildRequires: libuuid-devel | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %define _sbindir /sbin | |
16 | ||
17 | %description | |
18 | Btrfs is a new copy on write filesystem for Linux aimed at | |
19 | implementing advanced features while focusing on fault tolerance, | |
20 | repair and easy administration. | |
21 | ||
22 | %prep | |
23 | %setup -q | |
24 | ||
1295fb7d | 25 | sed -i -e 's#gcc#$(CC)#g' Makefile |
e3346250 AM |
26 | |
27 | %build | |
28 | %{__make} \ | |
29 | CC="%{__cc}" \ | |
30 | CFLAGS="%{rpmcppflags} %{rpmcflags}" | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} | |
35 | ||
36 | %{__make} install \ | |
1295fb7d | 37 | prefix=%{_prefix} \ |
e3346250 | 38 | bindir=%{_sbindir} \ |
1295fb7d | 39 | mandir=%{_mandir} \ |
e3346250 AM |
40 | DESTDIR=$RPM_BUILD_ROOT |
41 | ||
42 | ln -sf btrfsck $RPM_BUILD_ROOT%{_sbindir}/fsck.btrfs | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc INSTALL | |
50 | %attr(755,root,root) %{_sbindir}/* | |
1295fb7d | 51 | %{_mandir}/man8/*.8* |