From c953d89c95fd766c435aef9b0a0d0e12b2ee969f Mon Sep 17 00:00:00 2001 From: Caitlyn O'Hanna Date: Oct 12 2008 04:37:59 +0000 Subject: Had to fix module versioning in __init__. Re-enabled tests for < F10 --- diff --git a/pysvn-1.6.1-drop-version.patch b/pysvn-1.6.1-drop-version.patch index 79a1c17..1edb858 100644 --- a/pysvn-1.6.1-drop-version.patch +++ b/pysvn-1.6.1-drop-version.patch @@ -96,3 +96,16 @@ else: raise ImportError( 'Fix pysvn/__init__.py to support python %d.%d' % tuple(maj_min) ) +--- ./Source/create__init__.py.orig 2008-10-11 21:21:07.000000000 -0700 ++++ ./Source/create__init__.py 2008-10-11 21:23:13.000000000 -0700 +@@ -12,8 +12,8 @@ + block_end_index = pysvn__init__file_contents.index( '### IMPORT BLOCK END\n' ) + 1 + + pysvn__init__file_contents[ block_begin_index:block_end_index ] = [ +- ' import _pysvn_%d_%d\n' % (pymaj, pymin), +- ' _pysvn = _pysvn_%d_%d\n' % (pymaj, pymin), ++ ' #import _pysvn_%d_%d\n' % (pymaj, pymin), ++ ' #_pysvn = _pysvn_%d_%d\n' % (pymaj, pymin), + ] + + f = file( sys.argv[2], 'w' ) diff --git a/pysvn.spec b/pysvn.spec index 1ef0559..fe518ac 100644 --- a/pysvn.spec +++ b/pysvn.spec @@ -2,7 +2,7 @@ Name: pysvn Version: 1.6.1 -Release: 1%{dist} +Release: 2%{dist} Summary: Pythonic style bindings for Subversion Group: Development/Languages License: ASL 1.1 @@ -28,7 +28,7 @@ Pythonic style bindings for Subversion %patch0 %patch1 # Broken for F10, possibly because of subversion 1.5 -#%patch2 -p1 +%patch2 -p1 %build pushd Source @@ -43,9 +43,9 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py configure --enable-debug --verbose %{__install} -p -m 644 Source/pysvn/__init__.py %{buildroot}%{python_sitearch}/%{name} %{__install} -p -m 755 Source/pysvn/_pysvn.so %{buildroot}%{python_sitearch}/%{name} -#%check -#pushd Tests -#%{__make} %{?_smp_mflags} +%check +pushd Tests +%{__make} %{?_smp_mflags} %clean %{__rm} -rf %{buildroot} @@ -59,6 +59,10 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py configure --enable-debug --verbose %{python_sitearch}/%{name} %changelog +* Sat Oct 11 2008 Caitlyn O'Hanna - 1.6.1-2 +- Grrr, __init__.py still had some module versioning in it...killed it +- Renabled tests for versions < F10 + * Mon Oct 06 2008 Caitlyn O'Hanna - 1.6.1-1 - Update to 1.6.1, fix F10 FBFS - Disabled tests, might be because of subversion 1.5