/[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 2094044 - (show annotations) (download)
Sun Sep 8 08:08:06 2024 UTC (10 months, 1 week ago) by wally
File size: 1757 byte(s)
replace deprecated %%patchN with '%%patch -P N' (SILENT)
1 # no debug for now
2 %global debug_package %{nil}
3
4 %define rev git20201212
5
6 %define rel 2
7
8 Name: aufs-tools
9 Version: 5.8
10 Release: %mkrel -c %{rev} %{rel}
11
12 Group: System/Base
13 Summary: Tools to manage aufs filesystems
14 License: GPLv2+
15 Url: https://aufs.sourceforge.net/
16
17 # git clone git://git.code.sf.net/p/aufs/aufs-util aufs-util
18 # cd aufs-util
19 # git checkout aufs5.x-rcN
20 # git archive HEAD --prefix=aufs-util/ | xz > ../SOURCES/aufs-tools-%{version}-%{rev}.tar.xz
21 Source0: %{name}-%{version}-%{rev}.tar.xz
22 Patch0: %{name}-3.14-deb-static.patch
23 Patch1: %{name}-3.14-deb-manpage.patch
24 #Patch2: aufs-util-fix-version-check.patch
25 BuildRequires: kernel-userspace-headers >= 4.9.0-1
26
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 %patch -P 0 -p1
38 %patch -P 1 -p1
39 #patch -P 2 -p1
40
41 sed -i 's|-o root -g root||g' Makefile
42 sed -i '/install_ulib: Tgt/ s,/usr/lib,%{_libdir},' fhsm/Makefile
43 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 %set_build_flags
51 %make_build LibAuDir=%{_libdir}
52
53 %install
54 %makeinstall DESTDIR=%{buildroot} LibAuDir=%{_libdir}
55
56 %files
57 %doc README
58 %config(noreplace) %{_sysconfdir}/default/aufs
59 %{_bindir}/*
60 %{_libdir}/*
61 %{_sbindir}/*
62 %{_mandir}/man*/*.*

  ViewVC Help
Powered by ViewVC 1.1.30