|
|
@@ -39,11 +39,12 @@ Class: BASE
|
|
|
Group: SCM
|
|
|
License: Apache/BSD
|
|
|
Version: %{V_opkg}
|
|
|
-Release: 20050305
|
|
|
+Release: 20050306
|
|
|
|
|
|
# package options
|
|
|
%option with_cvs2svn no
|
|
|
%option with_svn2cvs no
|
|
|
+%option with_perl no
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://subversion.tigris.org/tarballs/subversion-%{V_dist}.tar.gz
|
|
|
@@ -67,6 +68,10 @@ PreReq: rcs, python
|
|
|
BuildPreReq: perl
|
|
|
PreReq: perl, perl-xml, cvs, rcs
|
|
|
%endif
|
|
|
+%if "%{with_perl}" == "yes"
|
|
|
+BuildPreReq: perl, swig
|
|
|
+PreReq: perl
|
|
|
+%endif
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -93,6 +98,8 @@ AutoReqProv: no
|
|
|
%setup -q
|
|
|
%setup -q -T -D -a 1
|
|
|
%patch -p0
|
|
|
+ %{l_shtool} subst %{l_value -s -a} \
|
|
|
+ subversion/bindings/swig/perl/native/Makefile.PL.in
|
|
|
|
|
|
%build
|
|
|
# configure package
|
|
|
@@ -113,27 +120,39 @@ AutoReqProv: no
|
|
|
--with-neon=%{l_prefix} \
|
|
|
--with-zlib \
|
|
|
--enable-static \
|
|
|
+%if "%{with_perl}" == "yes"
|
|
|
+ --with-swig=%{l_prefix}/bin/swig-old \
|
|
|
+ --enable-swig-bindings=perl \
|
|
|
+%endif
|
|
|
--disable-nls \
|
|
|
--disable-shared \
|
|
|
--without-apxs
|
|
|
|
|
|
# build package
|
|
|
%{l_make} %{l_mflags}
|
|
|
+%if "%{with_perl}" == "yes"
|
|
|
+ ( cd apr; ln -s .libs/libapr-0.a . ) || exit $?
|
|
|
+ ( cd apr-util; ln -s .libs/libaprutil-0.a . ) || exit $?
|
|
|
+ %{l_make} %{l_mflags} swig-pl
|
|
|
+%endif
|
|
|
|
|
|
%install
|
|
|
# install package
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
+%if "%{with_perl}" == "yes"
|
|
|
+ %{l_make} %{l_mflags} install-swig-pl DESTDIR=$RPM_BUILD_ROOT
|
|
|
+%endif
|
|
|
|
|
|
# strip down installation
|
|
|
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/include
|
|
|
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
|
|
|
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/include/subversion-1/mod_dav_svn.h
|
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc
|
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/build
|
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/neon*
|
|
|
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/man3
|
|
|
- rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/*-config
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
+%if "%{with_perl}" == "yes"
|
|
|
+ %{l_prefix}/bin/perl-openpkg -F- fixate >/dev/null
|
|
|
+%endif
|
|
|
|
|
|
# install svn_load_dirs(1) tool
|
|
|
%{l_shtool} install -c -m 755 \
|