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