Blob Blame History Raw
%filter_provides_in %{python_sitearch}/.*\.so$

%global module	tables	

Summary:	Hierarchical datasets in Python
Name:		python-%{module}
Version:	2.3.1
Release:	3%{?dist}

License:	BSD
Group:		Development/Languages
Requires:	numpy >= 1.4.1
Requires:	python-numexpr >= 1.4.1

BuildRequires:	hdf5-devel >= 1.6.10 bzip2-devel lzo-devel
BuildRequires:	Cython >= 0.13 numpy >= 1.4.1 python-numexpr >= 1.4.1
BuildRequires:	python2-devel

PyTables is a package for managing hierarchical datasets and designed 
to efficiently and easily cope with extremely large amounts of data.

%package	doc
Group:		Development/Languages
Summary:	Documentation for PyTables
BuildArch:	noarch

%description doc
The %{name}-doc package contains the documentation related to 

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

rm tables/misc/

python build

libdir=`ls build/|grep lib`
export PYTHONPATH=`pwd`/build/$libdir
echo "import tables; tables.test()" > bench/
python bench/

rm -rf %{buildroot}
chmod -x examples/
for i in utils/*; do sed -i 's|bin/env |bin/|' $i; done

python install -O1 --skip-build --root %{buildroot}

%doc *.txt LICENSES

%files doc
%doc doc/*.pdf
%doc examples/

* Mon Nov 14 2011 Thibault North <> - 2.3.1-3
- Remove which was deprecated and under AFL license

* Thu Nov 07 2011 Thibault North <> - 2.3.1-2
- Fixes and subpackage for the docs

* Mon Nov 07 2011 Thibault North <> - 2.3.1-1
- Fixes and update to 2.3.1