From 88ef3b8533c1cc5f87d4df9b489264728bc4bb9634c23b6a0a4e7c33598cb889 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 26 Apr 2012 10:42:19 +0000 Subject: [PATCH] Accepting request 115678 from home:TheBlackCat:branches:devel:languages:python Add python 3 package OBS-URL: https://build.opensuse.org/request/show/115678 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysvn?expand=0&rev=16 --- python-pysvn.changes | 5 +++ python3-pysvn.changes | 5 +++ python3-pysvn.spec | 87 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 python3-pysvn.changes create mode 100644 python3-pysvn.spec diff --git a/python-pysvn.changes b/python-pysvn.changes index 5bc12bf..d943b0f 100644 --- a/python-pysvn.changes +++ b/python-pysvn.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 26 09:01:12 UTC 2012 - toddrme2178@gmail.com + +- Add python 3 package + ------------------------------------------------------------------- Sun Mar 4 08:32:56 UTC 2012 - coolo@suse.com diff --git a/python3-pysvn.changes b/python3-pysvn.changes new file mode 100644 index 0000000..5d7e9f9 --- /dev/null +++ b/python3-pysvn.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Apr 26 09:01:12 UTC 2012 - toddrme2178@gmail.com + +- Add python 3 package + diff --git a/python3-pysvn.spec b/python3-pysvn.spec new file mode 100644 index 0000000..f46976b --- /dev/null +++ b/python3-pysvn.spec @@ -0,0 +1,87 @@ +# +# spec file for package python3-pysvn +# +# Copyright (c) 2012 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: python3-pysvn +Version: 1.7.6 +Release: 0 +Summary: Highlevel Subversion Python 3 Bindings +License: Apache-2.0 +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: libcom_err-devel +BuildRequires: libcom_err2 +BuildRequires: libexpat-devel +BuildRequires: neon-devel +BuildRequires: python3-devel +BuildRequires: python3-xml +BuildRequires: subversion-devel +BuildRequires: pkgconfig(apr-1) +Requires: neon +Requires: subversion +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python3_sitearch: %global python3_sitearch %(python3 -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 +python3 setup.py backport +python3 setup.py configure +# --norpath +make %{?_smp_mflags} + +%install +mkdir -p %{buildroot}/%{python3_sitearch}/pysvn +cp Source/pysvn/{__init__.py,_pysvn*.so} %{buildroot}/%{python3_sitearch}/pysvn +%py3_compile %{buildroot}/%{python3_sitearch}/pysvn +rm -f Docs/generate_cpp_docs_from_html_docs.py + +#%%check +#cd Tests +#make %{?_smp_mflags} + +%files +%defattr(-,root,root) +%doc LICENSE.txt Docs Examples +%{python3_sitearch}/* + +%changelog