]> git.pld-linux.org Git - packages/btrfs-progs.git/blob - btrfs-progs.spec
up to 3.12; drop all patches
[packages/btrfs-progs.git] / btrfs-progs.spec
1 Summary:        Utilities belonging to the btrfs filesystem
2 Name:           btrfs-progs
3 Version:        3.12
4 Release:        1
5 License:        GPL v2
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
16 BuildRequires:  xz
17 BuildRequires:  zlib-devel
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
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.
35
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}
41
42 %build
43 %{__make} \
44         V=1 \
45         CC="%{__cc}" \
46         CFLAGS="%{rpmcppflags} %{rpmcflags} -fno-strict-aliasing"
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
51 %{__make} install \
52         prefix=%{_prefix} \
53         bindir=%{_sbindir} \
54         mandir=%{_mandir} \
55         libdir=%{_libdir} \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 ln -sf btrfsck $RPM_BUILD_ROOT%{_sbindir}/fsck.btrfs
59
60 rm $RPM_BUILD_ROOT%{_libdir}/*.a
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
66 %defattr(644,root,root,755)
67 %doc INSTALL
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.036135 seconds and 4 git commands to generate.