25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
4.4 KiB
121 lines
4.4 KiB
## |
|
## cvs.spec -- OpenPKG RPM Specification |
|
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH |
|
## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com> |
|
## |
|
## 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.0.1 |
|
%define V_cvslock 0.2 |
|
%define V_cvs2cl 2.38 |
|
%define V_cvsweb 1.105.1.65 |
|
|
|
# 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 [EXP] |
|
Group: CVS |
|
License: GPL |
|
Version: %{V_cvs} |
|
Release: 3 |
|
|
|
# list of sources |
|
Source0: ftp://ftp.ossp.org/pkg/ossp-cvs/ossp-cvs-%{V_cvs}.tar.gz |
|
Source1: ftp://riemann.iam.uni-bonn.de/pub/users/roessler/cvslock/cvslock-%{V_cvslock}.tar.gz |
|
Source2: http://people.FreeBSD.org/~knu/distfiles/cvsweb-%{V_cvsweb}.tar.gz |
|
Source3: http://www.red-bean.com/cvs2cl/cvs2cl.pl |
|
|
|
# build information |
|
Prefix: %{l_prefix} |
|
BuildRoot: %{l_buildroot} |
|
BuildPreReq: OpenPKG, openpkg >= 0.9-33, perl, patch |
|
PreReq: OpenPKG, openpkg >= 0.9-33, 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. |
|
|
|
This is the OSSP version of CVS, which provides many new features |
|
and adjustments. Additionally the following popular CVS tools are |
|
included: cvsweb (a CGI for browsing a CVS repository), 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 |
|
%setup2 -q -T -D -a 2 |
|
|
|
%build |
|
( cd ossp-cvs-%{V_cvs} |
|
%{l_rpmtool} subst \ |
|
's;^\(#define OSSP_PATCH_CVSUSER_CALLER "\)[^"]*\("\);\1cvs\2;' \ |
|
-- src/subr.c |
|
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 ossp-cvs-%{V_cvs} |
|
%{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix} |
|
) |
|
( cd cvslock-%{V_cvslock} |
|
%{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix} |
|
) |
|
%{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 |
|
|
|
|