2007-01-15 23:38:11 +00:00
|
|
|
#
|
2011-03-04 13:12:38 +00:00
|
|
|
# spec file for package subversion
|
2007-01-15 23:38:11 +00:00
|
|
|
#
|
2018-04-12 08:20:11 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-06-18 12:36:30 +00:00
|
|
|
# Copyright (c) 2013 Andreas Stieger <andreas.stieger@gmx.de>
|
2010-09-27 13:53:08 +00:00
|
|
|
# Copyright (c) 2009-2010 Pascal Bleser <pascal.bleser@opensuse.org>
|
2007-01-15 23:38:11 +00:00
|
|
|
#
|
2008-09-06 01:45:22 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-01-15 23:38:11 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-11-25 18:39:31 +00:00
|
|
|
|
2013-05-20 21:00:10 +00:00
|
|
|
%define svngroup svn
|
|
|
|
%define svnuser svn
|
2017-03-13 11:04:02 +00:00
|
|
|
%{!?_tmpfilesdir: %global _tmpfilesdir %{_libexecdir}/tmpfiles.d }
|
2014-09-08 22:14:38 +00:00
|
|
|
%define _fwdefdir %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services
|
2014-11-01 22:32:25 +00:00
|
|
|
%define sqlite_minimum_version 3.7.12
|
2017-08-25 12:39:32 +00:00
|
|
|
# SLE does not ship KDE
|
|
|
|
%if 0%{?is_opensuse} != 1
|
2015-08-24 12:49:22 +00:00
|
|
|
%define with_kde 0
|
|
|
|
%else
|
2018-04-12 08:20:11 +00:00
|
|
|
%define with_kde 1
|
2009-06-09 15:49:58 +00:00
|
|
|
%endif
|
2017-12-19 08:04:35 +00:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
|
|
|
%endif
|
2014-09-28 14:14:01 +00:00
|
|
|
%bcond_without python_ctypes
|
2014-09-09 07:27:13 +00:00
|
|
|
%bcond_with all_regression_tests
|
2014-09-08 22:14:38 +00:00
|
|
|
Name: subversion
|
2018-04-12 09:06:20 +00:00
|
|
|
Version: 1.10.0
|
2014-09-08 22:14:38 +00:00
|
|
|
Release: 0
|
2011-10-21 15:57:03 +00:00
|
|
|
Summary: Subversion version control system
|
2012-02-26 23:10:09 +00:00
|
|
|
License: Apache-2.0
|
2007-01-15 23:38:11 +00:00
|
|
|
Group: Development/Tools/Version Control
|
2018-04-12 09:06:20 +00:00
|
|
|
URL: https://subversion.apache.org
|
|
|
|
Source0: https://dist.apache.org/repos/dist/release/subversion/%{name}-%{version}.tar.bz2
|
2007-01-15 23:38:11 +00:00
|
|
|
Source1: subversion.conf
|
2013-12-08 16:04:53 +00:00
|
|
|
Source2: subversion.README.SUSE
|
2013-06-18 12:36:30 +00:00
|
|
|
Source4: contrib-1485350.tar.bz2
|
2007-01-15 23:38:11 +00:00
|
|
|
Source10: subversion.sysconfig.svnserve
|
2007-04-28 12:34:43 +00:00
|
|
|
Source12: subversion.sysconfig.svnserve.remoteaccess
|
2013-05-20 21:00:10 +00:00
|
|
|
Source14: svnserve.service
|
|
|
|
Source15: svnserve.tmpfiles
|
2007-01-15 23:38:11 +00:00
|
|
|
Source42: subversion.svngrep.sh
|
|
|
|
Source43: subversion.svndiff.sh
|
2016-04-28 15:48:17 +00:00
|
|
|
Source50: https://people.apache.org/keys/group/subversion.asc#/subversion.keyring
|
2018-04-12 09:06:20 +00:00
|
|
|
Source51: https://dist.apache.org/repos/dist/release/subversion/%{name}-%{version}.tar.bz2.asc
|
2009-10-23 14:00:56 +00:00
|
|
|
Source92: %{name}.rpmlintrc
|
2007-01-15 23:38:11 +00:00
|
|
|
Patch11: subversion.libtool-verbose.patch
|
|
|
|
Patch20: subversion-swig-perl-install_vendor.patch
|
2014-09-08 22:14:38 +00:00
|
|
|
Patch23: subversion-swig-perl-Wall.patch
|
|
|
|
Patch30: subversion-1.8.0-rpath.patch
|
2010-09-27 13:53:08 +00:00
|
|
|
Patch37: subversion-no-build-date.patch
|
2014-09-08 22:14:38 +00:00
|
|
|
Patch39: subversion-fix-parallel-build-support-for-perl-bindings.patch
|
|
|
|
Patch40: subversion-perl-underlinking.patch
|
2017-03-13 11:04:02 +00:00
|
|
|
BuildRequires: apache-rpm-macros
|
2015-08-18 20:04:51 +00:00
|
|
|
BuildRequires: apache2-devel >= 2.2.0
|
2014-09-08 22:14:38 +00:00
|
|
|
BuildRequires: apache2-prefork
|
|
|
|
BuildRequires: db-devel
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: file-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: java-devel >= 1.6.0
|
|
|
|
BuildRequires: junit
|
|
|
|
BuildRequires: libstdc++-devel
|
|
|
|
BuildRequires: libtool
|
2017-03-13 11:04:02 +00:00
|
|
|
BuildRequires: pkgconfig
|
2015-08-24 12:49:22 +00:00
|
|
|
# Test dependency
|
|
|
|
BuildRequires: python-pysqlite
|
2017-12-19 08:04:35 +00:00
|
|
|
# Python 2.7 or later is required to run autogen.sh
|
|
|
|
BuildRequires: python2-devel >= 2.7
|
2017-11-02 08:28:08 +00:00
|
|
|
BuildRequires: python2-xml
|
2014-09-08 22:14:38 +00:00
|
|
|
BuildRequires: ruby-devel >= 1.8.2
|
|
|
|
BuildRequires: swig
|
|
|
|
BuildRequires: update-alternatives
|
2015-08-24 12:49:22 +00:00
|
|
|
BuildRequires: pkgconfig(apr-1) >= 1.3.0
|
|
|
|
BuildRequires: pkgconfig(apr-util-1) >= 1.3.0
|
2018-04-12 09:22:01 +00:00
|
|
|
BuildRequires: pkgconfig(bash-completion)
|
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(krb5)
|
|
|
|
BuildRequires: pkgconfig(liblz4)
|
|
|
|
BuildRequires: pkgconfig(libsasl2)
|
2015-08-24 12:49:22 +00:00
|
|
|
BuildRequires: pkgconfig(serf-1) >= 1.3.4
|
2018-04-12 09:22:01 +00:00
|
|
|
BuildRequires: pkgconfig(sqlite3) >= %{sqlite_minimum_version}
|
2015-08-24 12:49:22 +00:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2018-04-12 09:22:01 +00:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2014-11-01 22:32:25 +00:00
|
|
|
Requires: libsqlite3-0 >= %{sqlite_minimum_version}
|
2014-09-08 22:14:38 +00:00
|
|
|
Requires(post): %fillup_prereq
|
|
|
|
Requires(pre): pwdutils
|
2015-08-24 12:49:22 +00:00
|
|
|
Recommends: %{name}-bash-completion
|
2017-03-13 11:04:02 +00:00
|
|
|
# workaround for boo#969159
|
|
|
|
Conflicts: libsvn_auth_kwallet-1-0 < %{version}
|
|
|
|
Conflicts: libsvn_auth_kwallet-1-0 > %{version}
|
|
|
|
Conflicts: libsvn_gnome_keyring-1-0 < %{version}
|
|
|
|
Conflicts: libsvn_gnome_keyring-1-0 > %{version}
|
2009-06-09 15:49:58 +00:00
|
|
|
Provides: subversion-javahl = %{version}-%{release}
|
2015-08-24 12:49:22 +00:00
|
|
|
%{?systemd_requires}
|
2014-09-09 07:27:13 +00:00
|
|
|
%if %{with all_regression_tests}
|
|
|
|
# tools required for network based tests
|
|
|
|
BuildRequires: net-tools
|
2015-03-10 20:10:11 +00:00
|
|
|
BuildRequires: time
|
2015-08-24 12:49:22 +00:00
|
|
|
BuildRequires: wget
|
2014-09-09 07:27:13 +00:00
|
|
|
%endif
|
|
|
|
%if %{with python_ctypes}
|
|
|
|
BuildRequires: ctypesgen
|
2014-09-08 22:14:38 +00:00
|
|
|
%endif
|
2014-11-01 23:22:16 +00:00
|
|
|
%if %{with_kde}
|
|
|
|
BuildRequires: kdelibs4-core
|
|
|
|
BuildRequires: libkde4-devel
|
2017-03-13 11:04:02 +00:00
|
|
|
%else
|
|
|
|
# In a case we migrate from system that had the kwallet integration we need it
|
|
|
|
# gone from the package to allow update
|
|
|
|
Provides: libsvn_auth_kwallet-1-0 = %{version}
|
|
|
|
Obsoletes: libsvn_auth_kwallet-1-0 < %{version}
|
2014-11-01 23:22:16 +00:00
|
|
|
%endif
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%description
|
2011-10-21 15:57:03 +00:00
|
|
|
Subversion exists to be universally recognized and adopted as an open-source,
|
|
|
|
centralized version control system characterized by its reliability as a safe
|
|
|
|
haven for valuable data; the simplicity of its model and usage; and its ability
|
|
|
|
to support the needs of a wide variety of users and projects, from individuals
|
|
|
|
to large-scale enterprise operations.
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development package for Subversion developers
|
2017-06-15 15:00:44 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-12-13 20:03:06 +00:00
|
|
|
Requires: libapr-util1-devel
|
2014-09-08 22:14:38 +00:00
|
|
|
Requires: subversion = %{version}
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The subversion-devel package includes the static libraries and include
|
|
|
|
files for developers interacting with the subversion package.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Tools for Subversion
|
2012-02-26 23:10:09 +00:00
|
|
|
Group: Development/Tools/Version Control
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%description tools
|
2011-10-21 15:57:03 +00:00
|
|
|
This package contains some tools for subversion server and
|
|
|
|
repository admins.
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%package perl
|
2010-09-27 13:53:08 +00:00
|
|
|
Summary: Allows Perl scripts to directly use Subversion repositories
|
2012-02-26 23:10:09 +00:00
|
|
|
Group: Development/Tools/Version Control
|
2010-09-27 13:53:08 +00:00
|
|
|
Requires: perl = %{perl_version}
|
2012-05-31 12:09:14 +00:00
|
|
|
Requires: perl >= 5.8
|
|
|
|
Requires: subversion = %{version}
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%description perl
|
2014-09-08 22:14:38 +00:00
|
|
|
Provides Perl (SWIG) support for Subversion version control system.
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%package python
|
2010-09-27 13:53:08 +00:00
|
|
|
Summary: Allows Python scripts to directly use Subversion repositories
|
2012-02-26 23:10:09 +00:00
|
|
|
Group: Development/Tools/Version Control
|
2007-01-15 23:38:11 +00:00
|
|
|
Requires: subversion = %{version}
|
|
|
|
|
|
|
|
%description python
|
2014-09-08 22:14:38 +00:00
|
|
|
Provides Python (SWIG) support for Subversion version control system.
|
2007-01-15 23:38:11 +00:00
|
|
|
|
2014-09-09 07:27:13 +00:00
|
|
|
%if %{with python_ctypes}
|
2009-06-09 15:49:58 +00:00
|
|
|
%package python-ctypes
|
|
|
|
Summary: High-Level Python Bindings for Subversion
|
2012-02-26 23:10:09 +00:00
|
|
|
Group: Development/Tools/Version Control
|
2009-06-09 15:49:58 +00:00
|
|
|
Requires: subversion = %{version}
|
|
|
|
|
|
|
|
%description python-ctypes
|
|
|
|
Provides high-level Python support for Subversion, based on ctypes.
|
2014-09-09 07:27:13 +00:00
|
|
|
%endif
|
2009-06-09 15:49:58 +00:00
|
|
|
|
|
|
|
%package ruby
|
2010-09-27 13:53:08 +00:00
|
|
|
Summary: Allows Ruby scripts to directly use Subversion repositories
|
2012-02-26 23:10:09 +00:00
|
|
|
Group: Development/Tools/Version Control
|
2009-06-09 15:49:58 +00:00
|
|
|
Requires: subversion = %{version}
|
|
|
|
|
|
|
|
%description ruby
|
2014-09-08 22:14:38 +00:00
|
|
|
Provides Ruby (SWIG) support for Subversion version control system.
|
2009-06-09 15:49:58 +00:00
|
|
|
|
2007-01-15 23:38:11 +00:00
|
|
|
%package server
|
|
|
|
Summary: Apache server module for Subversion server
|
2012-02-26 23:10:09 +00:00
|
|
|
Group: Development/Tools/Version Control
|
|
|
|
Requires: %{apache_mmn}
|
|
|
|
Requires: apache2
|
|
|
|
Requires: subversion = %{version}
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%description server
|
|
|
|
The subversion-server package adds the Subversion server Apache module
|
|
|
|
to the Apache directories and configuration.
|
|
|
|
|
2014-09-08 22:14:38 +00:00
|
|
|
%package -n libsvn_auth_kwallet-1-0
|
2015-03-20 21:11:16 +00:00
|
|
|
Summary: KWallet support for Subversion
|
2009-06-09 15:49:58 +00:00
|
|
|
Group: Development/Tools/Version Control
|
2015-03-20 21:11:16 +00:00
|
|
|
Requires: %{name} = %{version}
|
2015-08-24 12:49:22 +00:00
|
|
|
Supplements: packageand(subversion:kdebase4-workspace)
|
|
|
|
Supplements: packageand(subversion:plasma5-workspace)
|
2009-06-09 15:49:58 +00:00
|
|
|
|
2009-07-09 09:12:54 +00:00
|
|
|
%description -n libsvn_auth_kwallet-1-0
|
2015-03-20 21:11:16 +00:00
|
|
|
Provides KWallet integration for Subversion
|
2009-06-09 15:49:58 +00:00
|
|
|
|
2009-07-09 09:12:54 +00:00
|
|
|
%package -n libsvn_auth_gnome_keyring-1-0
|
2015-03-20 21:11:16 +00:00
|
|
|
Summary: GNOME keyring sypport for Subversion
|
2009-06-09 15:49:58 +00:00
|
|
|
Group: Development/Tools/Version Control
|
2015-03-20 21:11:16 +00:00
|
|
|
Requires: %{name} = %{version}
|
2015-10-28 13:31:39 +00:00
|
|
|
Supplements: packageand(subversion:gnome-session)
|
2009-06-09 15:49:58 +00:00
|
|
|
|
2009-07-09 09:12:54 +00:00
|
|
|
%description -n libsvn_auth_gnome_keyring-1-0
|
2015-03-20 21:11:16 +00:00
|
|
|
Provides GNOME keyring support for Subversion
|
2009-06-09 15:49:58 +00:00
|
|
|
|
2012-03-10 01:32:18 +00:00
|
|
|
%package bash-completion
|
|
|
|
Summary: Bash Completion for %{name}
|
|
|
|
Group: Development/Tools/Version Control
|
|
|
|
Requires: %{name} = %{version}
|
2018-04-12 09:22:01 +00:00
|
|
|
Requires: pkgconfig(bash-completion)
|
2012-03-10 01:32:18 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description bash-completion
|
|
|
|
Bash command line completion support for %{name} - completion of subcommands,
|
|
|
|
parameters and keywords for the svn command and other tools.
|
|
|
|
|
2007-01-15 23:38:11 +00:00
|
|
|
%prep
|
2018-04-12 09:06:20 +00:00
|
|
|
%setup -q -a 4
|
2013-06-18 12:36:30 +00:00
|
|
|
%patch11 -p1
|
|
|
|
%patch20 -p1
|
|
|
|
%patch23 -p1
|
2014-09-08 22:14:38 +00:00
|
|
|
%patch30 -p1
|
2013-04-07 21:04:38 +00:00
|
|
|
%patch37 -p1
|
2014-09-08 22:14:38 +00:00
|
|
|
%patch39
|
|
|
|
%patch40 -p1
|
2014-09-08 22:42:39 +00:00
|
|
|
|
|
|
|
%build
|
2014-09-08 22:14:38 +00:00
|
|
|
# Re-boot strap, needed for patch37
|
|
|
|
PATH=%{_prefix}/bin:$PATH ./autogen.sh --release
|
2007-01-15 23:38:11 +00:00
|
|
|
|
2014-09-08 22:14:38 +00:00
|
|
|
# Fix timestamp in doxygen
|
|
|
|
echo "HTML_TIMESTAMP = NO" >> doc/doxygen.conf
|
2010-09-27 13:53:08 +00:00
|
|
|
|
2007-01-15 23:38:11 +00:00
|
|
|
cat > with_jdk.files <<EOF-JAVA
|
|
|
|
%{_libdir}/libsvnjavahl*.so.*
|
|
|
|
%{_libdir}/libsvnjavahl*.so
|
|
|
|
%dir %{_libdir}/svn-javahl
|
|
|
|
%{_libdir}/svn-javahl/svn-javahl.jar
|
2009-06-09 15:49:58 +00:00
|
|
|
%{_datadir}/java/svn-javahl.jar
|
2007-01-15 23:38:11 +00:00
|
|
|
EOF-JAVA
|
|
|
|
# ### these possibly need further discussion
|
|
|
|
# swig_pydir = @libdir@/svn-python/libsvn
|
|
|
|
# swig_pydir_extra = @libdir@/svn-python/svn
|
2008-07-15 22:26:38 +00:00
|
|
|
sed --in-place=~ "
|
2014-09-08 22:14:38 +00:00
|
|
|
s@^swig_pydir = .*@swig_pydir = %{python_sitearch}/libsvn@
|
|
|
|
s@^swig_pydir_extra = .*@swig_pydir_extra = %{python_sitearch}/svn@
|
2008-07-15 22:26:38 +00:00
|
|
|
" Makefile.in
|
|
|
|
diff -u Makefile.in~ Makefile.in || true
|
2007-01-15 23:38:11 +00:00
|
|
|
sh -x autogen.sh
|
2007-10-16 16:33:45 +00:00
|
|
|
for i in subversion/bindings/javahl/native/*.cpp
|
2007-01-15 23:38:11 +00:00
|
|
|
do
|
2007-10-16 16:33:45 +00:00
|
|
|
d=$(sed -n '/^#include "..\/include/{s@^[^/]\+\([^"]\+\).*@subversion/bindings/javahl\1@;H};${x;s@\n@ @gp}' $i)
|
2007-01-15 23:38:11 +00:00
|
|
|
echo
|
|
|
|
echo "# $i"
|
|
|
|
if ! test -z "$d"
|
|
|
|
then
|
|
|
|
echo ${i%.cpp}.lo: $d
|
|
|
|
fi
|
|
|
|
echo
|
2007-10-16 16:33:45 +00:00
|
|
|
done >> build-outputs.mK
|
2017-03-13 11:04:02 +00:00
|
|
|
export CFLAGS="$(apxs2 -q CFLAGS) %{optflags} -fstack-protector -fpie"
|
2007-01-15 23:38:11 +00:00
|
|
|
export CXXFLAGS="$CFLAGS"
|
2014-09-08 22:14:38 +00:00
|
|
|
export APACHE_LDFLAGS="-Wl,-z,relro,-z,now"
|
|
|
|
export LDFLAGS="-pie"
|
2007-12-13 20:03:06 +00:00
|
|
|
%configure \
|
2014-09-08 22:14:38 +00:00
|
|
|
--enable-local-library-preloading \
|
2007-01-15 23:38:11 +00:00
|
|
|
--with-editor="vim -c 'set tw=72 et' " \
|
2012-05-31 12:09:14 +00:00
|
|
|
--with-serf=%{_prefix} \
|
2007-01-15 23:38:11 +00:00
|
|
|
--with-apr=%{_prefix} \
|
|
|
|
--with-apr-util=%{_prefix} \
|
2017-03-13 11:04:02 +00:00
|
|
|
--with-apxs=apxs2 \
|
2007-10-16 16:33:45 +00:00
|
|
|
--with-zlib=%{_prefix} \
|
2009-07-09 09:12:54 +00:00
|
|
|
--with-berkeley-db=db.h:db.h:%{_prefix}:db \
|
2013-06-18 12:36:30 +00:00
|
|
|
--with-apache-libexecdir=%{apache_libexecdir} \
|
2014-09-08 22:14:38 +00:00
|
|
|
--with-jdk=%{_libdir}/jvm/java --enable-javahl \
|
|
|
|
--with-junit="%{_datadir}/java/junit.jar" \
|
2007-01-15 23:38:11 +00:00
|
|
|
--with-jikes=no \
|
2014-09-08 22:14:38 +00:00
|
|
|
--with-sqlite="%{_prefix}" \
|
2014-11-01 22:32:25 +00:00
|
|
|
--enable-sqlite-compatibility-version=%{sqlite_minimum_version} \
|
2014-09-08 22:14:38 +00:00
|
|
|
--with-gnome-keyring \
|
2014-11-01 23:22:16 +00:00
|
|
|
%if %{with_kde}
|
2014-09-08 22:14:38 +00:00
|
|
|
--with-kwallet \
|
2014-11-01 23:22:16 +00:00
|
|
|
%endif
|
2007-12-13 20:03:06 +00:00
|
|
|
--disable-mod-activation \
|
2011-10-23 19:17:14 +00:00
|
|
|
--with-libmagic \
|
2015-08-06 11:30:01 +00:00
|
|
|
--disable-static \
|
|
|
|
--enable-broken-httpd-auth
|
2014-09-08 22:14:38 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
make doc-api %{?_smp_mflags}
|
|
|
|
|
|
|
|
# Bindings
|
|
|
|
make extraclean-bindings %{?_smp_mflags}
|
2014-09-09 07:27:13 +00:00
|
|
|
make %{?_smp_mflags} swig-py swig-rb swig-pl
|
|
|
|
%if %{with python_ctypes}
|
|
|
|
make %{?_smp_mflags} ctypes-python
|
|
|
|
%endif
|
2014-09-08 22:14:38 +00:00
|
|
|
# Java is not thread safe
|
|
|
|
make -j1 JAVAC_FLAGS=" -encoding iso8859-1" javahl doc-javahl
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%install
|
2017-03-13 11:04:02 +00:00
|
|
|
%make_install
|
2014-09-09 07:27:13 +00:00
|
|
|
make DESTDIR=%{buildroot} install-swig-py install-swig-pl install-javahl install-swig-rb
|
|
|
|
%if %{with python_ctypes}
|
|
|
|
make DESTDIR=%{buildroot} install-ctypes-python
|
2009-06-09 15:49:58 +00:00
|
|
|
# remove csvn .pyc files and recompile them because they contain the $RPM_BUILD_ROOT path:
|
2014-09-08 22:14:38 +00:00
|
|
|
find "%{buildroot}%{python_sitelib}/csvn/" -name "*.pyc" | xargs rm -f
|
|
|
|
python "%{py_libdir}/compileall.py" -f -d "%{python_sitelib}/csvn" "%{buildroot}/%{python_sitelib}/csvn"
|
2014-09-09 07:27:13 +00:00
|
|
|
%endif
|
2012-05-31 12:09:14 +00:00
|
|
|
|
2007-01-15 23:38:11 +00:00
|
|
|
%perl_process_packlist
|
2014-09-08 22:14:38 +00:00
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
cp -Lav %{SOURCE42} %{buildroot}%{_bindir}/svngrep
|
|
|
|
cp -Lav %{SOURCE43} %{buildroot}%{_bindir}/svndiff
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/
|
|
|
|
cp -avL contrib/client-side/emacs/*.el %{buildroot}%{_datadir}/emacs/site-lisp/
|
|
|
|
rm -f %{buildroot}%{_datadir}/emacs/site-lisp/vc-svn.el
|
|
|
|
|
2017-12-19 08:04:35 +00:00
|
|
|
cp -avL contrib/client-side/svn_apply_autoprops.py %{buildroot}%{_bindir}
|
2014-09-08 22:14:38 +00:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}/%{apache_sysconfdir}/conf.d
|
|
|
|
cp -av %{SOURCE1} %{buildroot}/%{apache_sysconfdir}/conf.d/subversion.conf
|
|
|
|
|
|
|
|
cp -avL %{SOURCE2} README.SUSE
|
2007-04-28 12:34:43 +00:00
|
|
|
cp -avL subversion/mod_authz_svn/INSTALL README.mod_authz_svn
|
2014-09-08 22:14:38 +00:00
|
|
|
cat %{name}.lang > files.subversion
|
2007-01-15 23:38:11 +00:00
|
|
|
cat with_jdk.files >> files.subversion
|
2014-09-08 22:14:38 +00:00
|
|
|
|
2007-01-15 23:38:11 +00:00
|
|
|
# tools
|
2014-09-08 22:14:38 +00:00
|
|
|
make DESTDIR=%{buildroot} install-tools
|
2015-08-18 20:04:51 +00:00
|
|
|
mv -v %{buildroot}%{_bindir}/svn-tools/{fsfs-access-map,svnauthz,svnauthz-validate,svn-populate-node-origins-index,svnraisetreeconflict} %{buildroot}%{_bindir}
|
2011-10-21 21:46:23 +00:00
|
|
|
# discard all other tools
|
2014-09-08 22:14:38 +00:00
|
|
|
rm -rf %{buildroot}%{_bindir}/svn-tools
|
2015-08-18 20:04:51 +00:00
|
|
|
# replicate svn-bench compatibility link
|
|
|
|
ln -sf svnbench %{buildroot}%{_bindir}/svn-bench
|
2014-09-08 22:14:38 +00:00
|
|
|
|
2017-12-19 08:04:35 +00:00
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
2017-11-23 15:13:02 +00:00
|
|
|
mkdir -p %{buildroot}%{_fillupdir}
|
|
|
|
install -m 644 -D %{SOURCE10} %{buildroot}%{_fillupdir}/sysconfig.svnserve
|
2014-09-08 22:14:38 +00:00
|
|
|
install -m 644 -D %{SOURCE12} %{buildroot}/%{_fwdefdir}/svnserve
|
|
|
|
install -d -m 0755 %{buildroot}/srv/svn
|
|
|
|
|
|
|
|
install -m 644 -D %{SOURCE14} %{buildroot}/%{_unitdir}/svnserve.service
|
2015-08-24 12:49:22 +00:00
|
|
|
ln -sv service %{buildroot}%{_sbindir}/rcsvnserve
|
2014-09-08 22:14:38 +00:00
|
|
|
install -d -m 0755 %{buildroot}/%{_tmpfilesdir}
|
|
|
|
install -m 0644 %{SOURCE15} %{buildroot}/%{_tmpfilesdir}/svnserve.conf
|
|
|
|
|
2007-12-13 20:03:06 +00:00
|
|
|
#useless libtool stuff
|
2014-09-08 22:14:38 +00:00
|
|
|
rm -rf %{buildroot}%{python_sitearch}/*/*.{a,la}
|
|
|
|
rm -rf %{buildroot}%{_libdir}/libsvn_swig_*.{so,la,a}
|
|
|
|
rm -rf %{buildroot}%{rb_sitelib}/svn/ext/*.*a
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
# remove stuff produced with Perl modules
|
|
|
|
find %{buildroot} -type f \
|
|
|
|
-a \( -name .packlist -o \( -name '*.bs' -a -empty \) \) \
|
|
|
|
-print0 | xargs -0 rm -f
|
|
|
|
|
|
|
|
# make Perl modules writable so they get stripped
|
|
|
|
find %{buildroot}%{_libexecdir}/perl5 -type f -perm 555 -print0 |
|
|
|
|
xargs -0 chmod 755
|
|
|
|
|
|
|
|
install -d -m 0755 %{buildroot}/%{_datadir}/java
|
|
|
|
ln -sv %{_libdir}/svn-javahl/svn-javahl.jar %{buildroot}/%{_datadir}/java/svn-javahl.jar
|
|
|
|
rm -f %{buildroot}%{_localstatedir}/adm/perl-modules/subversion
|
|
|
|
|
|
|
|
install -D -m0644 tools/client-side/bash_completion "%{buildroot}%{_sysconfdir}/bash_completion.d/%{name}"
|
2009-06-09 15:49:58 +00:00
|
|
|
|
2014-09-08 22:14:38 +00:00
|
|
|
# examples
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
cp -r tools/hook-scripts tools/backup tools/bdb tools/examples tools/xslt %{buildroot}%{_docdir}/%{name}
|
|
|
|
find %{buildroot}%{_docdir}/%{name} -type f -print0 | xargs -0 chmod 644
|
2012-03-10 01:32:18 +00:00
|
|
|
|
2013-05-14 22:12:01 +00:00
|
|
|
# clean tools for doc
|
2014-09-08 22:14:38 +00:00
|
|
|
rm -rf tools/*/*.in
|
|
|
|
rm -rf doc/doxygen/html/installdox
|
2013-05-14 22:12:01 +00:00
|
|
|
|
2009-06-09 15:49:58 +00:00
|
|
|
%check
|
2014-09-08 22:14:38 +00:00
|
|
|
export LANG=C LC_ALL=C
|
2015-09-03 14:21:51 +00:00
|
|
|
|
2014-09-08 22:14:38 +00:00
|
|
|
make %{?_smp_mflags} check CLEANUP=true || (cat fails.log; exit 1)
|
|
|
|
make %{?_smp_mflags} check-javahl || (cat fails.log; exit 1)
|
|
|
|
make %{?_smp_mflags} check-swig-pl || (cat fails.log; exit 1)
|
2016-09-20 15:15:53 +00:00
|
|
|
%if 0%{?suse_version} <= 1320
|
|
|
|
# swig bindings check failing from swig 3.0.3 and later
|
2015-03-02 08:09:26 +00:00
|
|
|
make %{?_smp_mflags} check-swig-py || (cat fails.log; exit 1)
|
2016-09-20 15:15:53 +00:00
|
|
|
# same for ruby bindings
|
2014-09-08 22:14:38 +00:00
|
|
|
make %{?_smp_mflags} check-swig-rb || (cat fails.log; exit 1)
|
2015-05-16 18:09:00 +00:00
|
|
|
%endif
|
2014-09-09 07:27:13 +00:00
|
|
|
%if %{with all_regression_tests}
|
|
|
|
make %{?_smp_mflags} svnserveautocheck CLEANUP=true FS_TYPE=fsfs || (cat fails.log; exit 1)
|
|
|
|
make %{?_smp_mflags} svnserveautocheck CLEANUP=true FS_TYPE=bdb || (cat fails.log; exit 1)
|
|
|
|
make %{?_smp_mflags} davautocheck CLEANUP=true FS_TYPE=fsfs || (cat fails.log; exit 1)
|
|
|
|
make %{?_smp_mflags} davautocheck CLEANUP=true FS_TYPE=bdb || (cat fails.log; exit 1)
|
|
|
|
%endif
|
2007-05-22 23:41:58 +00:00
|
|
|
|
2013-05-20 21:00:10 +00:00
|
|
|
%pre
|
|
|
|
getent group %{svngroup} >/dev/null || groupadd -r %{svngroup}
|
|
|
|
getent passwd %{svnuser} >/dev/null || useradd -r -g %{svngroup} -d /srv/svn -s /sbin/nologin -c "user for Apache Subversion svnserve" %{svnuser}
|
|
|
|
%service_add_pre svnserve.service
|
|
|
|
|
2007-12-13 20:03:06 +00:00
|
|
|
%preun
|
2013-05-20 21:00:10 +00:00
|
|
|
%service_del_preun svnserve.service
|
2007-12-13 20:03:06 +00:00
|
|
|
|
2007-01-15 23:38:11 +00:00
|
|
|
%post
|
2015-01-08 17:27:36 +00:00
|
|
|
%{fillup_only -n svnserve svnserve}
|
2013-05-20 21:00:10 +00:00
|
|
|
%service_add_post svnserve.service
|
2014-06-04 23:26:28 +00:00
|
|
|
systemd-tmpfiles --create %{_tmpfilesdir}/svnserve.conf
|
2007-12-13 20:03:06 +00:00
|
|
|
/sbin/ldconfig
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%postun
|
2013-05-20 21:00:10 +00:00
|
|
|
%service_del_postun svnserve.service
|
2007-12-13 20:03:06 +00:00
|
|
|
/sbin/ldconfig
|
2007-01-15 23:38:11 +00:00
|
|
|
|
2007-05-22 23:41:58 +00:00
|
|
|
%post -n subversion-python -p /sbin/ldconfig
|
|
|
|
%postun -n subversion-python -p /sbin/ldconfig
|
|
|
|
%post -n subversion-perl -p /sbin/ldconfig
|
|
|
|
%postun -n subversion-perl -p /sbin/ldconfig
|
2009-06-09 15:49:58 +00:00
|
|
|
%post -n subversion-ruby -p /sbin/ldconfig
|
|
|
|
%postun -n subversion-ruby -p /sbin/ldconfig
|
2009-07-09 09:12:54 +00:00
|
|
|
%post -n libsvn_auth_gnome_keyring-1-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libsvn_auth_gnome_keyring-1-0 -p /sbin/ldconfig
|
2009-06-09 15:49:58 +00:00
|
|
|
|
2014-11-01 23:22:16 +00:00
|
|
|
%if %{with_kde}
|
2009-07-09 09:12:54 +00:00
|
|
|
%post -n libsvn_auth_kwallet-1-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libsvn_auth_kwallet-1-0 -p /sbin/ldconfig
|
2014-11-01 23:22:16 +00:00
|
|
|
%endif
|
2007-05-22 23:41:58 +00:00
|
|
|
|
2007-01-15 23:38:11 +00:00
|
|
|
%files -f files.subversion
|
2018-04-12 08:20:11 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.SUSE BUGS CHANGES README.mod_authz_svn
|
2014-09-08 22:14:38 +00:00
|
|
|
%dir %{_docdir}/%{name}/*
|
2017-03-13 11:04:02 +00:00
|
|
|
%{_docdir}/%{name}
|
2014-09-08 22:14:38 +00:00
|
|
|
%{_sbindir}/rcsvnserve
|
2017-11-23 15:13:02 +00:00
|
|
|
%{_fillupdir}/sysconfig.svnserve
|
2013-05-20 21:00:10 +00:00
|
|
|
%dir %attr(755,%{svnuser},%{svngroup}) /srv/svn
|
2007-04-28 12:34:43 +00:00
|
|
|
%config %{_fwdefdir}/*
|
2013-05-20 21:00:10 +00:00
|
|
|
%{_unitdir}/svnserve.service
|
2014-06-04 23:26:28 +00:00
|
|
|
%{_tmpfilesdir}/svnserve.conf
|
2014-09-08 22:14:38 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/svn
|
|
|
|
%attr(755,root,root) %{_bindir}/svnadmin
|
2015-08-18 20:04:51 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/svndiff
|
2014-09-08 22:14:38 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/svndumpfilter
|
2015-08-18 20:04:51 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/svnfsfs
|
|
|
|
%attr(755,root,root) %{_bindir}/svngrep
|
2014-09-08 22:14:38 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/svnlook
|
2015-08-18 20:04:51 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/svnmucc
|
|
|
|
%attr(755,root,root) %{_bindir}/svnrdump
|
2014-09-08 22:14:38 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/svnserve
|
|
|
|
%attr(755,root,root) %{_bindir}/svnsync
|
2015-08-18 20:04:51 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/svnversion
|
2007-01-15 23:38:11 +00:00
|
|
|
%{_libdir}/libsvn_client*.so.*
|
|
|
|
%{_libdir}/libsvn_delta*.so.*
|
|
|
|
%{_libdir}/libsvn_diff*.so.*
|
|
|
|
%{_libdir}/libsvn_fs*.so.*
|
|
|
|
%{_libdir}/libsvn_ra*.so.*
|
|
|
|
%{_libdir}/libsvn_repos*.so.*
|
|
|
|
%{_libdir}/libsvn_subr*.so.*
|
|
|
|
%{_libdir}/libsvn_wc*.so.*
|
2007-12-13 20:03:06 +00:00
|
|
|
%{_mandir}/man?/svn*
|
2014-09-08 22:14:38 +00:00
|
|
|
%{_datadir}/emacs
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%files perl
|
2015-08-18 20:04:51 +00:00
|
|
|
%{_mandir}/man?/SVN::*
|
2007-01-15 23:38:11 +00:00
|
|
|
%{_libdir}/libsvn_swig_perl-1.so.*
|
2014-09-08 22:14:38 +00:00
|
|
|
%{perl_vendorarch}/SVN
|
|
|
|
%{perl_vendorarch}/auto/SVN
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%files python
|
2014-09-08 22:14:38 +00:00
|
|
|
%dir %{python_sitearch}
|
|
|
|
%dir %{python_sitearch}/svn
|
|
|
|
%dir %{python_sitearch}/libsvn
|
2007-01-15 23:38:11 +00:00
|
|
|
%{_libdir}/libsvn_swig_py-1.so.*
|
2014-09-08 22:14:38 +00:00
|
|
|
%{python_sitearch}/libsvn/*
|
|
|
|
%{python_sitearch}/svn/*
|
2009-06-09 15:49:58 +00:00
|
|
|
|
2014-09-09 07:27:13 +00:00
|
|
|
%if %{with python_ctypes}
|
2009-06-09 15:49:58 +00:00
|
|
|
%files python-ctypes
|
|
|
|
%doc subversion/bindings/ctypes-python/examples
|
2014-09-08 22:14:38 +00:00
|
|
|
%dir %{python_sitelib}
|
|
|
|
%{python_sitelib}/csvn
|
|
|
|
%{python_sitelib}/svn_ctypes_python_bindings-*-py%{py_ver}.egg-info
|
2014-09-09 07:27:13 +00:00
|
|
|
%endif
|
2014-09-08 22:14:38 +00:00
|
|
|
|
2009-06-09 15:49:58 +00:00
|
|
|
%files ruby
|
2014-09-08 22:14:38 +00:00
|
|
|
%dir %{rb_sitelib}
|
|
|
|
%{rb_sitelib}/svn
|
|
|
|
%{rb_sitelib}/*/svn
|
2009-06-09 15:49:58 +00:00
|
|
|
%{_libdir}/libsvn_swig_ruby-1.so.*
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%files devel
|
2007-12-13 20:03:06 +00:00
|
|
|
%dir %{_includedir}/subversion-1
|
2007-01-15 23:38:11 +00:00
|
|
|
%{_libdir}/libsvn_*.so
|
2015-08-18 20:04:51 +00:00
|
|
|
%{_datadir}/pkgconfig/*.pc
|
2007-12-13 20:03:06 +00:00
|
|
|
%{_includedir}/subversion-1/*
|
2013-12-08 16:04:53 +00:00
|
|
|
%doc doc/doxygen/html
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%files tools
|
2015-08-18 20:04:51 +00:00
|
|
|
%{_bindir}/fsfs-access-map
|
2009-06-09 15:49:58 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/svn_apply_autoprops.py
|
2015-08-18 20:04:51 +00:00
|
|
|
%{_bindir}/svnauthz
|
2011-10-23 19:17:14 +00:00
|
|
|
%{_bindir}/svnauthz-validate
|
2015-08-18 20:04:51 +00:00
|
|
|
%{_bindir}/svnbench
|
2013-11-27 23:49:56 +00:00
|
|
|
%{_bindir}/svn-bench
|
2015-08-18 20:04:51 +00:00
|
|
|
%{_bindir}/svn-populate-node-origins-index
|
|
|
|
%{_bindir}/svnraisetreeconflict
|
2007-01-15 23:38:11 +00:00
|
|
|
|
|
|
|
%files server
|
|
|
|
%dir %{apache_sysconfdir}/conf.d
|
|
|
|
%config (noreplace) %{apache_sysconfdir}/conf.d/subversion.conf
|
|
|
|
%dir %{apache_libexecdir}
|
|
|
|
%{apache_libexecdir}/mod_dav_svn.*
|
|
|
|
%{apache_libexecdir}/mod_authz_svn.*
|
2012-02-14 01:06:19 +00:00
|
|
|
%{apache_libexecdir}/mod_dontdothat.*
|
2009-06-09 15:49:58 +00:00
|
|
|
|
2009-07-09 09:12:54 +00:00
|
|
|
%files -n libsvn_auth_gnome_keyring-1-0
|
2009-06-09 15:49:58 +00:00
|
|
|
%{_libdir}/libsvn_auth_gnome_keyring-1.so.0
|
|
|
|
%{_libdir}/libsvn_auth_gnome_keyring-1.so.0.*
|
|
|
|
|
2014-11-01 23:22:16 +00:00
|
|
|
%if %{with_kde}
|
2009-07-09 09:12:54 +00:00
|
|
|
%files -n libsvn_auth_kwallet-1-0
|
2009-06-09 15:49:58 +00:00
|
|
|
%{_libdir}/libsvn_auth_kwallet-1.so.0
|
|
|
|
%{_libdir}/libsvn_auth_kwallet-1.so.0.*
|
2014-11-01 23:22:16 +00:00
|
|
|
%endif
|
2007-11-23 13:13:53 +00:00
|
|
|
|
2012-03-10 01:32:18 +00:00
|
|
|
%files bash-completion
|
|
|
|
%config %{_sysconfdir}/bash_completion.d/%{name}
|
|
|
|
|
2007-02-25 22:44:39 +00:00
|
|
|
%changelog
|