File hcluster.spec of Package python-hcluster

%define modname hcluster
Name:           python-hcluster
URL:            http://code.google.com/p/scipy-cluster/
Summary:        An extension to Scipy for generating, visualizing, and analyzing hierarchical clusters
Version:        0.1.9
Release:        1
License:        New BSD License
Group:          Development/Libraries/Python
Source:         %{modname}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-root
%if %{defined fedora_version} || %{defined rhel_version} || %{defined centos_version}
BuildRequires:  numpy
%if %{defined fedora_version}
BuildRequires:  atlas lapack
%endif
%else
%{py_requires}
BuildRequires:  python-numpy-devel
%endif
BuildRequires:  python-devel
#Requires:       python-matplotlib

%description

This library provides Python functions for agglomerative clustering. Its
features include: 1) generating hierarchical clusters from distance matrices,
2) computing distance matrices from observation vectors, 3) computing statistics
on clusters 4) cutting linkages to generate flat clusters and 5) visualizing
clusters with dendrograms.
The interface is very similar to MATLAB's Statistics Toolbox API to make code
easier to port from MATLAB to Python/Numpy. The core implementation of this
library is in C for efficiency. 

%prep
%setup -q -n %{modname}-%{version}
#%patch -p1

%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

%clean
rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(0644,root,root,0755)

%if 0%{?suse_version} >= 1100
%dir
%{py_sitedir}/hcluster
%endif

%changelog

* Fri Oct 17 2008 - Michael Hanke <michael.hanke@gmail.com> - 0.1.9-1
- Initial release
openSUSE Build Service is sponsored by