/[packages]/cauldron/aufs-tools/current/SPECS/aufs-tools.spec
ViewVC logotype

Contents of /cauldron/aufs-tools/current/SPECS/aufs-tools.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1078795 - (show annotations) (download)
Sat Dec 31 01:10:53 2016 UTC (8 years, 6 months ago) by tmb
File size: 1650 byte(s)
rebuild for kernel 4.9 series
1 %define rev git20161010
2
3 Name: aufs-tools
4 Version: 4.9
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 # 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 Source0: %{name}-%{version}-%{rev}.tar.xz
17 Patch0: %{name}-3.14-deb-static.patch
18 Patch1: %{name}-3.14-deb-manpage.patch
19 Patch2: aufs-util-fix-version-check.patch
20 BuildRequires: kernel-userspace-headers >= 4.9.0-1
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 %patch2 -p1
35
36 sed -i 's|-o root -g root||g' Makefile
37 sed -i '/install_ulib: Tgt/ s,/usr/lib,%{_libdir},' fhsm/Makefile
38 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 LibAuDir=%{_libdir}
46
47 %install
48 %makeinstall DESTDIR=%{buildroot} LibAuDir=%{_libdir}
49
50 %files
51 %doc README
52 %config(noreplace) %{_sysconfdir}/default/aufs
53 %{_bindir}/*
54 %{_libdir}/*
55 %{_sbindir}/*
56 %{_mandir}/man*/*.*

  ViewVC Help
Powered by ViewVC 1.1.30