File aufs.spec of Package aufs
#
# spec file for package aufs (Version cvs20081020)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
# Commandline:
Name: aufs
# BuildRequires: %kernel_module_package_buildreq e2fsprogs-devel kernel-source kernel-syms module-init-tools
BuildRequires: e2fsprogs-devel kernel-source kernel-syms module-init-tools
License: GPL v2 or later
Group: System/Filesystems
Version: cvs20081020
Release: 1.<RELEASE32>
Source0: aufs-%{version}.tar.bz2
Source100: preamble
Source101: series
Patch0: aa-hack
Patch1: local.mk-fix
Patch2: aufs-stack-protect-stub.diff
Patch3: aufs-fsetattr
Patch4: aufs-TMPFS_MAGIC
Patch5: aufs-factor-out-__lookup_one_len
Patch6: aufs-push-lookup-down
Patch7: aufs-use-release_open_intent
Patch8: aufs-nfs4-is-special
Url: http://aufs.sf.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Utilities to Manipulate aufs Components
%suse_kernel_module_package -n %{name} -p %_sourcedir/preamble kdump um
%description
These are command line tools to inspect and manipulate the components
merged by aufs in user space.
Authors:
--------
Junjiro Okajima
%package KMP
License: GPL v2 or later
Group: System/Filesystems
Summary: Kernel modules required to merge directories
%description KMP
Aufs is a stackable unification file system, which can merge the
contents of several directories (so called branches) while keeping
their physical content separate. It allows any mix of read-only and
read-write branches, as well as insertion and deletion of branches on
the fly.
Authors:
--------
Junjiro Okajima
%prep
%setup -q -n aufs
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%build
export EXTRA_CFLAGS="${RPM_OPT_FLAGS//-fstack-protector/}"
mkdir -p obj || true
for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -r fs/aufs25 obj/$flavor
# export KFLAVOR=$flavor
# export KBUILD_EXTMOD=`pwd`/obj/$flavor
make -f local.mk KDIR=/usr/src/linux-obj/%_target_cpu/$flavor \
M=$PWD/obj/$flavor
done
%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
for flavor in %flavors_to_build; do
make -C /usr/src/linux-obj/%_target_cpu/$flavor M=$PWD/obj/$flavor \
V=1 modules_install
done
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man5
mkdir -p $RPM_BUILD_ROOT/sbin
cp -p util/aufs.5 $RPM_BUILD_ROOT/usr/share/man/man5/.
install util/*.aufs $RPM_BUILD_ROOT/sbin/
cp -p sample/unionctl util/au{find.sh,lchown,plink} \
$RPM_BUILD_ROOT/sbin/.
%clean
rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-,root,root)
# %doc README debian/changelog
/sbin/*
/usr/share/man/man?/*
%changelog
* Wed Oct 22 2008 jeffm@suse.com
- Split out NFSv2/3 enablement from NFSv4.
- Enabled NFS2/3 support
- NFSv4 disabled due to unexported symbol
requirements in the kernel
* Tue Oct 14 2008 jeffm@suse.com
- update to CVS 2008-10-20
- lots of bug fixes
* Thu Sep 04 2008 dbornkessel@suse.de
- changed install path to 'updates' in order to make weak-updates work
* Thu Aug 14 2008 jeffm@suse.com
- update to CVS 2008-08-14, works with 2.6.27
* Mon Jul 21 2008 coolo@suse.de
- update to CVS 2008-07-21
* Wed Apr 30 2008 duwe@suse.de
- remove -fstack-protector from CFLAGS (bnc#381259)
* Tue Apr 29 2008 jeffm@suse.com
- update to CVS 2008-04-29, new 2.6.25 API
* Wed Apr 16 2008 jeffm@suse.com
- Added fix for ia_file/fsetattr changes
* Fri Mar 28 2008 jeffm@suse.com
- update to CVS 2008-03-24, lots of bug fixes
* Tue Mar 11 2008 jeffm@suse.com
- update to CVS 2008-03-10, update for 2.6.25-rc
* Wed Jan 30 2008 duwe@suse.de
- update to CVS 2008-01-28, fixing bugs (BNC)
[#356902],#353881 and maybe #328798
* Thu Jan 24 2008 coolo@suse.de
- update to current cvs (20080124)
* Mon Nov 12 2007 ro@suse.de
- update to current cvs (20071112)
* Thu Oct 25 2007 ro@suse.de
- update to current cvs (20071025) to fix build
* Sun Aug 12 2007 dmueller@suse.de
- fix permissions
* Tue Jun 05 2007 jeffm@suse.com
- Patch to work with 2.6.22
* Wed May 09 2007 duwe@suse.de
- hack the "vfs_*" interface to match the AppArmor API change
- fix "local.mk" to work with multiple kernel flavours