1Summary: A version control system.
2Name: cvs
3Version: @VERSION@
4Release: 1
5Copyright: GPL
6Group: Development/Tools
7Source: ftp://ftp.cvshome.com/pub/cvs-%{version}/cvs-%{version}.tar.gz
8URL: http://CVSHome.org
9Prereq: /sbin/install-info
10Prefix: %{_prefix}
11Buildroot: %{_tmppath}/%{name}-root
12
13%description
14CVS (Concurrent Version System) 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 cvs 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: cvs krb5-libs
36BuildRequires: krb5-devel
37
38%description krb5
39CVS (Concurrent Version System) 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 cvs package to get the standard CVS distribution.
55
56Install the Kerberos version of the cvs 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
72mv src/cvs src/cvs.krb5
73
74rm config.cache
75%endif
76
77# The standard package
78%configure --without-gssapi
79
80make LDFLAGS=-s
81make -C doc info
82
83%install
84rm -rf $RPM_BUILD_ROOT
85
86%makeinstall
87# The Kerberized binary
88%if %gssapi
89./install-sh src/cvs.krb5 $RPM_BUILD_ROOT%{_kerberosbindir}/cvs
90%endif
91
92rm -f $RPM_BUILD_ROOT${_infodir}/dir
93gzip -9nf $RPM_BUILD_ROOT%{_infodir}/cvs*
94strip $RPM_BUILD_ROOT%{_bindir}/cvs
95%if %gssapi
96strip $RPM_BUILD_ROOT%{_kerberosbindir}/cvs
97%endif
98
99%clean
100rm -rf $RPM_BUILD_ROOT
101
102%post
103    /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cvs.info.gz
104    /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cvsclient.info.gz
105%preun
106if [ $1 = 0 ]; then
107    # uninstall the info reference in the dir file
108    /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cvs.info.gz
109    /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cvsclient.info.gz
110fi
111
112%files
113%defattr(-,root,root)
114%doc BUGS FAQ MINOR-BUGS NEWS PROJECTS TODO README
115%doc doc/RCSFILES doc/*.ps
116%{_bindir}
117%{_infodir}/cvs*.gz
118%{_mandir}
119
120%if %gssapi
121%files krb5
122%defattr(-,root,root)
123%{_kerberosdir}
124%endif
125
126%changelog
127* Thu Apr 26 2001 Derek Price <dprice@collab.net>
128- avoid picking up %{_infodir}/dir.
129- remove krb5-configs from requirements since RedHat doesn't use it anymore.
130
131* Wed Nov 29 2000 Derek Price <dprice@openavenue.com>
132- Use _infodir consistently for info pages and _bindir for binaries.
133- use more succinct file list
134
135* Wed Oct 18 2000 Derek Price <dprice@openavenue.com>
136- Make the Kerberos binary a subpackage.
137- fix the info & man pages too
138
139* Wed Sep 27 2000 Derek Price <dprice@openavenue.com>
140- updated for cvs 1.11
141
142* Wed Mar  1 2000 Nalin Dahyabhai <nalin@redhat.com>
143- make kerberos support conditional at build-time
144
145* Wed Mar  1 2000 Bill Nottingham <notting@redhat.com>
146- integrate kerberos support into main tree
147
148* Mon Feb 14 2000 Nalin Dahyabhai <nalin@redhat.com>
149- build with gssapi auth (--with-gssapi, --with-encryption)
150- apply patch to update libs to krb5 1.1.1
151
152* Fri Feb 04 2000 Cristian Gafton <gafton@redhat.com>
153- fix the damn info pages too while we're at it.
154- fix description
155- man pages are compressed
156- make sure %post and %preun work okay
157
158* Sun Jan 9 2000  Jim Kingdon <http://bugzilla.redhat.com/bugzilla>
159- update to 1.10.7.
160
161* Wed Jul 14 1999 Jim Kingdon <http://developer.redhat.com>
162- add the patch to make 1.10.6 usable
163  (http://www.cyclic.com/cvs/dev-known.html).
164
165* Tue Jun  1 1999 Jeff Johnson <jbj@redhat.com>
166- update to 1.10.6.
167
168* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
169- auto rebuild in the new build environment (release 2)
170
171* Mon Feb 22 1999 Jeff Johnson <jbj@redhat.com>
172- updated text in spec file.
173
174* Mon Feb 22 1999 Jeff Johnson <jbj@redhat.com>
175- update to 1.10.5.
176
177* Tue Feb  2 1999 Jeff Johnson <jbj@redhat.com>
178- update to 1.10.4.
179
180* Tue Oct 20 1998 Jeff Johnson <jbj@redhat.com>
181- update to 1.10.3.
182
183* Mon Sep 28 1998 Jeff Johnson <jbj@redhat.com>
184- update to 1.10.2.
185
186* Wed Sep 23 1998 Jeff Johnson <jbj@redhat.com>
187- remove trailing characters from rcs2log mktemp args
188
189* Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com>
190- update to 1.10.1
191
192* Mon Aug 31 1998 Jeff Johnson <jbj@redhat.com>
193- fix race conditions in cvsbug/rcs2log
194
195* Sun Aug 16 1998 Jeff Johnson <jbj@redhat.com>
196- update to 1.10.
197
198* Wed Aug 12 1998 Jeff Johnson <jbj@redhat.com>
199- update to 1.9.30.
200
201* Mon Jun 08 1998 Prospector System <bugs@redhat.com>
202- translations modified for de, fr
203
204* Mon Jun  8 1998 Jeff Johnson <jbj@redhat.com>
205- build root
206- update to 1.9.28
207
208* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
209- translations modified for de, fr, tr
210
211* Wed Oct 29 1997 Otto Hammersmith <otto@redhat.com>
212- added install-info stuff
213- added changelog section
214