author Adrien Di Mascio <>
Mon, 24 Nov 2014 10:06:26 +0100
changeset 489 010d03707a5f
parent 481 92422ce60b21
child 492 fdd8990beb40
permissions -rw-r--r--
[dataio] provide compatibility with CW 3.19 (closes #279602) ``config.sources()`` doesn't exist anymore in CW 3.19, we should use the ``config.default_admin_config`` dictionary instead.

# for el5, force use of python2.6
%if 0%{?el5}
%define python python26
%define __python /usr/bin/python2.6
%define python python
%define __python /usr/bin/python
%{!?_python_sitelib: %define _python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           %{python}-nazca
Version:        0.7.0
Release:        logilab.1%{?dist}
Summary:        Python library for data alignment

Group:          Development/Libraries
License:        LGPL
Source0:        nazca-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

BuildRequires:  %{python}
Requires:       %{python}
Requires:       scipy
Requires:       %{python}-sklearn

Python library for data alignment

%setup -q -n nazca-%{version}

%{__python} build
%if 0%{?el5}
# change the python version in shebangs
find . -name '*.py' -type f -print0 |  xargs -0 sed -i '1,3s;^#!.*python.*$;#! /usr/bin/python2.6;'

NO_SETUPTOOLS=1 %{__python} install -O1 --skip-build --root $RPM_BUILD_ROOT