SPECS: subversion.spec - add checks for python/perl/ruby bindings; add ruby...

arekm arekm at pld-linux.org
Tue Jun 3 19:26:24 CEST 2008


Author: arekm                        Date: Tue Jun  3 17:26:24 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add checks for python/perl/ruby bindings; add ruby bindings subpackage

---- Files affected:
SPECS:
   subversion.spec (1.211 -> 1.212) 

---- Diffs:

================================================================
Index: SPECS/subversion.spec
diff -u SPECS/subversion.spec:1.211 SPECS/subversion.spec:1.212
--- SPECS/subversion.spec:1.211	Mon May 26 23:41:33 2008
+++ SPECS/subversion.spec	Tue Jun  3 19:26:19 2008
@@ -2,11 +2,13 @@
 # TODO:
 # - remove net_client_only and add db bcond (then without apache and
 #   without db => net_client_only - spec will be more simpler, I think)
+# - finish ruby
 #
 # Conditional build:
 %bcond_with	net_client_only		# build only net client
 %bcond_without	python			# build without python bindings (broken)
 %bcond_without	perl			# build without perl bindings
+%bcond_without	ruby
 %bcond_without	apache			# build without apache support (webdav, etc)
 %bcond_without	javahl			# build without javahl support (Java high-level bindings)
 %bcond_without	tests			# don't perform "make check"
@@ -16,7 +18,7 @@
 %define	pdir	SVN
 %define	pnam	_Core
 #
-%define	snap	rc5
+%define	snap	rc7
 Summary:	A Concurrent Versioning system similar to but better than CVS
 Summary(pl.UTF-8):	System kontroli wersji podobny, ale lepszy, niż CVS
 Summary(pt_BR.UTF-8):	Sistema de versionamento concorrente
@@ -26,15 +28,15 @@
 License:	Apache/BSD-like
 Group:		Development/Version Control
 Source0:	http://subversion.tigris.org/downloads/%{name}-%{version}-%{snap}.tar.bz2
-# Source0-md5:	0e87b4f9fa8551a2a71b539564c3bf8f
+# Source0-md5:	3145186e3c1a60fbb4dc360da490b841
 Source1:	%{name}-dav_svn.conf
 Source2:	%{name}-authz_svn.conf
 Source3:	%{name}-svnserve.init
 Source4:	%{name}-svnserve.sysconfig
 Source5:	%{name}-convert-typemaps-to-ifdef.py
 Patch0:		%{name}-home_etc.patch
-Patch1:		%{name}-DESTDIR.patch
 URL:		http://subversion.tigris.org/
+Patch1:		%{name}-DESTDIR.patch
 %if %{with net_client_only}
 %global apache_modules_api 0
 %else
@@ -236,8 +238,8 @@
 %description -n java-subversion -l pl.UTF-8
 Ten pakiet zawiera zestaw klas Javy udostępniających funkcjonalność
 subversion-libs, czyli bibliotek Subversion. Jest przydatny przy
-pisaniu klas Javy np. modyfikujących repozytorium Subversion lub
-kopię roboczą. Więcej informacji w pakiecie subversion.
+pisaniu klas Javy np. modyfikujących repozytorium Subversion lub kopię
+roboczą. Więcej informacji w pakiecie subversion.
 
 %package -n python-subversion
 Summary:	Subversion Python bindings
@@ -274,6 +276,23 @@
 %description -n perl-subversion -l pt_BR.UTF-8
 Módulos Perl para acessar os recursos do Subversion.
 
+%package -n ruby-subversion
+Summary:	Subversion Ruby bindings
+Summary(pl.UTF-8):	Dowiązania do Subversion dla Ruby
+Summary(pt_BR.UTF-8):	Módulos Ruby para acessar os recursos do Subversion
+Group:		Development/Languages
+Requires:	%{name}-libs = %{version}-%{release}
+Obsoletes:	subversion-ruby
+
+%description -n ruby-subversion
+Subversion Ruby bindings.
+
+%description -n ruby-subversion -l pl.UTF-8
+Dowiązania do Subversion dla Ruby.
+
+%description -n ruby-subversion -l pt_BR.UTF-8
+Módulos Ruby para acessar os recursos do Subversion.
+
 %package -n apache-mod_dav_svn
 Summary:	Apache module: Subversion Server
 Summary(pl.UTF-8):	Moduł apache: Serwer Subversion
@@ -367,10 +386,23 @@
 %{__make} javahl \
 	javahl_javadir="%{_javadir}"
 %endif
+# ruby
+%if %{with ruby}
+%{__make} swig-rb
+%endif
 %endif
 
 %if %{with tests}
 %{__make} check
+%if %{with python}
+%{__make} check-swig-py
+%endif
+%if %{with perl}
+%{__make} check-swig-pl
+%endif
+%if %{with ruby}
+%{__make} check-swig-rb
+%endif
 %endif
 
 %install
@@ -385,9 +417,14 @@
 	install-javahl \
 	javahl_javadir="%{_javadir}" \
 %endif
-%if !%{with net_client_only} && %{with python}
+%if !%{with net_client_only}
+%if %{with python}
 	install-swig-py \
 %endif
+%if %{with ruby}
+	install-swig-rb install-swig-rb-doc \
+%endif
+%endif
 	APACHE_LIBEXECDIR="$(%{_sbindir}/apxs -q LIBEXECDIR)" \
 	DESTDIR=$RPM_BUILD_ROOT \
 	swig_pydir=%{py_sitedir}/libsvn \
@@ -571,6 +608,18 @@
 %attr(755,root,root) %{_libdir}/lib*_swig_perl*.so*
 %endif
 
+%if %{with ruby}
+%files -n ruby-subversion
+%defattr(644,root,root,755)
+%{_datadir}/ri/*.*/site/Svn
+%{_datadir}/ri/*.*/site/Time
+%{_datadir}/ri/*.*/site/Uconv
+%{_datadir}/ri/*.*/site/*.rid
+%{_datadir}/ri/*.*/site/Kernel/*
+%{_datadir}/ri/*.*/site/OptionParser/*
+%{_libdir}/ruby/site_ruby/svn
+%endif
+
 %if %{with apache}
 %files -n apache-mod_dav_svn
 %defattr(644,root,root,755)
@@ -592,6 +641,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.212  2008-06-03 17:26:19  arekm
+- add checks for python/perl/ruby bindings; add ruby bindings subpackage
+
 Revision 1.211  2008-05-26 21:41:33  arvenil
 - up to 1.5.0-rc5
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/subversion.spec?r1=1.211&r2=1.212&f=u



More information about the pld-cvs-commit mailing list