From 0c9716b73c5e94690236e6d1beecce120c0a1ad6 Mon Sep 17 00:00:00 2001 From: Thibault North Date: Nov 15 2011 14:36:59 +0000 Subject: Initial import. --- diff --git a/.gitignore b/.gitignore index e69de29..c2140c2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/tables-2.3.1.tar.gz diff --git a/python-tables.spec b/python-tables.spec new file mode 100644 index 0000000..4f0ca75 --- /dev/null +++ b/python-tables.spec @@ -0,0 +1,81 @@ +%{?filter_setup: +%filter_provides_in %{python_sitearch}/.*\.so$ +%filter_setup} + +%global module tables + +Summary: Hierarchical datasets in Python +Name: python-%{module} +Version: 2.3.1 +Release: 3%{?dist} +Source0: http://sourceforge.net/projects/pytables/files/pytables/%{version}/%{module}-%{version}.tar.gz + +License: BSD +Group: Development/Languages +URL: http://www.pytables.org +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 + + +%description +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 +PyTables. + +%prep +%setup -q -n %{module}-%{version} + +rm LICENSES/LRUCACHE.txt +rm tables/misc/lrucache.py + +%build +python setup.py build + +%check +libdir=`ls build/|grep lib` +export PYTHONPATH=`pwd`/build/$libdir +echo "import tables; tables.test()" > bench/check_all.py +python bench/check_all.py + +%install +rm -rf %{buildroot} +chmod -x examples/check_examples.sh +for i in utils/*; do sed -i 's|bin/env |bin/|' $i; done + +python setup.py install -O1 --skip-build --root %{buildroot} + +%files +%doc *.txt LICENSES +%{_bindir}/nctoh5 +%{_bindir}/ptdump +%{_bindir}/ptrepack +%{python_sitearch}/%{module} +%{python_sitearch}/%{module}-%{version}-py*.egg-info + +%files doc +%doc doc/*.pdf +%doc examples/ + +%changelog +* Mon Nov 14 2011 Thibault North - 2.3.1-3 +- Remove lrucache.py 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 + + diff --git a/sources b/sources index e69de29..ef3fc20 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +97cf501c185226f5424e31cd74c1a001 tables-2.3.1.tar.gz