[numpy] add macro for shipping a release candidate (relc)

tomspur tomspur at fedoraproject.org
Tue Oct 26 21:51:24 UTC 2010


commit 63e05e4993bdbc19d41c6714332093fb61dd8fa2
Author: Thomas Spura <tomspur at fedoraproject.org>
Date:   Tue Oct 26 15:27:14 2010 +0200

    add macro for shipping a release candidate (relc)

 numpy.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/numpy.spec b/numpy.spec
index b5753b5..41a9a20 100644
--- a/numpy.spec
+++ b/numpy.spec
@@ -4,6 +4,9 @@
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 %endif
 
+#uncomment next line for a release candidate or a beta
+#global relc rc1
+
 Name:           numpy
 Version:        1.4.1
 Release:        6%{?dist}
@@ -13,7 +16,7 @@ Summary:        A fast multidimensional array facility for Python
 Group:          Development/Languages
 License:        BSD
 URL:            http://numeric.scipy.org/
-Source0:        http://downloads.sourceforge.net/numpy/%{name}-%{version}.tar.gz
+Source0:        http://downloads.sourceforge.net/numpy/%{name}-%{version}%{?relc}.tar.gz
 Patch0:         numpy-1.0.1-f2py.patch
 Patch1:         numpy_doublefree.patch
 
@@ -86,7 +89,7 @@ This package includes a version of f2py that works properly with NumPy.
 %endif # with_python3
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q -n %{name}-%{version}%{?relc}
 %patch0 -p1 -b .f2py
 %patch1 -p0 
 %patch2 -p1 -b .remove-PyOS_ascii_strtod


More information about the scm-commits mailing list