1 |
%define rev git20150126 |
2 |
|
3 |
Name: aufs-tools |
4 |
Version: 3.14 |
5 |
Release: %mkrel -c %{rev} 1 |
6 |
|
7 |
Group: System/Base |
8 |
Summary: Tools to manage aufs filesystems |
9 |
License: GPLv2+ |
10 |
Url: http://aufs.sourceforge.net |
11 |
|
12 |
Source0: %{name}-%{version}-%{rev}.tar.xz |
13 |
Patch0: %{name}-%{version}-deb-static.patch |
14 |
Patch1: %{name}-%{version}-deb-manpage.patch |
15 |
|
16 |
BuildRequires: kernel-userspace-headers |
17 |
|
18 |
%description |
19 |
These utilities are always necessary for aufs. |
20 |
The aufs driver provides a unification file system for the Linux kernel. It |
21 |
allows one to virtually merge the contents of several directories and/or stack |
22 |
them, so that apparent file changes in the aufs end in file changes in only one |
23 |
of the source directories. |
24 |
This package contains utilities needed to configure aufs containers on-the-fly. |
25 |
|
26 |
%prep |
27 |
%setup -q -n aufs-util |
28 |
%patch0 -p1 |
29 |
%patch1 -p1 |
30 |
|
31 |
sed -i 's|-o root -g root||g' Makefile |
32 |
sed -i '/install_ulib: Tgt/ s,/usr/lib,%{_libdir},' fhsm/Makefile |
33 |
sed -i '/install_ulib: Tgt/ s,/usr/lib,%{_libdir},' libau/Makefile |
34 |
sed -i '/install_sbin: Tgt/ s,/sbin,%{_sbindir},' Makefile |
35 |
sed -i 's|/sbin|%{_sbindir}|g' README aufs.in.5 aubrsync |
36 |
sed -i 's|sudo ||g' aufs.in.5 aubrsync aufs.shlib |
37 |
make clean |
38 |
|
39 |
%build |
40 |
%make |
41 |
|
42 |
%install |
43 |
%makeinstall DESTDIR=%{buildroot} |
44 |
|
45 |
%files |
46 |
%doc README |
47 |
%config(noreplace) %{_sysconfdir}/default/aufs |
48 |
%{_bindir}/* |
49 |
%{_libdir}/* |
50 |
%{_sbindir}/* |
51 |
%{_mandir}/man*/*.* |