2008-11-04 03:49:07 +00:00
|
|
|
#
|
2011-10-31 14:43:23 +00:00
|
|
|
# spec file for package python-pysvn
|
2008-11-04 03:49:07 +00:00
|
|
|
#
|
2017-08-31 17:31:13 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-11-04 03:49:07 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-08-31 17:31:13 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2008-11-04 03:49:07 +00:00
|
|
|
Name: python-pysvn
|
2017-08-31 17:31:13 +00:00
|
|
|
Version: 1.9.4
|
2012-02-01 10:30:55 +00:00
|
|
|
Release: 0
|
2017-09-07 17:18:00 +00:00
|
|
|
%define pcxxver 6.2.8
|
2012-02-01 10:30:55 +00:00
|
|
|
Summary: Highlevel Subversion Python Bindings
|
2012-04-30 12:27:43 +00:00
|
|
|
License: Apache-1.1
|
2008-11-04 03:49:07 +00:00
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Url: http://pysvn.tigris.org
|
2012-03-06 08:38:15 +00:00
|
|
|
Source0: http://pysvn.barrys-emacs.org/source_kits/pysvn-%{version}.tar.gz
|
2017-08-31 17:31:13 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module xml}
|
2012-02-01 10:30:55 +00:00
|
|
|
BuildRequires: gcc-c++
|
2013-08-01 12:16:06 +00:00
|
|
|
BuildRequires: libapr1-devel
|
2012-02-01 10:30:55 +00:00
|
|
|
BuildRequires: libcom_err-devel
|
|
|
|
BuildRequires: libcom_err2
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: neon-devel
|
2017-08-31 17:31:13 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2012-02-01 10:30:55 +00:00
|
|
|
BuildRequires: subversion-devel
|
|
|
|
Requires: neon
|
|
|
|
Requires: subversion
|
2008-11-04 03:49:07 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-08-31 17:31:13 +00:00
|
|
|
%python_subpackages
|
2008-11-04 03:49:07 +00:00
|
|
|
|
|
|
|
%description
|
2017-09-07 17:18:00 +00:00
|
|
|
pysvn is a set of highlevel Python bindings to Subversion. pysvn
|
|
|
|
enables tools to be written in Python that use Subversion.
|
2011-10-31 14:43:23 +00:00
|
|
|
|
|
|
|
Features:
|
2012-02-01 10:30:55 +00:00
|
|
|
* Supports all svn client features
|
|
|
|
* Supports svn transaction features required to write svn pre-commit
|
2008-11-04 03:49:07 +00:00
|
|
|
hooks
|
2012-02-01 10:30:55 +00:00
|
|
|
* Python like interface
|
2017-09-07 17:18:00 +00:00
|
|
|
* Documentation and examples provided
|
2012-02-01 10:30:55 +00:00
|
|
|
* No need to understand the Subversion C API
|
2008-11-04 03:49:07 +00:00
|
|
|
|
|
|
|
%prep
|
2012-02-01 10:30:55 +00:00
|
|
|
%setup -q -n pysvn-%{version}
|
2009-09-10 11:13:28 +00:00
|
|
|
# patch in rpm compiler flags
|
|
|
|
sed -i 's/CCFLAGS=-Wall/CCFLAGS=$(RPM_OPT_FLAGS) -Wall -Wno-deprecated/g' Source/setup_configure.py
|
2008-11-04 03:49:07 +00:00
|
|
|
|
|
|
|
%build
|
2017-08-31 17:31:13 +00:00
|
|
|
%{python_expand cp -r Source Source-%{$python_bin_suffix}
|
|
|
|
pushd Source-%{$python_bin_suffix}
|
|
|
|
$python setup.py backport
|
|
|
|
$python setup.py configure --enable-debug --norpath --pycxx-dir="../Import/pycxx-%{pcxxver}/"
|
2010-08-23 06:49:18 +00:00
|
|
|
make %{?_smp_mflags}
|
2017-08-31 17:31:13 +00:00
|
|
|
popd
|
|
|
|
}
|
2008-11-04 03:49:07 +00:00
|
|
|
|
|
|
|
%install
|
2017-08-31 17:31:13 +00:00
|
|
|
%{python_expand mkdir -p %{buildroot}/%{$python_sitearch}/pysvn
|
|
|
|
pushd Source-%{$python_bin_suffix}
|
|
|
|
cp pysvn/{__init__.py,_pysvn*.so} %{buildroot}/%{$python_sitearch}/pysvn
|
|
|
|
$python -m compileall -d %{$python_sitearch} %{buildroot}/%{$python_sitearch}/pysvn
|
|
|
|
$python -O -m compileall -d %{$python_sitearch} %{buildroot}/%{$python_sitearch}/pysvn
|
|
|
|
popd
|
|
|
|
}
|
2009-09-10 11:13:28 +00:00
|
|
|
rm -f Docs/generate_cpp_docs_from_html_docs.py
|
2008-11-04 03:49:07 +00:00
|
|
|
|
2013-08-01 12:16:06 +00:00
|
|
|
%check
|
|
|
|
cd Tests
|
2017-08-31 17:31:13 +00:00
|
|
|
%python_expand PYTHON=$python make %{?_smp_mflags} || true
|
2008-11-04 03:49:07 +00:00
|
|
|
|
2017-08-31 17:31:13 +00:00
|
|
|
%files %{python_files}
|
2008-11-04 03:49:07 +00:00
|
|
|
%defattr(-,root,root)
|
2012-02-01 10:30:55 +00:00
|
|
|
%doc LICENSE.txt Docs Examples
|
|
|
|
%{python_sitearch}/*
|
2008-11-04 03:49:07 +00:00
|
|
|
|
|
|
|
%changelog
|