1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
%define avfs_release redhat60
%define avfs_version 0.5.2
%define kernel_version 2.2.5-15
Summary: A Virtual File System
Name: avfs
Version: %{avfs_version}
Release: %{avfs_release}
Copyright: LGPL
Group: System_Environment/Daemons
Source: http://www.inf.bme.hu/~mszeredi/avfs/avfs-%{avfs_version}.tar.gz
URL: http://www.inf.bme.hu/~mszeredi/avfs
Packager: Miklos Szeredi <miklos@szeredi.hu>
BuildRoot: /tmp/avfs
AutoReqProv: no
Requires: kernel = %{kernel_version}
%description
AVFS is a system, which enables all programs to look inside gzip, tar,
zip, ... files, without recompiling the programs or changing the
kernel.
%prep
%setup
%build
./configure --disable-debug
make
%install
rm -rf "$RPM_BUILD_ROOT"
make install_root="$RPM_BUILD_ROOT" install
%clean
rm -rf "$RPM_BUILD_ROOT"
%pre
if test "$1" -gt 1; then
/etc/rc.d/init.d/avfscoda stop
fi
%post
if test ! -e /overlay; then mkdir /overlay; fi
if test "$1" = 1; then
/etc/rc.d/init.d/avfscoda start
fi
%preun
if test "$1" = 0; then
/etc/rc.d/init.d/avfscoda stop
fi
%postun
if test "$1" -ge 1; then
/etc/rc.d/init.d/avfscoda start
fi
%files
%doc README INSTALL.avfscoda INSTALL.preload COPYING COPYING.LIB FORMAT NEWS TODO
%dir /usr/lib/avfs
%dir /usr/lib/avfs/extfs
/usr/sbin/avfscoda
/dev/cfs0
/usr/lib/avfs/extfs/*
/lib/modules/%{kernel_version}/misc/redir.o
/etc/profile.d/avfscoda.sh
/etc/profile.d/avfscoda.csh
/etc/rc.d/init.d/avfscoda
/etc/rc.d/rc?.d/???avfscoda
|