[HippoDraw] fix build with numpy
Tom Callaway
spot at fedoraproject.org
Fri Mar 23 16:04:29 UTC 2012
commit ae40f773dd6ce60f56cd8e412f3107a7f6de01a1
Author: Tom Callaway <spot at fedoraproject.org>
Date: Fri Mar 23 12:04:26 2012 -0400
fix build with numpy
HippoDraw-1.21.3-numpy.patch | 14 ++++++++++++++
HippoDraw.spec | 13 +++++++++----
2 files changed, 23 insertions(+), 4 deletions(-)
---
diff --git a/HippoDraw-1.21.3-numpy.patch b/HippoDraw-1.21.3-numpy.patch
new file mode 100644
index 0000000..1ef3373
--- /dev/null
+++ b/HippoDraw-1.21.3-numpy.patch
@@ -0,0 +1,14 @@
+diff -up HippoDraw-1.21.3/python/PyDataSource.cxx.numpy HippoDraw-1.21.3/python/PyDataSource.cxx
+--- HippoDraw-1.21.3/python/PyDataSource.cxx.numpy 2012-03-23 10:53:55.844565155 -0400
++++ HippoDraw-1.21.3/python/PyDataSource.cxx 2012-03-23 10:54:15.674380505 -0400
+@@ -37,6 +37,10 @@ $Id: PyDataSource.cxx,v 1.65 2007/08/24
+ #include "numarray/num_util.h"
+ #endif
+
++#ifdef HAVE_NUMPY
++#include "numpy/oldnumeric.h"
++#endif
++
+ #ifdef HAVE_CFITSIO
+ #include "fits/FitsNTuple.h"
+ #endif
diff --git a/HippoDraw.spec b/HippoDraw.spec
index a3e6a11..51509ef 100644
--- a/HippoDraw.spec
+++ b/HippoDraw.spec
@@ -1,6 +1,6 @@
Name: HippoDraw
Version: 1.21.3
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Interactive and Python scriptable data analysis application
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")}
@@ -15,6 +15,7 @@ Source0: ftp://ftp.slac.stanford.edu/users/pfkeb/hippodraw/%{name}-%{version}.ta
Patch1: HippoDraw-1.21.1-gcc43.patch
Patch2: HippoDraw-1.21.1-includes.patch
Patch3: HippoDraw-gcc45.patch
+Patch4: HippoDraw-1.21.3-numpy.patch
BuildRequires: cfitsio-devel qt3-devel desktop-file-utils doxygen graphviz
BuildRequires: graphviz-gd
@@ -30,7 +31,7 @@ Python extension module.
%package python
Summary: %{name} Python module
Group: Development/Languages
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: numpy
%description python
@@ -39,7 +40,7 @@ Provides Python module to use %{name} from Python scripts.
%package devel
Summary: Library and header files for %{name} library
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: qt3-devel boost-devel cfitsio-devel numpy
%description devel
@@ -61,12 +62,13 @@ class library. User documentation is part of the main package.
%patch1 -p1 -b .gcc43
%patch2 -p1 -b .includes
%patch3 -p1 -b .gcc45
+%patch4 -p1 -b .numpy
%build
# Exclude or avoid packages that might be installed in /usr/local
# Exclude wcslib that might be installed from rpm which is older version.
%{configure} --without-wcslib-lib --without-minuit2-lib --without-root-lib\
- --disable-rpath --with-boost-root=%{_prefix} --with-wcslib-include=no
+ --disable-rpath --with-boost-root=%{_prefix} --with-wcslib-include=no --enable-numpybuild
make %{?_smp_mflags}
make docs
@@ -135,6 +137,9 @@ touch --no-create %{_datadir}/icons/hicolor || :
%{_datadir}/%{name}/examples
%changelog
+* Fri Mar 23 2012 Tom Callaway <spot at fedoraproject.org> - 1.21.3-4
+- fix build against numpy
+
* Fri Feb 10 2012 Peter Robinson <pbrobinson at fedoraproject.org> - 1.21.3-3
- Fix sub package deps
More information about the scm-commits
mailing list