/[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 1078795 - (hide 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 tmb 1064220 %define rev git20161010
2 alexl 808331
3     Name: aufs-tools
4 tmb 1078795 Version: 4.9
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 1064220 Source0: %{name}-%{version}-%{rev}.tar.xz
17 tmb 984769 Patch0: %{name}-3.14-deb-static.patch
18     Patch1: %{name}-3.14-deb-manpage.patch
19 tmb 1064220 Patch2: aufs-util-fix-version-check.patch
20 tmb 1078795 BuildRequires: kernel-userspace-headers >= 4.9.0-1
21 alexl 808331
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 tmb 984769 %patch2 -p1
35 tmb 816610
36 alexl 808331 sed -i 's|-o root -g root||g' Makefile
37 tmb 816610 sed -i '/install_ulib: Tgt/ s,/usr/lib,%{_libdir},' fhsm/Makefile
38 alexl 808331 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 tmb 1064220 %make LibAuDir=%{_libdir}
46 alexl 808331
47     %install
48 tmb 1064220 %makeinstall DESTDIR=%{buildroot} LibAuDir=%{_libdir}
49 alexl 808331
50     %files
51     %doc README
52     %config(noreplace) %{_sysconfdir}/default/aufs
53     %{_bindir}/*
54 tmb 816610 %{_libdir}/*
55 alexl 808331 %{_sbindir}/*
56     %{_mandir}/man*/*.*

  ViewVC Help
Powered by ViewVC 1.1.30