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