h5py/h5py.spec

220 lines
6.8 KiB
RPMSpec
Raw Normal View History

2012-12-06 18:29:13 +00:00
%global with_python3 1
2011-07-10 16:30:08 +00:00
%{?filter_provides_in: %filter_provides_in .*/h5py/.*\.so}
%{?filter_setup}
Summary: A Python interface to the HDF5 library
Name: h5py
2015-04-14 02:10:26 +00:00
Version: 2.5.0
Release: 7%{?dist}
2011-07-10 16:30:08 +00:00
Group: Applications/Engineering
License: BSD
2014-04-23 03:25:02 +00:00
URL: http://www.h5py.org/
Source0: https://pypi.python.org/packages/source/h/h5py/h5py-%{version}.tar.gz
2011-07-10 16:30:08 +00:00
# patch to use a system liblzf rather than bundled liblzf
2014-04-23 03:25:02 +00:00
Patch0: h5py-system-lzf.patch
2012-12-06 18:29:13 +00:00
BuildRequires: liblzf-devel
BuildRequires: hdf5-devel >= 1.8.3
2012-01-24 10:41:07 +00:00
BuildRequires: python-devel >= 2.6
BuildRequires: python-pkgconfig
2015-05-18 18:16:12 +00:00
BuildRequires: python-six
2011-07-10 16:30:08 +00:00
BuildRequires: python-sphinx
2015-04-14 02:10:26 +00:00
BuildRequires: numpy >= 1.6.1
BuildRequires: Cython
2012-12-06 18:29:13 +00:00
%if 0%{?with_python3}
BuildRequires: python-tools
BuildRequires: python3-devel >= 3.2
BuildRequires: python3-pkgconfig
2015-05-18 18:16:12 +00:00
BuildRequires: python3-six
2012-12-06 18:29:13 +00:00
BuildRequires: python3-sphinx
2015-04-14 02:10:26 +00:00
BuildRequires: python3-numpy >= 1.6.1
BuildRequires: python3-Cython
2012-12-06 18:29:13 +00:00
%endif
2014-01-06 03:11:39 +00:00
Requires: hdf5 = %{_hdf5_version}
2015-04-14 02:10:26 +00:00
Requires: numpy >= 1.6.1
2015-05-18 18:16:12 +00:00
Requires: python-six
2011-07-10 16:30:08 +00:00
%description
The h5py package provides both a high- and low-level interface to the
HDF5 library from Python. The low-level interface is intended to be a
complete wrapping of the HDF5 API, while the high-level component
supports access to HDF5 files, data sets and groups using established
Python and NumPy concepts.
A strong emphasis on automatic conversion between Python (Numpy)
data types and data structures and their HDF5 equivalents vastly
simplifies the process of reading and writing data from Python.
2012-12-06 18:29:13 +00:00
%if 0%{?with_python3}
%package -n python3-h5py
Summary: A Python 3 interface to the HDF5 library
Group: Applications/Engineering
2015-04-14 02:10:26 +00:00
Requires: python3-numpy >= 1.6.1
2015-05-18 18:16:12 +00:00
Requires: python3-six
2012-12-06 18:29:13 +00:00
%description -n python3-h5py
The h5py package provides both a high- and low-level interface to the
HDF5 library from Python. The low-level interface is intended to be a
complete wrapping of the HDF5 API, while the high-level component
supports access to HDF5 files, data sets and groups using established
Python and NumPy concepts.
A strong emphasis on automatic conversion between Python (Numpy)
data types and data structures and their HDF5 equivalents vastly
simplifies the process of reading and writing data from Python.
This is the Python 3 version of h5py.
%endif
2011-07-10 16:30:08 +00:00
%prep
%setup -q
# use system libzlf and remove private copy
2014-04-23 03:25:02 +00:00
%patch0 -p1 -b .lzf
2011-07-10 16:30:08 +00:00
rm -rf lzf/lzf
%{__python} api_gen.py
2012-12-06 18:29:13 +00:00
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
%endif
2011-07-10 16:30:08 +00:00
%build
2014-04-23 03:25:02 +00:00
export CFLAGS="%{optflags} -fopenmp"
2011-07-10 16:30:08 +00:00
%{__python} setup.py build
2012-12-06 18:29:13 +00:00
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py build
popd
%endif
2011-07-10 16:30:08 +00:00
%install
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
chmod 0755 %{buildroot}%{python_sitearch}/%{name}/*.so
2012-12-06 18:29:13 +00:00
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
chmod 0755 %{buildroot}%{python3_sitearch}/%{name}/*.so
%endif
2011-07-10 16:30:08 +00:00
%check
%{__python} setup.py test || :
2012-12-06 18:29:13 +00:00
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py test || :
popd
2012-12-06 18:29:13 +00:00
%endif
2011-07-10 16:30:08 +00:00
%files
2013-09-26 18:26:47 +00:00
%doc licenses/*.txt ANN.rst README.rst examples
2011-07-10 16:30:08 +00:00
%{python_sitearch}/%{name}/
2012-01-24 10:41:07 +00:00
%{python_sitearch}/%{name}-%{version}-*.egg-info
2011-07-10 16:30:08 +00:00
2012-12-06 18:29:13 +00:00
%if 0%{?with_python3}
%files -n python3-h5py
2013-09-26 18:26:47 +00:00
%doc licenses/*.txt ANN.rst README.rst
2012-12-06 18:29:13 +00:00
%{python3_sitearch}/%{name}/
%{python3_sitearch}/%{name}-%{version}-*.egg-info
%endif
2011-07-10 16:30:08 +00:00
%changelog
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2016-01-21 20:40:14 +00:00
* Thu Jan 21 2016 Orion Poplawski <orion@cora.nwra.com> - 2.5.0-6
- Rebuild for hdf5 1.8.16
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-5
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-05-18 18:16:12 +00:00
* Mon May 18 2015 Terje Rosten <terje.rosten@ntnu.no> - 2.5.0-3
- Add six and pkgconfig dep (thanks Orion!)
2015-05-18 18:16:12 +00:00
2015-05-17 20:58:25 +00:00
* Sun May 17 2015 Orion Poplawski <orion@cora.nwra.com> - 2.5.0-2
- Rebuild for hdf5 1.8.15
2015-04-14 02:10:26 +00:00
* Mon Apr 13 2015 Orion Poplawski <orion@cora.nwra.com> - 2.5.0-1
- Update to 2.5.0
2015-01-07 18:56:20 +00:00
* Wed Jan 7 2015 Orion Poplawski <orion@cora.nwra.com> - 2.4.0-1
- Update to 2.4.0
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-06-25 21:21:23 +00:00
* Wed Jun 25 2014 Orion Poplawski <orion@cora.nwra.com> - 2.3.1-1
- Update to 2.3.1
2014-06-10 02:38:28 +00:00
* Tue Jun 10 2014 Orion Poplawski <orion@cora.nwra.com> - 2.3.0-4
- Rebuild for hdf 1.8.13
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-09 20:09:34 +00:00
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 2.3.0-2
- Rebuild for Python 3.4
2014-04-23 03:25:02 +00:00
* Tue Apr 22 2014 Orion Poplawski <orion@cora.nwra.com> - 2.3.0-1
- Update to 2.3.0
2014-01-06 02:54:58 +00:00
* Sun Jan 5 2014 Orion Poplawski <orion@cora.nwra.com> - 2.2.1-2
- Rebuild for hdf5 1.8.12
2014-01-06 03:11:39 +00:00
- Add requires for hdf5 version
2014-01-06 02:54:58 +00:00
2013-12-20 04:52:46 +00:00
* Thu Dec 19 2013 Orion Poplawski <orion@cora.nwra.com> - 2.2.1-1
- 2.2.1
2013-09-26 18:26:47 +00:00
* Thu Sep 26 2013 Terje Rosten <terje.rosten@ntnu.no> - 2.2.0-1
- 2.2.0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Mon Jun 10 2013 Terje Rosten <terje.rosten@ntnu.no> - 2.1.3-1
- 2.1.3
- add Python 3 import patches (#962250)
2013-05-16 18:17:17 +00:00
* Thu May 16 2013 Orion Poplawski <orion@cora.nwra.com> - 2.1.0-3
- rebuild for hdf5 1.8.11
2013-05-16 18:17:17 +00:00
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
- rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2012-12-06 18:29:13 +00:00
* Thu Dec 06 2012 Terje Rosten <terje.rosten@ntnu.no> - 2.1.0-1
- 2.1.0
- add Python 3 subpackage
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-2
2012-12-06 18:29:13 +00:00
- rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-01-24 10:41:07 +00:00
* Tue Jan 24 2012 Terje Rosten <terje.rosten@ntnu.no> - 2.0.1-1
- 2.0.1
- docs is removed
- rebase patch
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-5
2012-12-06 18:29:13 +00:00
- rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-07-10 16:30:08 +00:00
* Mon May 23 2011 Terje Rosten <terje.rosten@ntnu.no> - 1.3.1-4
- add patch from Steve Traylen (thanks!) to use system liblzf
* Thu Jan 13 2011 Terje Rosten <terje.rosten@ntnu.no> - 1.3.1-3
- fix buildroot
- add filter
- don't remove egg-info files
- remove explicit hdf5 req
* Sun Jan 2 2011 Terje Rosten <terje.rosten@ntnu.no> - 1.3.1-2
- build and ship docs as html
* Mon Dec 27 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.3.1-1
- 1.3.1
- license is BSD only
- run tests
- new url
2013-12-20 04:52:46 +00:00
* Sat Jul 4 2009 Joseph Smidt <josephsmidt@gmail.com> - 1.2.0-1
2011-07-10 16:30:08 +00:00
- initial RPM release