rpms/python-repoze-what/devel python-repoze-what-release.patch, NONE, 1.1 python-repoze-what.spec, 1.3, 1.4

Luke Macken lmacken at fedoraproject.org
Mon Aug 10 18:58:52 UTC 2009


Author: lmacken

Update of /cvs/pkgs/rpms/python-repoze-what/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21590

Modified Files:
	python-repoze-what.spec 
Added Files:
	python-repoze-what-release.patch 
Log Message:
Get the test suite working

python-repoze-what-release.patch:
 release.py |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

--- NEW FILE python-repoze-what-release.patch ---
--- repoze/what/release.py.orig	2009-08-10 10:36:03.000000000 -0400
+++ repoze/what/release.py	2009-08-10 10:36:40.000000000 -0400
@@ -24,10 +24,7 @@
 
 import os
 
-_here = os.path.abspath(os.path.dirname(__file__))
-_root = os.path.dirname(os.path.dirname(_here))
-
-version = open(os.path.join(_root, 'VERSION.txt')).readline().rstrip()
+version = '$VERSION' 
 
 # The major version: If version=='3.0.2rc4', the major version is int(3).
 major_version = int(version.split('.')[0])


Index: python-repoze-what.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-repoze-what/devel/python-repoze-what.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- python-repoze-what.spec	26 Jul 2009 20:59:48 -0000	1.3
+++ python-repoze-what.spec	10 Aug 2009 18:58:52 -0000	1.4
@@ -2,7 +2,7 @@
 
 Name:           python-repoze-what
 Version:        1.0.8
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Authorization for WSGI applications
 
 Group:          Development/Languages
@@ -10,6 +10,7 @@ License:        BSD
 URL:            http://pypi.python.org/pypi/repoze.what
 Source0:        http://pypi.python.org/packages/source/r/repoze.what/repoze.what-%{version}.tar.gz
 Patch0:         %{name}-setup.patch
+Patch1:         %{name}-release.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
@@ -56,6 +57,8 @@ This package contains documentation for 
 %prep
 %setup -q -n repoze.what-%{version}
 %patch0 -b .setup
+%patch1 -b .release
+%{__sed} -i -e 's|$VERSION|%{version}|' repoze/what/release.py
 
 
 %build
@@ -67,9 +70,8 @@ This package contains documentation for 
 rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 
-# Needs repoze.who-testutil
-#%check
-#PYTHONPATH=`pwd` nosetests
+%check
+PYTHONPATH=`pwd` nosetests
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -84,6 +86,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Aug 10 2009 Luke Macken <lmacken at redhat.com> - 1.0.8-4
+- Get the test suite working
+
 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.8-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list