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
|
|
|
#
|
2020-12-13 21:32:42 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2020-12-13 21:32:42 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-11-04 03:49:07 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
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
|
2020-12-13 21:32:42 +00:00
|
|
|
Version: 1.9.12
|
2012-02-01 10:30:55 +00:00
|
|
|
Release: 0
|
|
|
|
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
|
2020-12-13 21:32:42 +00:00
|
|
|
URL: https://pysvn.sourceforge.io/
|
|
|
|
Source0: https://sourceforge.net/projects/pysvn/files/pysvn/V1.9.12/pysvn-%{version}.tar.gz
|
2017-08-31 17:31:13 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2018-08-09 09:16:33 +00:00
|
|
|
BuildRequires: %{python_module pycxx-devel}
|
2017-08-31 17:31:13 +00:00
|
|
|
BuildRequires: %{python_module xml}
|
2020-12-13 21:32:42 +00:00
|
|
|
BuildRequires: fdupes
|
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
|
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}
|
2008-11-04 03:49:07 +00:00
|
|
|
|
|
|
|
%build
|
2018-08-09 09:16:33 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
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
|
2018-08-09 09:16:33 +00:00
|
|
|
$python setup.py configure \
|
|
|
|
--enable-debug --verbose --fixed-module-name --norpath \
|
|
|
|
--pycxx-dir=%{$python_sysconfig_path include}/ --pycxx-src-dir=%{_datadir}/python%{$python_bin_suffix}/CXX
|
|
|
|
sed -i -e 's@-Wall -fPIC -fexceptions -frtti@%{optflags} -fPIC -frtti@' Makefile
|
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
|
|
|
|
2020-12-13 21:32:42 +00:00
|
|
|
%fdupes %{buildroot}%{python_sitearch}/pysvn/__pycache__
|
|
|
|
|
2013-08-01 12:16:06 +00:00
|
|
|
%check
|
2020-12-13 21:32:42 +00:00
|
|
|
# Disabled test because there are errors. Bug report: https://sourceforge.net/p/pysvn/tickets/8/
|
|
|
|
# cd Tests
|
|
|
|
# %%python_expand PYTHONPATH=%%{buildroot}%%{$python_sitearch} PYTHON=$python make %%{?_smp_mflags} || :
|
2008-11-04 03:49:07 +00:00
|
|
|
|
2017-08-31 17:31:13 +00:00
|
|
|
%files %{python_files}
|
2018-08-09 09:16:33 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc Docs Examples
|
2020-12-13 21:32:42 +00:00
|
|
|
%{python_sitearch}/pysvn
|
2008-11-04 03:49:07 +00:00
|
|
|
|
|
|
|
%changelog
|