Search
j0ke.net Open Build Service
>
Projects
>
devel
:
subversion
>
subversion16
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 18
[-]
[+]
Added
subversion.spec
@@ -0,0 +1,2269 @@ +# +# spec file for package subversion (Version 1.6.3) +# +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2009 Pascal Bleser <pascal.bleser@opensuse.org> +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +%if 0%{?sles_version} == 9 +%define __python %{_usr}/bin/python2.5 +%endif +%if 0%{?sles_version} == 9 +%define with_ruby 0 +%define with_python_ctypes 0 +%else +%define with_ruby 1 +%define with_python_ctypes 0 +%endif +%define with_intree_sqlite 1 +%if 0%{?suse_version} > 1010 +%define with_gnome_keyring 1 +%else +%define with_gnome_keyring 0 +%endif # suse_version > 1010 +%if 0%{?suse_version} > 1030 +%define with_kde4_kwallet 1 +%else +%define with_kde4_kwallet 0 +%endif # suse_version > 1030 + +Name: subversion +Version: 1.6.4 +Release: 0 +# in-tree SWIG version to use for the build: +%define swig_version 1.3.36 +%define sqlite_version 3.6.14.2 +%if 0%{?suse_version} > 910 +BuildRequires: update-alternatives +%endif # suse_version > 910 +BuildRequires: apache2-devel db-devel gcc gcc-c++ glibc-devel libstdc++-devel zlib-devel +BuildRequires: pkgconfig +%if 0%{?sles_version} == 9 +BuildRequires: python25 python25-devel python-xml +%else +BuildRequires: python-devel python-xml +%endif +%if %with_python_ctypes +BuildRequires: ctypesgen +%endif # with_python_ctypes +%if %with_ruby +BuildRequires: ruby-devel +%endif # with_ruby +BuildRequires: apache2-prefork +BuildRequires: cyrus-sasl-devel +%if %with_gnome_keyring +BuildRequires: dbus-1-devel +BuildRequires: glib2-devel gnome-keyring-devel +%endif # with_gnome_keyring +%if %with_kde4_kwallet +BuildRequires: dbus-1-devel +BuildRequires: kdelibs4-core libkde4-devel libqt4-devel +%endif # with_kde4_kwallet +%ifarch ppc ppc64 +# no JDK on ppc +%define with_java 0 +%else +%if 0%{?sles_version} +# no JDK on SLE either +%define with_java 0 +%else +%if 0%{?suse_version} >= 1100 +# OpenJDK is available by default on openSUSE >= 11.0 +%define with_java 1 +BuildRequires: java-1_6_0-openjdk-devel +%else +%if 0%{?suse_version} == 1030 +BuildRequires: java-1_6_0-sun-devel +%define with_java 1 +%else +# Older OpenSUSE version might still have a 1.5 JDK around +BuildRequires: java-1_5_0-sun-devel +%define with_java 1 +%endif # suse_version == 1030 +%endif # suse_version >= 1100 +%endif # sles_version +%endif # ifarch +%if %with_java +BuildRequires: junit +%endif #with_java +%if 0%{?suse_version} > 1030 +BuildRequires: libneon-devel +%else +BuildRequires: neon-devel openldap2-devel +%endif # suse_version > 1030 +# +%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 apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) +%if %{!?site_python:1}0 +%define site_python %(%__python -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib()") +%endif +# +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: http://subversion.tigris.org/downloads/subversion-%{version}.tar.bz2 +Source1: subversion.conf +Source2: subversion.README.SuSE +Source3: svnmerge.py +Source9: subversion.rcsvnserve +# http://prdownloads.sourceforge.net/swig/swig-%{swig_version}.tar.bz2 +Source10: subversion.sysconfig.svnserve +Source12: subversion.sysconfig.svnserve.remoteaccess +Source13: subversion.xinetd.svnserve +Source42: subversion.svngrep.sh +Source43: subversion.svndiff.sh +Source90: swig-%{swig_version}.tar.bz2 +%if %with_intree_sqlite +# http://www.sqlite.org/sqlite-amalgamation-%{sqlite_version}.tar.gz +Source91: sqlite-amalgamation-%{sqlite_version}.tar.bz2 +%else +BuildRequires: sqlite-devel >= %{sqlite_version} +%endif # with_intree_sqlite +Source92: %{name}-%{version}-rpmlintrc +# +Patch11: subversion.libtool-verbose.patch +Patch12: subversion-fix_nonvoid_function_without_return.patch +# build fixes +Patch20: subversion-swig-perl-install_vendor.patch +Patch23: subversion.libtool-pie-flags.patch +Patch31: subversion.perl.LD_RUN_PATH.patch +Patch33: subversion.header_wrappers.patch +Patch34: subversion.allowed-neon.patch +Patch35: subversion.java14.patch +Patch36: subversion-ctypes-remove_shebang.patch +Patch37: subversion-make-check-log-to-stdout.patch +# +%if %with_ruby +%if %{!?rb_arch:1}0 +%define rb_arch %(echo "%{_host_cpu}-%{_os}" | sed -e "s/i686/i586/" -e "s/armv5tel/armv4l/" -e "s/hppa2.0/hppa/") +%endif +%if %{!?rb_major_ver:1}0 +%define rb_major_ver %(/usr/bin/ruby -e 'puts VERSION'|cut -f1,2 -d.) +%endif +%if %{!?site_ruby:1}0 +%define site_ruby %{_usr}/%{_lib}/ruby/site_ruby/%{rb_major_ver} +%endif +%endif # with_ruby +%if %with_java +Provides: subversion-javahl = %{version}-%{release} +%endif # with_java + +%description +Subversion does the same thing cvs (CVS (Concurrent Versioning System)) +but has major enhancements compared to CVS. The name of the cmdline +client is svn. + + + +%package devel +License: The Apache Software License +Group: Development/Libraries/C and C++ +Summary: Development package for Subversion developers +Requires: subversion = %{version} +# this pulls in libapr1-devel and libexpat-devel +Requires: libapr-util1-devel + +%description devel +The subversion-devel package includes the static libraries and include +files for developers interacting with the subversion package. + + + +%package tools +License: The Apache Software License; Subversion License, http://subversion.tigris.org/license-1.html +Group: Development/Tools/Version Control +Summary: Tools for Subversion + +%description tools +This package contains a lot of tools for subversion server and