Summary: A highly-available distributed filesystem Name: intermezzo Version: %{VERSION} Release: 1mvd Source: ftp://ftp.inter-mezzo.org/pub/intermezzo/%{distdir}.tar.gz Copyright: GPL BuildRoot: /var/tmp/%{name}-%{version}-root Group: Networking/Daemons URL: http://www.inter-mezzo.org/ Requires: perl-Time-HiRes perl-Storable perl-POE perl-Term-ReadLine-Gnu perl-XML-Simple perl-XML-Parser Requires: mount >= 2.10m-6.1 Requires: e2fsprogs = 1.20.WIP.sct-20010216.3mvd # This is a funky way to to BuildRequires, but it makes cross-building # SRPMS a little easier. %(rpm -q rpm >/dev/null 2>&1 && echo 'BuildRequires: %{requires}') # Finally, we require the kernel-source package to build Presto. #Requires: kernel-source %description InterMezzo is a distributed filesystem inspired by Coda, but much simpler. %prep %setup -n %{distdir} %build make all PRESTO= %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} make install PRESTO= DESTDIR=$RPM_BUILD_ROOT # Install the Presto sources. SRCPRESTO=$RPM_BUILD_ROOT/usr/src/presto-%{version} mkdir -p $SRCPRESTO (cd presto && tar -cf - .) | (cd $SRCPRESTO && tar -xvBpf -) # Install the test harness and strip build code. tar -cf - tests | (cd $RPM_BUILD_ROOT/usr/lib/intermezzo && tar -xvBpf -) lento/tools/use-lib $RPM_BUILD_ROOT/usr/lib/intermezzo/tests/common.sh %clean rm -rf $RPM_BUILD_ROOT %pre if ! grep "^InterMezzo:" /etc/group &> /dev/null; then gid=4711 # start with the default while [ $gid -lt 65536 ]; do groupadd -g $gid InterMezzo &> /dev/null if [ $? = 0 ]; then # success! gid=65567 # exit the loop fi done fi %post chkconfig --add lento # FIXME: We may eventually support and presto RPMs for stock kernels. # Even if we do, we leave this option open for people with custom # kernels. cat </dev/null test -L linux/version.h && rm linux/version.h test -d .depfiles && rmdir .depfiles if [ "$1" -eq 0 ] then chkconfig --del lento || exit 0 fi %postun if [ "$1" -eq 0 ]; then groupdel InterMezzo fi %files %defattr(-, root, root) %doc COPYING ChangeLog NEWS INSTALL %doc doc/*.html doc/*.sgml doc/*.txt %config /etc/rc.d/init.d/lento # FIXME: We currently depend on building in a BuildRoot to prevent # sucking in files we don't want. /usr/sbin/* /usr/lib/intermezzo /usr/src/presto-%{version} # For the past... #/usr/man/man1/* #/usr/man/man3/* # For the future... /usr/share/man %changelog * Tue Apr 24 2001 Gordon Matzigkeit - Actually install manpages. * Wed Apr 11 2001 Brian J. Murrell - include manpages * Mon Apr 09 2001 Brian J. Murrell - numerous changes to prepare for 1.0 release * Mon Nov 27 2000 Gordon Matzigkeit - Initial spec