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