Sophie

Sophie

distrib > Mandriva > 2010.2 > x86_64 > by-pkgid > aa58eaa1146bfc55f9c05da77fbe26ee > files > 2

coda-debug-6.9.4-1mdv2009.1.src.rpm

# TODO rewrite initscript ( to create the device ), and load the module
#  check requires and buildrequires
#

Summary: Coda distributed filesystem
Name: coda-debug
Version: 6.9.4
Release: %mkrel 1
Url: http://www.coda.cs.cmu.edu/doc/html/index.html
Source: ftp://ftp.coda.cs.cmu.edu/pub/coda/src/coda-%{version}.tar.gz
License: GPL
Group: Networking/Other
BuildRequires: lwp-devel
BuildRequires: rvm-devel
BuildRequires: rpc2-devel
BuildRequires: rvm-tools
BuildRequires: ncurses-devel
BuildRequires: readline-devel
BuildRequires: byacc
BuildRequires: flex
Requires: bc
Requires(post,preun): rpm-helper
BuildRoot: %{_tmppath}/%{name}-%{version}

%description
Source package for the Coda filesystem.  Three packages are provided by
this rpm: the client and server and the backup components. Separately
you must install a kernel module, or have a Coda enabled kernel, and 
you should get the Coda documentation package.


%package client
Summary: Coda client
Group: Networking/Other
Requires: bc
Requires: ed
Requires(post,preun): rpm-helper

%description client
This package contains the main client program, the cachemanager Venus.
Also included are the binaries for the cfs, utilities for logging, ACL
manipulation etc, the hoarding tools for use with laptops and repair
tools for fixing conflicts. Finally there is the cmon and codacon
console utilities to monitor Coda's activities. You need a Coda
kernel-module for your kernel version, or Coda in your kernel, to have
a complete coda client.  Make sure to select the correct C library
version.

%package server
Summary: Coda server
Group: Networking/Other
Requires: bc
Requires: ed
Requires: rvm-tools
Requires(post,preun): rpm-helper

%description server
This package contains the fileserver codasrv for the coda filesystem,
as well as the volume utilities.  For highest performance you will
need a modified kernel with inode system calls.

%package backup
Summary: Coda backup coordinator
Group: Networking/Other
Requires: bc
Requires: ed
Requires(post,preun): rpm-helper

%description backup
This package contains the backup software for the coda filesystem, as
well as the volume utilities.

%prep
%setup -q -n coda-%{version}

#%patch0 -p1

%build
# chown -R $LOGNAME.users $RPM_BUILD_DIR/coda-%{version}
rm -rf $RPM_BUILD_DIR/obj-%{version}
mkdir $RPM_BUILD_DIR/obj-%{version}
cd $RPM_BUILD_DIR/obj-%{version}
$RPM_BUILD_DIR/coda-%{version}/configure --prefix=%{_prefix}
make

%install
cd $RPM_BUILD_DIR/obj-%{version}
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_prefix}/coda/venus.cache %{buildroot}/dev \
	 %{buildroot}%{_prefix}/coda/etc \
	 %{buildroot}/coda %{buildroot}%{_initrddir}\
	 %{buildroot}%{_libdir}/coda %{buildroot}%{_initrddir}
 %makeinstall_std

#make prefix=%{buildroot}%{_prefix} client-install 
#make prefix=%{buildroot}%{_prefix} server-install

touch %{buildroot}/coda/NOT_REALLY_CODA

# for non debuging versions
if [ X1 != X1 ]; then
   strip %{buildroot}%{_bindir}/* %{buildroot}/vice/bin/* %{buildroot}%{_sbindir}/* || :
fi
for i in %{buildroot}/%{_initrddir}/*init ;
do 
    mv $i ${i//.init/}
done

#mkdir -p %{buildroot}/%{_mandir}
#mv -f %{buildroot}/%{_prefix}/man/* %{buildroot}/%{_mandir}

%clean
rm -rf %{buildroot}
rm -rf $RPM_BUILD_DIR/obj-%{version}

%preun client
%_preun_service venus
	
%post client
%_post_service venus

%post server
%_post_service update
%_post_service auth2
%_post_service codasrv
#mknod /dev/cfs0 c 67 0

%preun server
%_preun_service update
%_preun_service auth2
%_preun_service codasrv
#rm -rf /dev/cfs0

%files client
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL ChangeLog LICENSE NEWS README*
%dir %{_prefix}/coda
%dir %{_prefix}/coda/etc
%dir %{_prefix}/coda/venus.cache
%dir /coda
%verify() /coda/NOT_REALLY_CODA
%config(noreplace)/etc/coda/venus.conf.ex
%{_initrddir}/venus
%{_sbindir}/codaconfedit
%{_sbindir}/venus
%{_sbindir}/venus-setup
%{_sbindir}/volmunge
%{_sbindir}/vutil
%{_bindir}/cfs
%{_bindir}/clog
%{_bindir}/cmon
%{_bindir}/codacon
%{_bindir}/cpasswd
%{_bindir}/ctokens
%{_bindir}/cunlog
%{_bindir}/filerepair
%{_bindir}/hoard
%{_bindir}/mklka
%{_bindir}/parser
%{_bindir}/removeinc
%{_bindir}/repair
%{_bindir}/coda_replay
%{_bindir}/spy
%{_bindir}/xaskuser
%{_bindir}/xfrepair
%{_bindir}/getvolinfo
%{_bindir}/rpc2ping
%{_bindir}/smon2

%{_mandir}/man1/cfs.1*
%{_mandir}/man1/clog.1*
%{_mandir}/man1/cmon.1*
%{_mandir}/man1/cunlog.1*
%{_mandir}/man1/hoard.1*
%{_mandir}/man1/repair.1*
%{_mandir}/man1/spy.1*
%{_mandir}/man1/coda_replay.1*
%{_mandir}/man1/cpasswd.1*
%{_mandir}/man1/ctokens.1*
%{_mandir}/man5/passwd.coda.5*
%{_mandir}/man8/venus.8*
%{_mandir}/man8/venus-setup.8*

%files server
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL ChangeLog LICENSE NEWS README*
%config(noreplace)/etc/coda/server.conf.ex
%config(noreplace)/etc/coda/realms
%{_sbindir}/auth2
%{_sbindir}/bldvldb.sh
%{_sbindir}/codasrv
%{_sbindir}/createvol_rep
%{_sbindir}/initpw
%{_sbindir}/inoder
%{_sbindir}/parserecdump
%{_sbindir}/partial-reinit.sh
%{_sbindir}/pdbtool
%{_sbindir}/printvrdb
%{_sbindir}/purgevol_rep
%{_sbindir}/startserver
%{_sbindir}/updatesrv
%{_sbindir}/updateclnt
%{_sbindir}/updatefetch
%{_sbindir}/vice-killvolumes
%{_sbindir}/vice-setup
%{_sbindir}/vice-setup-rvm
%{_sbindir}/vice-setup-srvdir
%{_sbindir}/vice-setup-user
%{_sbindir}/vice-setup-scm
%{_sbindir}/volutil
%{_bindir}/rvmsizer 
%{_sbindir}/codastart
%{_sbindir}/norton
%{_sbindir}/norton-reinit
%{_bindir}/reinit
%{_sbindir}/coda-server-logrotate
%{_bindir}/au
%{_bindir}/gcodacon
%{_bindir}/mkcodabf
%{_sbindir}/asrlauncher
%{_sbindir}/tokentool
%{_mandir}/man1/au.1*
%{_mandir}/man1/mkcodabf.1*
%{_mandir}/man5/maxgroupid.5*
%{_mandir}/man5/servers.5*
%{_mandir}/man5/vicetab.5*
%{_mandir}/man5/volumelist.5*
%{_mandir}/man5/vrdb.5*
%{_mandir}/man8/auth2.8*
%{_mandir}/man8/backup.8*
%{_mandir}/man8/bldvldb.sh.8*
%{_mandir}/man8/codasrv.8*
%{_mandir}/man8/createvol_rep.8*
%{_mandir}/man8/initpw.8*
%{_mandir}/man8/merge.8*
%{_mandir}/man8/norton.8*
%{_mandir}/man8/pdbtool.8*
%{_mandir}/man8/purgevol_rep.8*
%{_mandir}/man8/readdump.8*
%{_mandir}/man8/startserver.8*
%{_mandir}/man8/updateclnt.8*
%{_mandir}/man8/updatesrv.8*
%{_mandir}/man8/vice-setup.8*
%{_mandir}/man8/volmunge.8*
%{_mandir}/man8/volutil.8*
%{_mandir}/man8/vutil.8*

%{_initrddir}/codasrv
%{_initrddir}/auth2
%{_initrddir}/update

%files backup
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL ChangeLog LICENSE NEWS README*
%{_sbindir}/backup
%{_sbindir}/backup.sh
%{_sbindir}/merge
%{_sbindir}/readdump
%{_sbindir}/tape.pl
%{_sbindir}/updatesrv
%{_sbindir}/updateclnt
%{_sbindir}/updatefetch
%{_sbindir}/volutil
%{_sbindir}/codadump2tar
%{_mandir}/man5/backuplogs.5.*
%{_mandir}/man5/dumpfile.5.*
%{_mandir}/man5/dumplist.5.*


%changelog
* Fri Mar 06 2009 Guillaume Rousse <guillomovitch@mandriva.org> 6.9.4-1mdv2009.1
+ Revision: 349583
- new version
- rebuild for latest readline

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild
    - fix lwp buildrequires (b/c of breakage in lwp lib when adapting to new devel
      policy)
    - rebuild
    - fix prereq
    - kill re-definition of %%buildroot on Pixel's request
    - import coda-debug

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot


* Tue Aug  8 2006 Antoine Ginies <aginies@mandriva.com> 6.0.15-1mdv2007.0
- 6.0.15
- use mkrel

* Thu Feb 16 2006 Antoine Ginies <aginies@.mandriva.com> 6.0.14-1mdk
- 6.0.14 release
- fix BuildRequires
- adjust man and bin files
- remove amd64 patch (not more needed)

* Fri Apr  8 2005 Antoine Ginies <aginies@n1.mandrakesoft.com> 6.0.8-3mdk
- fix post server (typo on update)

* Fri Apr  8 2005 Antoine Ginies <aginies@n1.mandrakesoft.com> 6.0.8-2mdk
- fix requires for coda-debug-server (librpc2_4)

* Sun Apr 03 2005 Michael Scherer <misc@mandrake.org> 6.0.8-1mdk
- New release 6.0.8
- fix the spec file ( rpmlint error, packaging error )
- remove kerberos patch 

* Mon Mar 17 2003 Marcel Pol <mpol@gmx.net> 5.3.20-4mdk
- fix buildrequires again

* Sat Mar 15 2003 Marcel Pol <mpol@gmx.net> 5.3.20-3mdk
- fix buildrequires

* Fri Dec 20 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 5.3.20-2mdk
- add changelog OOps

* Fri Dec 20 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 5.3.20-1mdk
- 5.3.20

* Mon Nov 19 2001 Florin <florin@mandrakesoft.com> 5.3.17-2mdk
- update de requires in the server package

* Tue Nov 13 2001 Florin <florin@mandrakesoft.com> 5.3.17-1mdk
- 5.3.17
- update the BuildRequires to the latest librpc23
- replay is now coda_replay
- lose the egcs patch
- the README.w95 is now called README.win95
- add the kerberos support patch:
- au, clog, auth2 become now kau, kclog, kauth2

* Tue Sep 11 2001 Florin Grad <florin@mandrakesoft.com> 5.3.15-2mdk
- add the g++ patch. Use g++ instead of egcs++ for c++ code

* Mon Aug 27 2001 Florin Grad <florin@mandrakesoft.com> 5.3.15-1mdk
- 5.3.15
- use egcs++ instead of c++ as it doesn't compile (patch)
- use the (pre|post)_service macros
- add some doc files
- update the Require section

* Thu Aug 31 2000 Florin Grad <florin@mandrakesoft.com> 5.3.8-4mdk
- adding some macros entries

* Tue Jul 18 2000 Florin Grad <florin@mandrakesoft.com> 5.3.8-3mdk
- added a silly patch that removes the crypto options in the configure script 
* Wed Jul 5 2000 Florin Grad <florin@mandrakesoft.com> 5.3.8-2mdk
- the server-crypto and backup-crypto packages are build with openssl and openssl-devel
* Mon Jul 3 2000 Florin Grad <florin@mandrakesoft.com> 5.3.8-1mdk
- First attempt.
* Sun Jun 21 1998 Peter Braam <braam@cs.cmu.edu>
- get rid of the kernel package. This needs interaction during the build.
- no more separate libc, glibc packages
* Tue Dec 30 1997 Peter Braam <braam@cs.cmu.edu>
- several changes: documentation separate
- use variables: =`uname -r`, 5.3.8=coda version
* Mon Jun 02 1997 Peter Braam <braam@cs.cmu.edu>
- small changes to Elliots improvements.
- some of his ideas are now in the scripts
* Wed May 28 1997 Elliot Lee <sopwith@redhat.com>
- Based upon 4.0.3-1 spec file.
- Changed to BuildRoot
- Do as much as possible at build time instead of in %%post
- Added initscript for venus