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
|
|
|
#
|
2023-01-07 12:37:33 +00:00
|
|
|
# Copyright (c) 2023 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
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-12-14 21:39:06 +00:00
|
|
|
%define packagename pysvn
|
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
|
2023-01-07 12:37:33 +00:00
|
|
|
Version: 1.9.20
|
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/
|
2020-12-14 21:39:06 +00:00
|
|
|
Source0: https://sourceforge.net/projects/pysvn/files/pysvn/V%{version}/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}
|
2021-02-06 15:24:32 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
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
|
2020-12-14 21:39:06 +00:00
|
|
|
%setup -q -n %{packagename}-%{version}
|
|
|
|
|
2021-05-03 13:25:26 +00:00
|
|
|
%{python_expand # python_build and python_install not applicable: not the standard setuptools workflow
|
|
|
|
# copy pristine dirs to flavor specific directory (shuffled by python_expand)
|
|
|
|
mkdir -p build
|
|
|
|
cp -r Builder Docs Examples Kit Patches Source Tests build/
|
|
|
|
}
|
|
|
|
|
|
|
|
rm -r Builder Docs Examples Kit Patches Source Tests
|
2020-12-14 21:39:06 +00:00
|
|
|
# Remove bundled libs
|
|
|
|
rm -rf Import
|
2008-11-04 03:49:07 +00:00
|
|
|
|
|
|
|
%build
|
2018-08-09 09:16:33 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2021-05-03 13:25:26 +00:00
|
|
|
%{python_expand #
|
|
|
|
pushd build/Source
|
|
|
|
$python setup.py configure --enable-debug --verbose --fixed-module-name --norpath
|
2020-12-14 21:39:06 +00:00
|
|
|
|
2018-08-09 09:16:33 +00:00
|
|
|
sed -i -e 's@-Wall -fPIC -fexceptions -frtti@%{optflags} -fPIC -frtti@' Makefile
|
2021-02-06 15:24:32 +00:00
|
|
|
%make_build
|
2021-05-03 13:25:26 +00:00
|
|
|
popd
|
|
|
|
}
|
2008-11-04 03:49:07 +00:00
|
|
|
|
|
|
|
%install
|
2021-05-03 13:25:26 +00:00
|
|
|
%{python_expand #
|
|
|
|
install -d -m 755 %{buildroot}%{$python_sitearch}/%{packagename}
|
|
|
|
install -p -m 644 build/Source/pysvn/__init__.py %{buildroot}%{$python_sitearch}/%{packagename}
|
|
|
|
install -p -m 755 build/Source/pysvn/_pysvn.so %{buildroot}%{$python_sitearch}/%{packagename}
|
2021-02-24 09:55:53 +00:00
|
|
|
|
2021-05-03 13:25:26 +00:00
|
|
|
mkdir -p pkgdoc-%{$python_bin_suffix}
|
|
|
|
cp -r build/Docs build/Examples pkgdoc-%{$python_bin_suffix}
|
2008-11-04 03:49:07 +00:00
|
|
|
|
2021-05-03 13:25:26 +00:00
|
|
|
%fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
}
|
2020-12-13 21:32:42 +00:00
|
|
|
|
2013-08-01 12:16:06 +00:00
|
|
|
%check
|
2021-05-03 13:25:26 +00:00
|
|
|
%{python_expand #
|
|
|
|
pushd build/Tests
|
2020-12-14 21:39:06 +00:00
|
|
|
# the tests expect a valid answer from locale.getdefaultlocale()
|
|
|
|
# C.UTF-8 does not work. Use en_US.utf-8.
|
|
|
|
# The test have not been test in parallel, use one core for now.
|
|
|
|
export LC_ALL=en_US.UTF-8
|
2021-05-03 13:25:26 +00:00
|
|
|
PYTHONPATH=%{buildroot}%{$python_sitearch} make -j1
|
2020-12-14 21:39:06 +00:00
|
|
|
popd
|
2021-05-03 13:25:26 +00:00
|
|
|
}
|
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
|
2021-05-03 13:25:26 +00:00
|
|
|
%doc pkgdoc-%{python_bin_suffix}/Docs pkgdoc-%{python_bin_suffix}/Examples
|
2021-02-24 09:55:53 +00:00
|
|
|
%{python_sitearch}/%{packagename}
|
2008-11-04 03:49:07 +00:00
|
|
|
|
|
|
|
%changelog
|