##
## cvs.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 The OpenPKG Project
## Copyright (c) 2000-2001 Ralf S. Engelschall
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
%define V_cvs 1.11.1p1
%define V_cvslock 0.2
%define V_cvs2cl 2.38
# package information
Name: cvs
Summary: Concurrent Versions Systems (CVS)
URL: http://www.cvshome.org/
Vendor: B. Berliner, D.D. Zuhn, J. Polk
Packager: The OpenPKG Project
Distribution: OpenPKG [REL]
Group: CVS
License: GPL
Version: %{V_cvs}
Release: 20011201.0
# list of sources
Source0: http://www.cvshome.org/files/19/10/cvs-%{V_cvs}.tar.gz
Source1: ftp://riemann.iam.uni-bonn.de/pub/users/roessler/cvslock/cvslock-%{V_cvslock}.tar.gz
Source2: http://www.red-bean.com/cvs2cl/cvs2cl.pl
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20011126.0, perl, patch
PreReq: OpenPKG, openpkg >= 20011126.0, perl, patch
AutoReq: no
AutoReqProv: no
%description
CVS is a version control system, which allows you to keep old
versions of files (usually source code), keep a log of who,
when, and why changes occurred, etc., like RCS or SCCS. Unlike
the simpler systems, CVS does not just operate on one file at a
time or one directory at a time, but operates on hierarchical
collections of directories consisting of version controlled files.
CVS helps to manage releases and to control the concurrent editing
of source files among multiple authors. CVS allows triggers to
enable/log/control various operations and works well over a wide
area network. CVS keeps a single copy of the master sources. This
copy is called the source repository.
Additionally the following popular CVS tools are included: cvs2cl
(a tool for assembling a GNU ChangeLog file from "cvs log" output)
and cvslock (an administration tool for manually locking a CVS
repository area).
%prep
%setup0 -q -c
%setup1 -q -T -D -a 1
%build
( cd cvs-%{V_cvs}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix} \
--with-patch=%{l_prefix}/bin/patch \
--without-krb4 \
--without-gssapi \
--enable-encryption \
--enable-server
%{l_make} %{l_mflags -O}
)
( cd cvslock-%{V_cvslock}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix}
%{l_make} %{l_mflags -O}
)
%install
rm -rf $RPM_BUILD_ROOT
( cd cvs-%{V_cvs}
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/rcs2log
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
mv $RPM_BUILD_ROOT%{l_prefix}/share/cvs/contrib/* \
$RPM_BUILD_ROOT%{l_prefix}/share/cvs/
rmdir $RPM_BUILD_ROOT%{l_prefix}/share/cvs/contrib
)
( cd cvslock-%{V_cvslock}
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
)
%{l_shtool} install -c -m 755 \
%{SOURCE cvs2cl.pl} $RPM_BUILD_ROOT%{l_prefix}/bin/cvs2cl
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT