/[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 1039201 - (show annotations) (download)
Wed Jul 6 21:36:10 2016 UTC (9 years ago) by tmb
File size: 1669 byte(s)
fix version check for kernel 4.7
1 %define rev git20160321
2
3 Name: aufs-tools
4 Version: 4.7
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}-4.0-%{rev}.tar.xz
17 Patch0: %{name}-3.14-deb-static.patch
18 Patch1: %{name}-3.14-deb-manpage.patch
19 Patch2: aufs-util-fix-AuVersionGitBranch.patch
20 Patch3: aufs-util-fix-version-check.patch
21 BuildRequires: kernel-userspace-headers >= 4.7.0-0.rc6.1
22
23 %description
24 These utilities are always necessary for aufs.
25 The aufs driver provides a unification file system for the Linux kernel. It
26 allows one to virtually merge the contents of several directories and/or stack
27 them, so that apparent file changes in the aufs end in file changes in only one
28 of the source directories.
29 This package contains utilities needed to configure aufs containers on-the-fly.
30
31 %prep
32 %setup -q -n aufs-util
33 %patch0 -p1
34 %patch1 -p1
35 %patch2 -p1
36 %patch3 -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 %make
48
49 %install
50 %makeinstall DESTDIR=%{buildroot}
51
52 %files
53 %doc README
54 %config(noreplace) %{_sysconfdir}/default/aufs
55 %{_bindir}/*
56 %{_libdir}/*
57 %{_sbindir}/*
58 %{_mandir}/man*/*.*

  ViewVC Help
Powered by ViewVC 1.1.30