python-nazca.spec
author Simon Chabot <simon.chabot@logilab.fr>
Thu, 21 Mar 2019 16:45:25 +0100
changeset 546 cfa85506a071
parent 544 9c919d23bcd2
permissions -rw-r--r--
[aligner] Use the processings' weight to compute the distance matrix All the processing objects have a `weight` attribute so they can be mixed each other with their own weighting. Let's use it ! This attribute was unsed until now. Differential Revision: https://phab.logilab.fr/D2066

%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.9.1
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
Requires:       %{python}-dateutil
Requires:       %{python}-lxml
Requires:       %{python}-six

%description
Python library for data alignment

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

%install
%{__python} setup.py --quiet install --no-compile --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%{_python_sitelib}/*