Search
j0ke.net Open Build Service
>
Projects
>
devel
:
subversion
>
subversion
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 15
[-]
[+]
Added
subversion.spec
@@ -0,0 +1,1429 @@ +# +# spec file for package subversion (Version 1.4.5) +# +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: subversion +BuildRequires: apache2-devel db-devel gcc-c++ java2-devel-packages libneon-devel openldap2-devel python-devel swig +Version: 1.4.5 +Release: 1 +# +%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services +# +%define apxs /usr/sbin/apxs2 +%define apache_libexecdir %(%{apxs} -q LIBEXECDIR) +%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) +# +%define site_python %(python -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib()") +# +PreReq: %insserv_prereq %fillup_prereq +# +Summary: A Concurrent Versioning system similar to but better than CVS +BuildRoot: %{_tmppath}/%{name}-%{version}-build +License: Subversion license, http://subversion.tigris.org/license-1.html +Group: Development/Tools/Version Control +Url: http://subversion.tigris.org +Source0: subversion-1.4.x.tar.bz2 +Source1: subversion.conf +Source2: subversion.README.SuSE +Source9: subversion.rcsvnserve +Source10: subversion.sysconfig.svnserve +Source12: subversion.sysconfig.svnserve.remoteaccess +Source13: subversion.xinetd.svnserve +Source42: subversion.svngrep.sh +Source43: subversion.svndiff.sh +# +Patch11: subversion.libtool-verbose.patch +Patch12: subversion.svn_swig_pl_info_receiver.patch +# build fixes +Patch20: subversion-swig-perl-install_vendor.patch +Patch22: subversion-1.1.x-COMPILE_CXX.dif +Patch23: subversion.libtool-pie-flags.patch +Patch24: subversion.svn_swig_perl.dep.patch +Patch31: subversion.perl.LD_RUN_PATH.patch +Patch32: subversion.fallback-to-ipv4.patch +Patch33: subversion.header_wrappers.patch +Patch34: subversion-neon-027.diff +Patch35: subversion.java14.patch +# + +%description +Subversion does the same thing cvs (CVS (Concurrent Versioning System)) +but has major enhancements compared to CVS. + + + +%package devel +Group: Development/Libraries/C and C++ +Summary: Development package for Subversion developers +Requires: subversion = %{version} +Requires: neon-devel libexpat-devel gdbm-devel db-devel zlib-devel openssl-devel libapr-util1-devel libapr1-devel python-devel openldap2-devel + +%description devel +The subversion-devel package includes the static libraries and include +files for developers interacting with the subversion package. + + + +%package tools +Group: Development/Tools/Version Control +Summary: Tools for Subversion + +%description tools +Tools for Subversion + + + +%package perl +Group: Development/Tools/Version Control +Summary: Allows Perl scripts to directly use Subversion repositories. +Requires: subversion = %{version} +Requires: perl >= 5.8 + +%description perl +Provides Perl (SWIG) support for Subversion. + + + +%package python +Group: Development/Tools/Version Control +Summary: Allows Python scripts to directly use Subversion repositories. +Requires: subversion = %{version} + +%description python +Provides Pythong (SWIG) support for Subversion. + + + +%package server +Group: Development/Tools/Version Control +Summary: Apache server module for Subversion server +Requires: subversion = %{version} +Requires: apache2 + +%description server +The subversion-server package adds the Subversion server Apache module +to the Apache directories and configuration. + +http://subversion.tigris.org + + + +%prep +swig="`env -i swig -version 2>&1 | awk '/^SWIG Version/{ print $3 }'`" +case "$swig" in + 1.3.21|1.3.1*) + echo "installed swig $swig too old" + exit 1 + ;; +esac +%setup -q -n subversion-1.4.x +# +# warning: no newline at end of file +echo "" >> subversion/bindings/java/javahl/native/Path.cpp +echo "" >> subversion/bindings/java/javahl/native/Targets.cpp +# +%patch11 -p1 +%patch12 -p1 +# +%patch20 -p1 +%patch22 -p1 +%if 0%{?suse_version} > 930 +%patch23 -p1 +%endif +%patch24 -p1 +%patch31 -p1 +%patch32 -p1 +%patch33 -p1 +%patch34 +%patch35 -p1 + +%build +with_jdk=none +for i in \ +/usr/%{_lib}/jvm/java-1.4.2-gcj \ +/usr/%{_lib}/BEAJava2-1.4.2 \ +/usr/%{_lib}/SunJava2-1.4.2 \ +/usr/%{_lib}/jvm/java-1.4.2-sun \ +/usr/lib/jvm/java-1.4.2-sun \ +/usr/%{_lib}/jvm/java-1.5.0-ibm \ +/usr/%{_lib}/jvm/java-1.5.0-sun \ +/usr/lib/jvm/java-1.5.0-sun \ +/usr/%{_lib}/jvm/java-1.4.2-ibm \ +/usr/%{_lib}/jvm/IBMJava2-1.4.2 \ +/usr/lib/BEAJava2-1.4.2 \ +/usr/lib/SunJava2-1.4.2 \ +/usr/lib/jvm/java-1.4.2-sun \ +/usr/lib/IBMJava2-1.4 \ +; do +if [ -d "$i" ] ; then +with_jdk="$i" +break +fi +done +if [ "$with_jdk" != "none" ] ; then +with_jdk="--with-jdk=$with_jdk --enable-javahl" +echo with_jdk > with_jdk +cat > with_jdk.files <<EOF-JAVA +%{_libdir}/libsvnjavahl*.so.* +%{_libdir}/libsvnjavahl*.so +%dir %{_libdir}/svn-javahl +%{_libdir}/svn-javahl/svn-javahl.jar +EOF-JAVA +else +with_jdk="" +rm -f with_jdk +echo -n '' > with_jdk.files +fi +%ifarch ppc ppc64 +with_jdk="" +rm -f with_jdk +echo -n '' > with_jdk.files +%endif +cat with_jdk.files +# ### these possibly need further discussion +# swig_pydir = @libdir@/svn-python/libsvn +# swig_pydir_extra = @libdir@/svn-python/svn +mv Makefile.in{,.} +sed " +s@^swig_pydir = .*@swig_pydir = %{site_python}/libsvn@ +s@^swig_pydir_extra = .*@swig_pydir_extra = %{site_python}/svn@ +" < Makefile.in. > Makefile.in +diff -u Makefile.in. Makefile.in || true