python-nazca.spec
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 02 May 2018 18:25:46 +0200
changeset 523 cbd338590fa4
parent 516 3f5f1b9a2b95
child 528 328718ff629e
permissions -rw-r--r--
[pkg] standard python package

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

%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}/*