rpms/python-repoze-what/F-10 python-repoze-what-release.patch, NONE, 1.1 python-repoze-what.spec, 1.2, 1.3

Luke Macken lmacken at fedoraproject.org
Mon Aug 10 19:09:43 UTC 2009


Author: lmacken

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

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

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/F-10/python-repoze-what.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- python-repoze-what.spec	8 Jul 2009 02:33:09 -0000	1.2
+++ python-repoze-what.spec	10 Aug 2009 19:09:42 -0000	1.3
@@ -2,7 +2,7 @@
 
 Name:           python-repoze-what
 Version:        1.0.8
-Release:        2%{?dist}
+Release:        3%{?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,7 +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
 %{__python} setup.py build
@@ -67,16 +69,15 @@ 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
 
 %files
 %defattr(-,root,root,-)
-%doc README.txt
+%doc README.txt VERSION.txt
 %{python_sitelib}/
 
 %files docs
@@ -84,6 +85,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Aug 10 2009 Luke Macken <lmacken at redhat.com> - 1.0.8-3
+- Get the test suite working
+
 * Mon Jun 01 2009 Luke Macken <lmacken at redhat.com> - 1.0.8-2
 - Fix the dependency in the docs subpackage
 




More information about the fedora-extras-commits mailing list