[flann/el5] Compensate for the different congfigure_file destination in rhel5
rmattes
rmattes at fedoraproject.org
Tue Dec 20 02:08:25 UTC 2011
commit 4cf42a62574ad5e1a04c73db3f7527c2dfae43e2
Author: Rich Mattes <richmattes at gmail.com>
Date: Mon Dec 19 21:08:22 2011 -0500
Compensate for the different congfigure_file destination in rhel5
flann.spec | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/flann.spec b/flann.spec
index f378898..926f0fb 100644
--- a/flann.spec
+++ b/flann.spec
@@ -87,11 +87,13 @@ make install DESTDIR=%{buildroot} -C %{_target_platform}
rm -rf %{buildroot}%{_datadir}/%{name}/python
# install the python bindings
+%if 0%{?rhel} >= 6 || ! 0%{?rhel}
cp %{_target_platform}/src/python/setup.py src/python
pushd src/python
-%if 0%{?rhel} >= 6 || ! 0%{?rhel}
python setup.py install --prefix=/usr --root=%{buildroot} --install-lib=%{python_sitearch}
%else
+cp %{_target_platform}/setup.py src/python
+pushd src/python
python2.6 setup.py install --prefix=/usr --root=%{buildroot} --install-lib=%{python_sitearch}
%endif
popd
More information about the scm-commits
mailing list