1 |
tmb |
1179838 |
%define rev git20170918 |
2 |
alexl |
808331 |
|
3 |
wally |
1237847 |
%define rel 2 |
4 |
|
|
|
5 |
alexl |
808331 |
Name: aufs-tools |
6 |
tmb |
1179838 |
Version: 4.14 |
7 |
wally |
1237847 |
Release: %mkrel -c %{rev} %{rel} |
8 |
alexl |
808331 |
|
9 |
|
|
Group: System/Base |
10 |
|
|
Summary: Tools to manage aufs filesystems |
11 |
|
|
License: GPLv2+ |
12 |
|
|
Url: http://aufs.sourceforge.net |
13 |
|
|
|
14 |
tv |
983095 |
# 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 |
tmb |
1064220 |
Source0: %{name}-%{version}-%{rev}.tar.xz |
19 |
tmb |
984769 |
Patch0: %{name}-3.14-deb-static.patch |
20 |
|
|
Patch1: %{name}-3.14-deb-manpage.patch |
21 |
tmb |
1064220 |
Patch2: aufs-util-fix-version-check.patch |
22 |
tmb |
1078795 |
BuildRequires: kernel-userspace-headers >= 4.9.0-1 |
23 |
alexl |
808331 |
|
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 |
tmb |
984769 |
%patch2 -p1 |
37 |
tmb |
816610 |
|
38 |
alexl |
808331 |
sed -i 's|-o root -g root||g' Makefile |
39 |
tmb |
816610 |
sed -i '/install_ulib: Tgt/ s,/usr/lib,%{_libdir},' fhsm/Makefile |
40 |
alexl |
808331 |
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 |
wally |
1237847 |
%setup_compile_flags |
48 |
tmb |
1064220 |
%make LibAuDir=%{_libdir} |
49 |
alexl |
808331 |
|
50 |
|
|
%install |
51 |
tmb |
1064220 |
%makeinstall DESTDIR=%{buildroot} LibAuDir=%{_libdir} |
52 |
alexl |
808331 |
|
53 |
|
|
%files |
54 |
|
|
%doc README |
55 |
|
|
%config(noreplace) %{_sysconfdir}/default/aufs |
56 |
|
|
%{_bindir}/* |
57 |
tmb |
816610 |
%{_libdir}/* |
58 |
alexl |
808331 |
%{_sbindir}/* |
59 |
|
|
%{_mandir}/man*/*.* |