]> git.pld-linux.org Git - packages/btrfs-progs.git/blame - btrfs-progs.spec
- add patches from fedora
[packages/btrfs-progs.git] / btrfs-progs.spec
CommitLineData
e3346250
AM
1Summary: Utilities belonging to the btrfs filesystem
2Name: btrfs-progs
1295fb7d 3Version: 0.19
45019325 4Release: 2
e3346250
AM
5License: GPL v2
6Group: Applications/System
7Source0: http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/%{name}-%{version}.tar.bz2
1295fb7d 8# Source0-md5: 5854728d080cc76f21a83bdc99b6ddaa
45019325 9Patch0: %{name}-fix-labels.patch
10Patch1: %{name}-build-everything.patch
11Patch2: %{name}-valgrind.patch
12Patch3: %{name}-fix-return-value.patch
13Patch4: %{name}-build-fixes.patch
14Patch5: %{name}-upstream.patch
e3346250
AM
15URL: http://btrfs.wiki.kernel.org/
16BuildRequires: autoconf >= 2.50
17BuildRequires: automake
18BuildRequires: libuuid-devel
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%define _sbindir /sbin
22
23%description
24Btrfs is a new copy on write filesystem for Linux aimed at
25implementing advanced features while focusing on fault tolerance,
26repair and easy administration.
27
28%prep
29%setup -q
45019325 30%patch0 -p1
31%patch2 -p1
32%patch3 -p1
33%patch4 -p1
34%patch5 -p1
35%patch1 -p1
e3346250 36
1295fb7d 37sed -i -e 's#gcc#$(CC)#g' Makefile
e3346250
AM
38
39%build
40%{__make} \
41 CC="%{__cc}" \
42 CFLAGS="%{rpmcppflags} %{rpmcflags}"
43
44%install
45rm -rf $RPM_BUILD_ROOT
46install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
47
48%{__make} install \
1295fb7d 49 prefix=%{_prefix} \
e3346250 50 bindir=%{_sbindir} \
1295fb7d 51 mandir=%{_mandir} \
e3346250
AM
52 DESTDIR=$RPM_BUILD_ROOT
53
54ln -sf btrfsck $RPM_BUILD_ROOT%{_sbindir}/fsck.btrfs
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
61%doc INSTALL
62%attr(755,root,root) %{_sbindir}/*
1295fb7d 63%{_mandir}/man8/*.8*
This page took 0.48599 seconds and 4 git commands to generate.