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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 984784 - (hide annotations) (download)
Thu Mar 3 11:55:06 2016 UTC (9 years, 4 months ago) by tmb
File size: 1652 byte(s)
fix aufs version check
1 tv 983095 %define rev git20160301
2 alexl 808331
3     Name: aufs-tools
4 tmb 984784 Version: 4.4
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 tmb 984784 Source0: %{name}-4.0-%{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 tmb 984784 Patch3: aufs-util-fix-version-check.patch
21 alexl 808331 BuildRequires: kernel-userspace-headers
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 tmb 984769 %patch2 -p1
36 tmb 984784 %patch3 -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     %make
48    
49     %install
50     %makeinstall DESTDIR=%{buildroot}
51    
52     %files
53     %doc README
54     %config(noreplace) %{_sysconfdir}/default/aufs
55     %{_bindir}/*
56 tmb 816610 %{_libdir}/*
57 alexl 808331 %{_sbindir}/*
58     %{_mandir}/man*/*.*

  ViewVC Help
Powered by ViewVC 1.1.30