/[packages]/cauldron/python-tables/current/SPECS/python-tables.spec
ViewVC logotype

Contents of /cauldron/python-tables/current/SPECS/python-tables.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1329219 - (show annotations) (download)
Fri Nov 9 21:27:10 2018 UTC (5 years, 8 months ago) by joequant
File size: 5115 byte(s)
upgrade to hdf5 1.10

1 %define module tables
2
3 Summary: Hierarchical datasets in Python
4 Name: python-%{module}
5 Version: 3.4.4
6 Release: %mkrel 2
7 License: BSD
8 Group: Development/Python
9 Url: http://www.pytables.org
10 Source0: https://pypi.io/packages/source/t/%{module}/%{module}-%{version}.tar.gz
11 BuildRequires: hdf5-devel >= 1.10
12 BuildRequires: bzip2-devel
13 BuildRequires: liblzo-devel
14
15 %description
16 PyTables is a Python package for managing hierarchical datasets
17 designed to efficiently and easily cope with extremely large amounts
18 of data. It is built on top of the HDF5 library and the NumPy package
19 (numarray and Numeric are also supported). PyTables features an
20 object-oriented interface and performance-critical extensions coded in
21 C (generated using Pyrex) that make it a fast yet extremely
22 easy-to-use tool for interactively processing and searching through
23 very large amounts of data. PyTables also optimizes memory and disk
24 resources so that data occupies much less space than with other
25 solutions such as relational or object-oriented databases (especially
26 when compression is used).
27
28 %package doc
29 Group: Development/Python
30 Summary: Documentation for PyTables
31 BuildArch: noarch
32
33 %description doc
34 The %{name}-doc package contains the documentation related to
35 PyTables.
36
37 %package -n python2-%{module}
38 Summary: Hierarchical datasets in Python 2
39 Group: Development/Python
40 BuildRequires: python2-numpy-devel
41 BuildRequires: python2dist(numexpr) >= 1.4.1
42 BuildRequires: python2dist(setuptools)
43 BuildRequires: python2dist(six)
44 BuildRequires: python2dist(mock)
45 BuildRequires: pkgconfig(python2)
46 BuildRequires: python2dist(cython) >= 0.13
47 Requires: python2dist(numpy) >= 1.4.1
48 Requires: python2dist(numexpr) >= 1.4.1
49
50 Obsoletes: python-tables < 3.2.2-6
51 Provides: python-tables = %{version}-%{release}
52
53 %description -n python2-%{module}
54 PyTables is a Python 2 package for managing hierarchical datasets
55 designed to efficiently and easily cope with extremely large amounts
56 of data. It is built on top of the HDF5 library and the NumPy package
57 (numarray and Numeric are also supported). PyTables features an
58 object-oriented interface and performance-critical extensions coded in
59 C (generated using Pyrex) that make it a fast yet extremely
60 easy-to-use tool for interactively processing and searching through
61 very large amounts of data. PyTables also optimizes memory and disk
62 resources so that data occupies much less space than with other
63 solutions such as relational or object-oriented databases (especially
64 when compression is used).
65
66 %package -n python3-%{module}
67 Summary: Hierarchical datasets in Python 3
68 Group: Development/Python
69 Requires: python3-numpy
70 Requires: python3-numexpr
71 BuildRequires: python3-numpy-devel
72 BuildRequires: python3dist(numexpr)
73 BuildRequires: python3dist(setuptools)
74 BuildRequires: python3dist(six)
75 BuildRequires: python3dist(mock)
76 BuildRequires: pkgconfig(python3)
77 BuildRequires: python3dist(cython)
78
79 %description -n python3-%{module}
80 PyTables is a Python 3 package for managing hierarchical datasets
81 designed to efficiently and easily cope with extremely large amounts
82 of data. It is built on top of the HDF5 library and the NumPy package
83 (numarray and Numeric are also supported). PyTables features an
84 object-oriented interface and performance-critical extensions coded in
85 C (generated using Pyrex) that make it a fast yet extremely
86 easy-to-use tool for interactively processing and searching through
87 very large amounts of data. PyTables also optimizes memory and disk
88 resources so that data occupies much less space than with other
89 solutions such as relational or object-oriented databases (especially
90 when compression is used).
91
92
93 %prep
94 %setup -q -n %{module}-%{version}
95
96 cp -a . %{py3dir}
97 find %{py3dir}/utils -name 'pt*' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|'
98
99 %build
100 export LIBS="dl m"
101 %py2_build
102
103 pushd %{py3dir}
104 %py3_build
105 popd
106
107 %install
108 chmod -x examples/check_examples.sh
109 for i in utils/*; do sed -i 's|bin/env |bin/|' $i; done
110
111 pushd %{py3dir}
112 %py3_install
113 mv %{buildroot}/usr/bin/pt2to3 %{buildroot}/usr/bin/pt2to33
114 mv %{buildroot}/usr/bin/ptdump %{buildroot}/usr/bin/ptdump3
115 mv %{buildroot}/usr/bin/ptrepack %{buildroot}/usr/bin/ptrepack3
116 mv %{buildroot}/usr/bin/pttree %{buildroot}/usr/bin/pttree3
117 popd
118
119 %py2_install
120
121
122 %check
123 pushd %{py3dir}
124 libdir=`ls build/|grep lib`
125 export PYTHONPATH=`pwd`/build/$libdir
126 echo "import tables; tables.test()" > bench/check_all.py
127 %{__python3} bench/check_all.py
128 popd
129
130 libdir=`ls build/|grep lib`
131 export PYTHONPATH=`pwd`/build/$libdir
132 echo "import tables; tables.test()" > bench/check_all.py
133 %{__python2} bench/check_all.py
134
135
136 %files -n python2-%{module}
137 %doc README.rst LICENSES
138 %{_bindir}/pt2to3
139 %{_bindir}/ptdump
140 %{_bindir}/ptrepack
141 %{_bindir}/pttree
142 %{python2_sitearch}/%{module}
143 %{python2_sitearch}/%{module}-%{version}-py*.egg-info
144
145 %files doc
146 %doc examples/
147 %doc doc/source/
148
149 %files -n python3-%{module}
150 %doc README.rst LICENSES
151 %{_bindir}/pt2to33
152 %{_bindir}/ptdump3
153 %{_bindir}/ptrepack3
154 %{_bindir}/pttree3
155 %{python3_sitearch}/%{module}
156 %{python3_sitearch}/%{module}-%{version}-py*.egg-info
157

  ViewVC Help
Powered by ViewVC 1.1.30