Sync usage with man page.
[netbsd-mini2440.git] / external / gpl2 / xcvs / dist / cvs.spec.in
blob98f29b605e129829fbb5d53f57d1b86ba2193a2b
1 Summary: A version control system.
2 Name: @PACKAGE_TARNAME@
3 Version: @PACKAGE_VERSION@
4 Release: 1
5 License: GPL
6 Group: Development/Tools
7 Source: http://savannah.nongnu.org/download/cvs/%{name}-%{version}.tar.bz2
8 URL: http://cvs.nongnu.org/
9 Prereq: /sbin/install-info
10 Prefix: %{_prefix}
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13 %description
14 @PACKAGE_NAME@ is a version control system which can
15 record the history of your files (usually, but not always, source
16 code). CVS only stores the differences between versions, instead of
17 every version of every file you've ever created. CVS also keeps a log
18 of who, when and why changes occurred.
20 CVS is very helpful for managing releases and controlling the
21 concurrent editing of source files among multiple authors. Instead of
22 providing version control for a collection of files in a single
23 directory, CVS provides version control for a hierarchical collection
24 of directories consisting of revision controlled files. These
25 directories and files can then be combined together to form a software
26 release.
28 Install the %{name} package if you need to use a version control system.
30 %define gssapi %(test -r /usr/kerberos/lib/libkrb5.a && echo 1 || echo 0)
31 %if %gssapi
32 %package krb5
33 Summary: A version control system with Kerberos authentication.
34 Group: Development/Tools
35 Requires: %{name}
36 BuildRequires: krb5-devel
38 %description krb5
39 @PACKAGE_NAME@ is a version control system which can
40 record the history of your files (usually, but not always, source
41 code). CVS only stores the differences between versions, instead of
42 every version of every file you've ever created. CVS also keeps a log
43 of who, when and why changes occurred.
45 CVS is very helpful for managing releases and controlling the
46 concurrent editing of source files among multiple authors. Instead of
47 providing version control for a collection of files in a single
48 directory, CVS provides version control for a hierarchical collection
49 of directories consisting of revision controlled files. These
50 directories and files can then be combined together to form a software
51 release.
53 This package contains only a Kerberized version of the CVS binary. You should
54 install the base %{name} package to get the standard CVS distribution.
56 Install the Kerberos version of the %{name} package if you need to use a version
57 control system with Kerberos authentication and encryption.
59 %define _kerberosdir %{prefix}/kerberos
60 %define _kerberosbindir %{_kerberosdir}/bin
61 %endif
63 %prep
64 %setup -q
66 %build
67 # The Kerberized binary
68 %if %gssapi
69 %configure --with-gssapi=/usr/kerberos --enable-encryption
71 make LDFLAGS=-s
73 mv src/cvs src/cvs.krb5
74 %endif
76 # The standard package
77 %configure --without-gssapi
79 make LDFLAGS=-s
81 %install
82 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
84 %makeinstall
85 # The Kerberized binary
86 %if %gssapi
87 build-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
91 gzip $RPM_BUILD_ROOT/%{_infodir}/cvs* || true
92 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
94 %clean
95 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
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.
103 rm -f /%{_infodir}/cvs.info /%{_infodir}/cvs.info-? /%{_infodir}/cvs.info-??
104 rm -f /%{_infodir}/cvsclient.info /%{_infodir}/cvsclient.info-?
105 rm -f /%{_infodir}/cvsclient.info-??
106 %preun
107 if [ $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
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}
122 %if %gssapi
123 %files krb5
124 %defattr(-,root,root)
125 %{_kerberosbindir}/*
126 %endif
128 %changelog
129 * Wed Aug 31 2005 Derek Price <derek@ximbiot.com>
130 - Update links to Savannah. s/Copyright/License/ for RPM 4.mumble.
132 * Mon July 20 2005 Derek Price <derek@ximbiot.com>
133 - Update to homepage on Savannah.
135 * Mon May 09 2005 Derek Price <derek@ximbiot.com>
136 - Find install-sh in its new location in the build-aux directory.
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.
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.
145 * Tue May 27 2003 Derek Price <derek@ximbiot.com>
146 - Install a few more files as part of doc.
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'.
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.
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
161 * Wed Oct 18 2000 Derek Price <dprice@openavenue.com>
162 - Make the Kerberos binary a subpackage.
163 - fix the info & man pages too
165 * Wed Sep 27 2000 Derek Price <dprice@openavenue.com>
166 - updated for cvs 1.11
168 * Wed Mar 1 2000 Nalin Dahyabhai <nalin@redhat.com>
169 - make kerberos support conditional at build-time
171 * Wed Mar 1 2000 Bill Nottingham <notting@redhat.com>
172 - integrate kerberos support into main tree
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
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
184 * Sun Jan 9 2000 Jim Kingdon <http://bugzilla.redhat.com/bugzilla>
185 - update to 1.10.7.
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).
191 * Tue Jun 1 1999 Jeff Johnson <jbj@redhat.com>
192 - update to 1.10.6.
194 * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
195 - auto rebuild in the new build environment (release 2)
197 * Mon Feb 22 1999 Jeff Johnson <jbj@redhat.com>
198 - updated text in spec file.
200 * Mon Feb 22 1999 Jeff Johnson <jbj@redhat.com>
201 - update to 1.10.5.
203 * Tue Feb 2 1999 Jeff Johnson <jbj@redhat.com>
204 - update to 1.10.4.
206 * Tue Oct 20 1998 Jeff Johnson <jbj@redhat.com>
207 - update to 1.10.3.
209 * Mon Sep 28 1998 Jeff Johnson <jbj@redhat.com>
210 - update to 1.10.2.
212 * Wed Sep 23 1998 Jeff Johnson <jbj@redhat.com>
213 - remove trailing characters from rcs2log mktemp args
215 * Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com>
216 - update to 1.10.1
218 * Mon Aug 31 1998 Jeff Johnson <jbj@redhat.com>
219 - fix race conditions in cvsbug/rcs2log
221 * Sun Aug 16 1998 Jeff Johnson <jbj@redhat.com>
222 - update to 1.10.
224 * Wed Aug 12 1998 Jeff Johnson <jbj@redhat.com>
225 - update to 1.9.30.
227 * Mon Jun 08 1998 Prospector System <bugs@redhat.com>
228 - translations modified for de, fr
230 * Mon Jun 8 1998 Jeff Johnson <jbj@redhat.com>
231 - build root
232 - update to 1.9.28
234 * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
235 - translations modified for de, fr, tr
237 * Wed Oct 29 1997 Otto Hammersmith <otto@redhat.com>
238 - added install-info stuff
239 - added changelog section