]> git.pld-linux.org Git - packages/btrfs-progs.git/blame - btrfs-progs.spec
up to 3.12; drop all patches
[packages/btrfs-progs.git] / btrfs-progs.spec
CommitLineData
e3346250
AM
1Summary: Utilities belonging to the btrfs filesystem
2Name: btrfs-progs
7172bf1c
ER
3Version: 3.12
4Release: 1
e3346250
AM
5License: GPL v2
6Group: Applications/System
7172bf1c
ER
7Source0: https://www.kernel.org/pub/linux/kernel/people/mason/btrfs-progs/%{name}-v%{version}.tar.xz
8# Source0-md5: cd96bb73acd864e577cddba5fe310650
e3346250 9URL: http://btrfs.wiki.kernel.org/
7172bf1c
ER
10BuildRequires: acl-devel
11BuildRequires: e2fsprogs-devel
12BuildRequires: libblkid-devel
e3346250 13BuildRequires: libuuid-devel
7172bf1c
ER
14BuildRequires: lzo-devel
15BuildRequires: tar >= 1:1.22
16BuildRequires: xz
1d46f4d5 17BuildRequires: zlib-devel
e3346250
AM
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define _sbindir /sbin
21
22%description
23Btrfs is a new copy on write filesystem for Linux aimed at
24implementing advanced features while focusing on fault tolerance,
25repair and easy administration.
26
7172bf1c
ER
27%package devel
28Summary: btrfs filesystem-specific libraries and headers
29Group: Development/Libraries
30Requires: %{name} = %{version}-%{release}
31
32%description devel
33btrfs-progs-devel contains the libraries and header files needed to
34develop btrfs filesystem-specific programs.
e3346250 35
7172bf1c
ER
36You should install btrfs-progs-devel if you want to develop btrfs
37filesystem-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
49rm -rf $RPM_BUILD_ROOT
50install -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
58ln -sf btrfsck $RPM_BUILD_ROOT%{_sbindir}/fsck.btrfs
59
7172bf1c
ER
60rm $RPM_BUILD_ROOT%{_libdir}/*.a
61
e3346250
AM
62%clean
63rm -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
This page took 0.171463 seconds and 4 git commands to generate.