|
|
@@ -38,15 +38,17 @@ Class: PLUS
|
|
|
Group: SCM
|
|
|
License: Apache/BSD
|
|
|
Version: %{V_opkg}
|
|
|
-Release: 20040223
|
|
|
+Release: 20040312
|
|
|
|
|
|
# package options
|
|
|
%option with_cvs2svn no
|
|
|
+%option with_svn2cvs no
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://subversion.tigris.org/tarballs/subversion-%{V_dist}.tar.gz
|
|
|
Source1: http://svnbook.red-bean.com/book.pdf
|
|
|
-Source2: rc.subversion
|
|
|
+Source2: http://svn2cvs.tigris.org/nonav/source/browse/*checkout*/svn2cvs/src/svn2cvs.pl
|
|
|
+Source3: rc.subversion
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
@@ -56,7 +58,10 @@ PreReq: OpenPKG, openpkg >= 20040130, diffutils
|
|
|
BuildPreReq: libxml, db, openssl, zlib
|
|
|
PreReq: libxml, db, openssl, zlib
|
|
|
%if "%{with_cvs2svn}" == "yes"
|
|
|
-PreReq: python
|
|
|
+PreReq: cvs, python
|
|
|
+%endif
|
|
|
+%if "%{with_svn2cvs}" == "yes"
|
|
|
+PreReq: cvs, perl, perl-xml
|
|
|
%endif
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
@@ -143,6 +148,14 @@ AutoReqProv: no
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/man/man1/
|
|
|
%endif
|
|
|
|
|
|
+%if "%{with_svn2cvs}" == "yes"
|
|
|
+ # install svn2cvs(1) tool
|
|
|
+ %{l_shtool} install -c -m 755 \
|
|
|
+ -e 's;#!/usr/bin/perl;#!%{l_prefix}/bin/perl;' \
|
|
|
+ %{SOURCE svn2cvs.pl} \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/bin/svn2cvs
|
|
|
+%endif
|
|
|
+
|
|
|
# install run-command script
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
|