forked from pool/python-pysvn
How about this: - update to 1.7.7 * no degestible changelog provided from upstream OBS-URL: https://build.opensuse.org/request/show/185428 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysvn?expand=0&rev=30
89 lines
2.9 KiB
RPMSpec
89 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-pysvn
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: python-pysvn
|
|
Version: 1.7.7
|
|
Release: 0
|
|
Summary: Highlevel Subversion Python Bindings
|
|
License: Apache-1.1
|
|
Group: Development/Libraries/Python
|
|
Url: http://pysvn.tigris.org
|
|
Source0: http://pysvn.barrys-emacs.org/source_kits/pysvn-%{version}.tar.gz
|
|
Patch0: bnc445431_pysvn_svnenv.cpp.diff
|
|
BuildRequires: gcc
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libapr1-devel
|
|
BuildRequires: libcom_err-devel
|
|
BuildRequires: libcom_err2
|
|
BuildRequires: libexpat-devel
|
|
BuildRequires: neon-devel
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-xml
|
|
BuildRequires: subversion-devel
|
|
Requires: neon
|
|
Requires: subversion
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
%endif
|
|
|
|
%description
|
|
pysvn is a highlevel and easy to use Python bindings to Subversion. The pysvn
|
|
project's goal is to enable Tools to be written in Python that use Subversion.
|
|
Windows, Mac OS X, Linux and other unix platforms are supported.
|
|
|
|
Features:
|
|
* Supports all svn client features
|
|
* Supports svn transaction features required to write svn pre-commit
|
|
hooks
|
|
* Easy to learn and use
|
|
* Python like interface
|
|
* Good Documentation and examples
|
|
* No need to understand the Subversion C API
|
|
|
|
%prep
|
|
%setup -q -n pysvn-%{version}
|
|
%patch0 -p0
|
|
# patch in rpm compiler flags
|
|
sed -i 's/CCFLAGS=-Wall/CCFLAGS=$(RPM_OPT_FLAGS) -Wall -Wno-deprecated/g' Source/setup_configure.py
|
|
|
|
%build
|
|
cd Source
|
|
python setup.py backport
|
|
python setup.py configure --enable-debug --norpath
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/%{python_sitearch}/pysvn
|
|
cp Source/pysvn/{__init__.py,_pysvn*.so} %{buildroot}/%{python_sitearch}/pysvn
|
|
%py_compile %{buildroot}/%{python_sitearch}/pysvn
|
|
rm -f Docs/generate_cpp_docs_from_html_docs.py
|
|
|
|
#some of these tests (test-01.unix) are way too fragile to operate properly
|
|
#over a certain amount of different svn versions, as the compare output strings
|
|
%check
|
|
cd Tests
|
|
make %{?_smp_mflags} || true
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc LICENSE.txt Docs Examples
|
|
%{python_sitearch}/*
|
|
|
|
%changelog
|