1Summary: A version control system. 2Name: @PACKAGE_TARNAME@ 3Version: @PACKAGE_VERSION@ 4Release: 1 5License: GPL 6Group: Development/Tools 7Source: http://savannah.nongnu.org/download/cvs/%{name}-%{version}.tar.bz2 8URL: http://cvs.nongnu.org/ 9Prereq: /sbin/install-info 10Prefix: %{_prefix} 11BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 12 13%description 14@PACKAGE_NAME@ is a version control system which can 15record the history of your files (usually, but not always, source 16code). CVS only stores the differences between versions, instead of 17every version of every file you've ever created. CVS also keeps a log 18of who, when and why changes occurred. 19 20CVS is very helpful for managing releases and controlling the 21concurrent editing of source files among multiple authors. Instead of 22providing version control for a collection of files in a single 23directory, CVS provides version control for a hierarchical collection 24of directories consisting of revision controlled files. These 25directories and files can then be combined together to form a software 26release. 27 28Install the %{name} package if you need to use a version control system. 29 30%define gssapi %(test -r /usr/kerberos/lib/libkrb5.a && echo 1 || echo 0) 31%if %gssapi 32%package krb5 33Summary: A version control system with Kerberos authentication. 34Group: Development/Tools 35Requires: %{name} 36BuildRequires: krb5-devel 37 38%description krb5 39@PACKAGE_NAME@ is a version control system which can 40record the history of your files (usually, but not always, source 41code). CVS only stores the differences between versions, instead of 42every version of every file you've ever created. CVS also keeps a log 43of who, when and why changes occurred. 44 45CVS is very helpful for managing releases and controlling the 46concurrent editing of source files among multiple authors. Instead of 47providing version control for a collection of files in a single 48directory, CVS provides version control for a hierarchical collection 49of directories consisting of revision controlled files. These 50directories and files can then be combined together to form a software 51release. 52 53This package contains only a Kerberized version of the CVS binary. You should 54install the base %{name} package to get the standard CVS distribution. 55 56Install the Kerberos version of the %{name} package if you need to use a version 57control system with Kerberos authentication and encryption. 58 59%define _kerberosdir %{prefix}/kerberos 60%define _kerberosbindir %{_kerberosdir}/bin 61%endif 62 63%prep 64%setup -q 65 66%build 67# The Kerberized binary 68%if %gssapi 69%configure --with-gssapi=/usr/kerberos --enable-encryption 70 71make LDFLAGS=-s 72 73mv src/cvs src/cvs.krb5 74%endif 75 76# The standard package 77%configure --without-gssapi 78 79make LDFLAGS=-s 80 81%install 82[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 83 84%makeinstall 85# The Kerberized binary 86%if %gssapi 87build-aux/install-sh src/cvs.krb5 $RPM_BUILD_ROOT%{_kerberosbindir}/cvs 88%endif 89# forcefully compress the info pages so that install-info will work properly 90# in the %%post 91gzip $RPM_BUILD_ROOT/%{_infodir}/cvs* || true 92rm -f $RPM_BUILD_ROOT/%{_infodir}/dir 93 94%clean 95[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 96 97%post 98/sbin/install-info /%{_infodir}/cvs.info.gz /%{_infodir}/dir 99/sbin/install-info /%{_infodir}/cvsclient.info.gz /%{_infodir}/dir 100# Remove any existing uncompressed versions of the info files since 101# install-info doesn't and info doesn't seem to be very good at spotting that 102# its uncompressed cache is out of date. 103rm -f /%{_infodir}/cvs.info /%{_infodir}/cvs.info-? /%{_infodir}/cvs.info-?? 104rm -f /%{_infodir}/cvsclient.info /%{_infodir}/cvsclient.info-? 105rm -f /%{_infodir}/cvsclient.info-?? 106%preun 107if [ $1 = 0 ]; then 108# uninstall the info reference in the dir file 109/sbin/install-info --delete /%{_infodir}/cvs.info.gz /%{_infodir}/dir 110/sbin/install-info --delete /%{_infodir}/cvsclient.info.gz /%{_infodir}/dir 111fi 112 113%files 114%defattr(-,root,root) 115%doc AUTHORS BUGS FAQ MINOR-BUGS NEWS PROJECTS TODO README 116%doc doc/RCSFILES doc/*.ps 117%{_bindir}/* 118%{_mandir}/*/* 119%{_infodir}/*.info* 120%{_datadir}/%{name} 121 122%if %gssapi 123%files krb5 124%defattr(-,root,root) 125%{_kerberosbindir}/* 126%endif 127 128%changelog 129* Wed Aug 31 2005 Derek Price <derek@ximbiot.com> 130- Update links to Savannah. s/Copyright/License/ for RPM 4.mumble. 131 132* Mon July 20 2005 Derek Price <derek@ximbiot.com> 133- Update to homepage on Savannah. 134 135* Mon May 09 2005 Derek Price <derek@ximbiot.com> 136- Find install-sh in its new location in the build-aux directory. 137 138* Wed Mar 31 2004 Mark D. Baushke <mdb@cvshome.org> 139- Do not fail if info DIR file is not present to be deleted. 140 141* Tue Feb 17 2004 Derek Price <derek@ximbiot.com> 142- Remove info DIR file to avoid RPM warning us about installing files we don't 143- package. 144 145* Tue May 27 2003 Derek Price <derek@ximbiot.com> 146- Install a few more files as part of doc. 147 148* Thu Mar 29 2002 Derek Price <oberon@umich.edu> 149- Misc changes imported from RedHat's spec files. 150- Let RPM pick up the krb5-libs dependency. 151- `CVSHome.org' => `cvshome.org'. 152 153* Thu Apr 26 2001 Derek Price <dprice@collab.net> 154- avoid picking up %{_infodir}/dir. 155- remove krb5-configs from requirements since RedHat doesn't use it anymore. 156 157* Wed Nov 29 2000 Derek Price <dprice@openavenue.com> 158- Use _infodir consistently for info pages and _bindir for binaries. 159- use more succinct file list 160 161* Wed Oct 18 2000 Derek Price <dprice@openavenue.com> 162- Make the Kerberos binary a subpackage. 163- fix the info & man pages too 164 165* Wed Sep 27 2000 Derek Price <dprice@openavenue.com> 166- updated for cvs 1.11 167 168* Wed Mar 1 2000 Nalin Dahyabhai <nalin@redhat.com> 169- make kerberos support conditional at build-time 170 171* Wed Mar 1 2000 Bill Nottingham <notting@redhat.com> 172- integrate kerberos support into main tree 173 174* Mon Feb 14 2000 Nalin Dahyabhai <nalin@redhat.com> 175- build with gssapi auth (--with-gssapi, --with-encryption) 176- apply patch to update libs to krb5 1.1.1 177 178* Fri Feb 04 2000 Cristian Gafton <gafton@redhat.com> 179- fix the damn info pages too while we're at it. 180- fix description 181- man pages are compressed 182- make sure %post and %preun work okay 183 184* Sun Jan 9 2000 Jim Kingdon <http://bugzilla.redhat.com/bugzilla> 185- update to 1.10.7. 186 187* Wed Jul 14 1999 Jim Kingdon <http://developer.redhat.com> 188- add the patch to make 1.10.6 usable 189 (http://www.cyclic.com/cvs/dev-known.html). 190 191* Tue Jun 1 1999 Jeff Johnson <jbj@redhat.com> 192- update to 1.10.6. 193 194* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 195- auto rebuild in the new build environment (release 2) 196 197* Mon Feb 22 1999 Jeff Johnson <jbj@redhat.com> 198- updated text in spec file. 199 200* Mon Feb 22 1999 Jeff Johnson <jbj@redhat.com> 201- update to 1.10.5. 202 203* Tue Feb 2 1999 Jeff Johnson <jbj@redhat.com> 204- update to 1.10.4. 205 206* Tue Oct 20 1998 Jeff Johnson <jbj@redhat.com> 207- update to 1.10.3. 208 209* Mon Sep 28 1998 Jeff Johnson <jbj@redhat.com> 210- update to 1.10.2. 211 212* Wed Sep 23 1998 Jeff Johnson <jbj@redhat.com> 213- remove trailing characters from rcs2log mktemp args 214 215* Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com> 216- update to 1.10.1 217 218* Mon Aug 31 1998 Jeff Johnson <jbj@redhat.com> 219- fix race conditions in cvsbug/rcs2log 220 221* Sun Aug 16 1998 Jeff Johnson <jbj@redhat.com> 222- update to 1.10. 223 224* Wed Aug 12 1998 Jeff Johnson <jbj@redhat.com> 225- update to 1.9.30. 226 227* Mon Jun 08 1998 Prospector System <bugs@redhat.com> 228- translations modified for de, fr 229 230* Mon Jun 8 1998 Jeff Johnson <jbj@redhat.com> 231- build root 232- update to 1.9.28 233 234* Mon Apr 27 1998 Prospector System <bugs@redhat.com> 235- translations modified for de, fr, tr 236 237* Wed Oct 29 1997 Otto Hammersmith <otto@redhat.com> 238- added install-info stuff 239- added changelog section 240