Summary: A version control system. Name: @PACKAGE_TARNAME@ Version: @PACKAGE_VERSION@ Release: 1 License: GPL Group: Development/Tools Source: http://savannah.nongnu.org/download/cvs/%{name}-%{version}.tar.bz2 URL: http://cvs.nongnu.org/ Prereq: /sbin/install-info Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description @PACKAGE_NAME@ is a version control system which can record the history of your files (usually, but not always, source code). CVS only stores the differences between versions, instead of every version of every file you've ever created. CVS also keeps a log of who, when and why changes occurred. CVS is very helpful for managing releases and controlling the concurrent editing of source files among multiple authors. Instead of providing version control for a collection of files in a single directory, CVS provides version control for a hierarchical collection of directories consisting of revision controlled files. These directories and files can then be combined together to form a software release. Install the %{name} package if you need to use a version control system. %define gssapi %(test -r /usr/kerberos/lib/libkrb5.a && echo 1 || echo 0) %if %gssapi %package krb5 Summary: A version control system with Kerberos authentication. Group: Development/Tools Requires: %{name} BuildRequires: krb5-devel %description krb5 @PACKAGE_NAME@ is a version control system which can record the history of your files (usually, but not always, source code). CVS only stores the differences between versions, instead of every version of every file you've ever created. CVS also keeps a log of who, when and why changes occurred. CVS is very helpful for managing releases and controlling the concurrent editing of source files among multiple authors. Instead of providing version control for a collection of files in a single directory, CVS provides version control for a hierarchical collection of directories consisting of revision controlled files. These directories and files can then be combined together to form a software release. This package contains only a Kerberized version of the CVS binary. You should install the base %{name} package to get the standard CVS distribution. Install the Kerberos version of the %{name} package if you need to use a version control system with Kerberos authentication and encryption. %define _kerberosdir %{prefix}/kerberos %define _kerberosbindir %{_kerberosdir}/bin %endif %prep %setup -q %build # The Kerberized binary %if %gssapi %configure --with-gssapi=/usr/kerberos --enable-encryption make LDFLAGS=-s mv src/cvs src/cvs.krb5 %endif # The standard package %configure --without-gssapi make LDFLAGS=-s %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %makeinstall # The Kerberized binary %if %gssapi build-aux/install-sh src/cvs.krb5 $RPM_BUILD_ROOT%{_kerberosbindir}/cvs %endif # forcefully compress the info pages so that install-info will work properly # in the %%post gzip $RPM_BUILD_ROOT/%{_infodir}/cvs* || true rm -f $RPM_BUILD_ROOT/%{_infodir}/dir %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %post /sbin/install-info /%{_infodir}/cvs.info.gz /%{_infodir}/dir /sbin/install-info /%{_infodir}/cvsclient.info.gz /%{_infodir}/dir # Remove any existing uncompressed versions of the info files since # install-info doesn't and info doesn't seem to be very good at spotting that # its uncompressed cache is out of date. rm -f /%{_infodir}/cvs.info /%{_infodir}/cvs.info-? /%{_infodir}/cvs.info-?? rm -f /%{_infodir}/cvsclient.info /%{_infodir}/cvsclient.info-? rm -f /%{_infodir}/cvsclient.info-?? %preun if [ $1 = 0 ]; then # uninstall the info reference in the dir file /sbin/install-info --delete /%{_infodir}/cvs.info.gz /%{_infodir}/dir /sbin/install-info --delete /%{_infodir}/cvsclient.info.gz /%{_infodir}/dir fi %files %defattr(-,root,root) %doc AUTHORS BUGS FAQ MINOR-BUGS NEWS PROJECTS TODO README %doc doc/RCSFILES doc/*.ps %{_bindir}/* %{_mandir}/*/* %{_infodir}/*.info* %{_datadir}/%{name} %if %gssapi %files krb5 %defattr(-,root,root) %{_kerberosbindir}/* %endif %changelog * Wed Aug 31 2005 Derek Price - Update links to Savannah. s/Copyright/License/ for RPM 4.mumble. * Mon July 20 2005 Derek Price - Update to homepage on Savannah. * Mon May 09 2005 Derek Price - Find install-sh in its new location in the build-aux directory. * Wed Mar 31 2004 Mark D. Baushke - Do not fail if info DIR file is not present to be deleted. * Tue Feb 17 2004 Derek Price - Remove info DIR file to avoid RPM warning us about installing files we don't - package. * Tue May 27 2003 Derek Price - Install a few more files as part of doc. * Thu Mar 29 2002 Derek Price - Misc changes imported from RedHat's spec files. - Let RPM pick up the krb5-libs dependency. - `CVSHome.org' => `cvshome.org'. * Thu Apr 26 2001 Derek Price - avoid picking up %{_infodir}/dir. - remove krb5-configs from requirements since RedHat doesn't use it anymore. * Wed Nov 29 2000 Derek Price - Use _infodir consistently for info pages and _bindir for binaries. - use more succinct file list * Wed Oct 18 2000 Derek Price - Make the Kerberos binary a subpackage. - fix the info & man pages too * Wed Sep 27 2000 Derek Price - updated for cvs 1.11 * Wed Mar 1 2000 Nalin Dahyabhai - make kerberos support conditional at build-time * Wed Mar 1 2000 Bill Nottingham - integrate kerberos support into main tree * Mon Feb 14 2000 Nalin Dahyabhai - build with gssapi auth (--with-gssapi, --with-encryption) - apply patch to update libs to krb5 1.1.1 * Fri Feb 04 2000 Cristian Gafton - fix the damn info pages too while we're at it. - fix description - man pages are compressed - make sure %post and %preun work okay * Sun Jan 9 2000 Jim Kingdon - update to 1.10.7. * Wed Jul 14 1999 Jim Kingdon - add the patch to make 1.10.6 usable (http://www.cyclic.com/cvs/dev-known.html). * Tue Jun 1 1999 Jeff Johnson - update to 1.10.6. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 2) * Mon Feb 22 1999 Jeff Johnson - updated text in spec file. * Mon Feb 22 1999 Jeff Johnson - update to 1.10.5. * Tue Feb 2 1999 Jeff Johnson - update to 1.10.4. * Tue Oct 20 1998 Jeff Johnson - update to 1.10.3. * Mon Sep 28 1998 Jeff Johnson - update to 1.10.2. * Wed Sep 23 1998 Jeff Johnson - remove trailing characters from rcs2log mktemp args * Thu Sep 10 1998 Jeff Johnson - update to 1.10.1 * Mon Aug 31 1998 Jeff Johnson - fix race conditions in cvsbug/rcs2log * Sun Aug 16 1998 Jeff Johnson - update to 1.10. * Wed Aug 12 1998 Jeff Johnson - update to 1.9.30. * Mon Jun 08 1998 Prospector System - translations modified for de, fr * Mon Jun 8 1998 Jeff Johnson - build root - update to 1.9.28 * Mon Apr 27 1998 Prospector System - translations modified for de, fr, tr * Wed Oct 29 1997 Otto Hammersmith - added install-info stuff - added changelog section