netcdf4-python/netcdf4-python.spec

378 lines
13 KiB
RPMSpec
Raw Normal View History

2012-09-12 19:46:52 +00:00
Name: netcdf4-python
2022-01-20 05:27:05 +00:00
Version: 1.5.8
Release: 1%{?dist}
2012-09-12 19:46:52 +00:00
Summary: Python/numpy interface to netCDF
License: MIT
URL: https://github.com/Unidata/netcdf4-python
2019-04-03 01:38:49 +00:00
Source0: https://github.com/Unidata/netcdf4-python/archive/v%{version}rel/%{name}-%{version}.tar.gz
2012-09-12 19:46:52 +00:00
# No rpath for library
2012-09-12 21:49:09 +00:00
# http://code.google.com/p/netcdf4-python/issues/detail?id=138
2012-09-12 19:46:52 +00:00
Patch0: netcdf4-python-norpath.patch
2019-09-12 02:38:23 +00:00
%if ! ( 0%{?fedora} >= 30 || 0%{?rhel} >= 8 )
2012-09-12 19:46:52 +00:00
BuildRequires: python2-devel
2017-06-20 20:06:32 +00:00
BuildRequires: python2-setuptools >= 18.0
# Added in 1.4.0
#BuildRequires: python2-cftime
BuildRequires: python2-Cython
BuildRequires: python2-dateutil
# EL6 has python 2.6 and needs ordereddict
%if 0%{?rhel} && 0%{?rhel} <= 6
BuildRequires: python-ordereddict
%endif
BuildRequires: python2-numpy
%endif
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools >= 18
2019-03-09 21:24:13 +00:00
BuildRequires: python%{python3_pkgversion}-cftime
BuildRequires: python%{python3_pkgversion}-Cython
BuildRequires: python%{python3_pkgversion}-dateutil
BuildRequires: python%{python3_pkgversion}-numpy
2012-09-12 19:46:52 +00:00
BuildRequires: netcdf-devel
# python3 is default in fedora, but not EPEL
2019-09-12 02:38:23 +00:00
%if 0%{?fedora} || 0%{?rhel} >= 8
Requires: python%{python3_pkgversion}-netcdf4 = %{version}-%{release}
%else
Requires: python2-netcdf4 = %{version}-%{release}
%endif
%description
netCDF version 4 has many features not found in earlier versions of the
library and is implemented on top of HDF5. This module can read and write
files in both the new netCDF 4 and the old netCDF 3 format, and can create
files that are readable by HDF5 clients. The API modeled after
Scientific.IO.NetCDF, and should be familiar to users of that module.
Most new features of netCDF 4 are implemented, such as multiple unlimited
dimensions, groups and zlib data compression. All the new numeric data types
(such as 64 bit and unsigned integer types) are implemented. Compound and
variable length (vlen) data types are supported, but the enum and opaque data
types are not. Mixtures of compound and vlen data types (compound types
containing vlens, and vlens containing compound types) are not supported.
2012-09-12 19:46:52 +00:00
%package -n python2-netcdf4
Summary: Python/numpy interface to netCDF
# EL6 has python 2.6 and needs ordereddict
%if 0%{?rhel} && 0%{?rhel} <= 6
Requires: python-ordereddict
%endif
# Added in 1.4.0
#Requires: python2-cftime
Requires: python2-Cython
Requires: python2-numpy
2017-03-07 15:55:18 +00:00
%{?python_provide:%python_provide python2-netcdf4}
Provides: netcdf4-python2 = %{version}-%{release}
2012-09-12 19:46:52 +00:00
%description -n python2-netcdf4
2012-09-12 19:46:52 +00:00
netCDF version 4 has many features not found in earlier versions of the
library and is implemented on top of HDF5. This module can read and write
files in both the new netCDF 4 and the old netCDF 3 format, and can create
files that are readable by HDF5 clients. The API modeled after
Scientific.IO.NetCDF, and should be familiar to users of that module.
Most new features of netCDF 4 are implemented, such as multiple unlimited
dimensions, groups and zlib data compression. All the new numeric data types
(such as 64 bit and unsigned integer types) are implemented. Compound and
variable length (vlen) data types are supported, but the enum and opaque data
types are not. Mixtures of compound and vlen data types (compound types
containing vlens, and vlens containing compound types) are not supported.
%package -n python%{python3_pkgversion}-netcdf4
2012-09-12 19:46:52 +00:00
Summary: Python/numpy interface to netCDF
2019-03-09 21:24:13 +00:00
Requires: python%{python3_pkgversion}-cftime
Requires: python%{python3_pkgversion}-Cython
Requires: python%{python3_pkgversion}-numpy
2017-03-07 15:55:18 +00:00
%{?python_provide:%python_provide python%{python3_pkgversion}-netcdf4}
Obsoletes: netcdf4-python%{python3_pkgversion} < 1.2.7-3
Provides: netcdf4-python%{python3_pkgversion} = %{version}-%{release}
2012-09-12 19:46:52 +00:00
%description -n python%{python3_pkgversion}-netcdf4
2012-09-12 19:46:52 +00:00
netCDF version 4 has many features not found in earlier versions of the
library and is implemented on top of HDF5. This module can read and write
files in both the new netCDF 4 and the old netCDF 3 format, and can create
files that are readable by HDF5 clients. The API modeled after
Scientific.IO.NetCDF, and should be familiar to users of that module.
Most new features of netCDF 4 are implemented, such as multiple unlimited
dimensions, groups and zlib data compression. All the new numeric data types
(such as 64 bit and unsigned integer types) are implemented. Compound and
variable length (vlen) data types are supported, but the enum and opaque data
types are not. Mixtures of compound and vlen data types (compound types
containing vlens, and vlens containing compound types) are not supported.
%prep
2019-04-03 01:38:49 +00:00
%setup -q -n %{name}-%{version}rel
2012-09-12 19:46:52 +00:00
%patch0 -p1 -b .norpath
%build
2021-02-14 05:03:20 +00:00
# Set to get libs from ncconfig to avoid directly linking to -lhdf5
export USE_NCCONFIG=1
2019-09-12 02:38:23 +00:00
%if ! ( 0%{?fedora} >= 30 || 0%{?rhel} >= 8 )
%py2_build
%endif
%py3_build
2012-09-12 19:46:52 +00:00
%install
2019-09-12 02:38:23 +00:00
# python3 is default in fedora, but not EPEL7
%if 0%{?fedora} || 0%{?rhel} >= 8
%if ! ( 0%{?fedora} >= 30 || 0%{?rhel} >= 8 )
%py2_install
%endif
%py3_install
%else
%py3_install
%py2_install
%endif
2012-09-12 19:46:52 +00:00
%check
cd test
2019-03-09 21:24:13 +00:00
export NO_NET=1
2019-09-12 02:38:23 +00:00
%if ! ( 0%{?fedora} >= 30 || 0%{?rhel} >= 8 )
PYTHONPATH=$(echo ../build/lib.*%{python2_version}) %{__python2} run_all.py
%endif
2018-10-07 18:13:49 +00:00
%ifarch s390x
# FAIL: runTest (tst_compoundvar.VariablesTestCase) -> assert (cmptype4 == dtype4a) # data type should be aligned
PYTHONPATH=$(echo ../build/lib.*%{python3_version}) %{__python3} run_all.py || :
%else
PYTHONPATH=$(echo ../build/lib.*%{python3_version}) %{__python3} run_all.py
2018-10-07 18:13:49 +00:00
%endif
2012-09-12 19:46:52 +00:00
%files
2021-01-24 20:23:17 +00:00
%license LICENSE
2012-09-12 19:46:52 +00:00
%{_bindir}/nc3tonc4
%{_bindir}/nc4tonc3
2014-02-07 05:47:59 +00:00
%{_bindir}/ncinfo
2012-09-12 19:46:52 +00:00
2019-09-12 02:38:23 +00:00
%if ! ( 0%{?fedora} >= 30 || 0%{?rhel} >= 8 )
%files -n python2-netcdf4
2021-01-24 20:23:17 +00:00
%license LICENSE
%doc Changelog docs examples README.md
%{python2_sitearch}/*
%endif
%files -n python%{python3_pkgversion}-netcdf4
2021-01-24 20:23:17 +00:00
%license LICENSE
%doc Changelog docs examples README.md
2012-09-12 19:46:52 +00:00
%{python3_sitearch}/*
%changelog
2022-01-20 05:27:05 +00:00
* Thu Jan 20 2022 Orion Poplawski <orion@nwra.com> - 1.5.8-1
- Update to 1.5.8
2021-11-21 04:43:16 +00:00
* Sun Nov 21 2021 Orion Poplawski <orion@nwra.com> - 1.5.7-2
- Rebuild for hdf5 1.12.1
2021-08-30 04:19:37 +00:00
* Mon Aug 30 2021 Orion Poplawski <orion@nwra.com> - 1.5.7-1
- Update to 1.5.7
2021-08-10 02:27:04 +00:00
* Tue Aug 10 2021 Orion Poplawski <orion@nwra.com> - 1.5.6-4
- Rebuild for netcdf 4.8.0
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-06-04 18:12:38 +00:00
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.5.6-2
- Rebuilt for Python 3.10
2021-02-14 05:03:20 +00:00
* Sun Feb 14 2021 Orion Poplawski <orion@nwra.com> - 1.5.6-1
- Update to 1.5.6
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2021-01-24 20:23:17 +00:00
* Sun Jan 24 2021 Orion Poplawski <orion@nwra.com> - 1.5.5.1-1
- Update to 1.5.5.1
2020-09-18 02:45:45 +00:00
* Thu Sep 17 20:16:46 MDT 2020 Orion Poplawski <orion@nwra.com> - 1.5.4-1
- Update to 1.5.4
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-05-26 00:53:57 +00:00
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5.3-3
- Rebuilt for Python 3.9
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-10-24 23:12:43 +00:00
* Thu Oct 24 2019 Orion Poplawski <orion@nwra.com> - 1.5.3-1
- Update to 1.5.3
2019-10-03 11:57:10 +00:00
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.2-2
- Rebuilt for Python 3.8.0rc1 (#1748018)
2019-09-11 02:10:41 +00:00
* Tue Sep 10 2019 Orion Poplawski <orion@nwra.com> - 1.5.2-1
- Update to 1.5.2
2019-08-19 08:20:32 +00:00
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.1.2-3
- Rebuilt for Python 3.8
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-05-07 01:23:11 +00:00
* Mon May 6 2019 Orion Poplawski <orion@nwra.com> - 1.5.1.2-1
- Update to 1.5.1.2
2019-05-01 17:42:41 +00:00
* Wed May 1 2019 Orion Poplawski <orion@nwra.com> - 1.5.1-1
- Update to 1.5.1
2019-04-03 01:38:49 +00:00
* Tue Apr 2 2019 Orion Poplawski <orion@nwra.com> - 1.5.0.1-1
- Update to 1.5.0.1
2019-03-18 02:44:06 +00:00
* Mon Mar 18 2019 Orion Poplawski <orion@nwra.com> - 1.4.3.2-2
- Rebuild for netcdf 4.6.3
2019-03-09 21:24:13 +00:00
* Sat Mar 9 2019 Orion Poplawski <orion@nwra.com> - 1.4.3.2-1
- Update to 1.4.3.2
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sun Oct 7 2018 Orion Poplawski <orion@nwra.com> - 1.3.1-1
- Update to 1.3.1
- Drop Python 2 in Fedora (bugz #1634978)
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.9-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-06-19 08:48:21 +00:00
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.9-6
- Rebuilt for Python 3.7
* Tue Mar 13 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.9-5
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-06-20 20:06:32 +00:00
* Tue Jun 20 2017 Orion Poplawski <orion@cora.nwra.com> - 1.2.9-1
- Update to 1.2.9
2017-03-07 15:55:18 +00:00
* Tue Mar 7 2017 Orion Poplawski <orion@cora.nwra.com> - 1.2-7-4
- Provide python-netcdf4
* Thu Mar 2 2017 Orion Poplawski <orion@cora.nwra.com> - 1.2-7-3
- Move python libraries into python?- sub-packages
- Make python3 default for Fedora
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2017-01-08 15:14:16 +00:00
* Sun Jan 8 2017 Orion Poplawski <orion@cora.nwra.com> - 1.2.7-1
- Update to 1.2.7
* Wed Dec 21 2016 Orion Poplawski <orion@cora.nwra.com> - 1.2.6-2
- Add upstream patch for python 3.6 support
2016-12-19 17:20:36 +00:00
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.6-2
- Rebuild for Python 3.6
2016-12-11 18:30:45 +00:00
* Sun Dec 11 2016 Orion Poplawski <orion@cora.nwra.com> - 1.2.6-1
- Update to 1.2.6
* Tue Nov 29 2016 Orion Poplawski <orion@cora.nwra.com> - 1.2.5-1
- Update to 1.2.5
- Enable python 3 for EPEL
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Fri Apr 15 2016 Orion Poplawski <orion@cora.nwra.com> - 1.2.4-1
- Update to 1.2.4
- Add pthon2/3-netcdf4 provides
* Fri Mar 11 2016 Orion Poplawski <orion@cora.nwra.com> - 1.2.3-1
- Update to 1.2.3
- Drop numpy patch
- Use %%license
* Sun Feb 7 2016 Orion Poplawski <orion@cora.nwra.com> - 1.2.2-1
- Update to 1.2.2
- Modernize spec
- Add upstream patch for numpy support
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2016-01-22 19:18:45 +00:00
* Fri Jan 22 2016 Orion Poplawski <orion@cora.nwra.com> - 1.1.6-4
- Rebuild for netcdf 4.4.0
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-3
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-03-10 22:29:39 +00:00
* Tue Mar 10 2015 Orion Poplawski <orion@cora.nwra.com> - 1.1.6-1
- Update to 1.1.6
2015-02-22 03:10:46 +00:00
* Sat Feb 21 2015 Orion Poplawski <orion@cora.nwra.com> - 1.1.4-1
- Update to 1.1.4
2014-12-22 04:43:43 +00:00
* Sun Dec 21 2014 Orion Poplawski <orion@cora.nwra.com> - 1.1.3-1
- Update to 1.1.3
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-07-09 18:56:53 +00:00
* Wed Jul 9 2014 Orion Poplawski <orion@cora.nwra.com> - 1.1.0-1
- Update to 1.1.0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-09 22:05:15 +00:00
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 1.0.9-2
- Rebuild for Python 3.4
2014-05-09 21:26:21 +00:00
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 1.0.9-1
- Update to 1.0.9
2014-05-09 21:28:51 +00:00
- Remove rpaths
2014-05-09 21:35:39 +00:00
- Add BR python{,3}-dateutil for tests
2014-05-09 21:45:59 +00:00
- Add BR/R on Cython
2014-05-09 21:26:21 +00:00
* Thu Mar 6 2014 Orion Poplawski <orion@cora.nwra.com> - 1.0.8-1
- Update to 1.0.8
- Update URL/source to github
2014-02-07 05:47:59 +00:00
* Thu Feb 6 2014 Orion Poplawski <orion@cora.nwra.com> - 1.0.7-1
- Update to 1.0.7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 21 2013 Orion Poplawski <orion@cora.nwra.com> - 1.0.2-1
- Update to 1.0.2
- Remove bundled ordereddict (Bug #913528), require it on EL6
- Run tests
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3.fix1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2012-09-12 21:30:21 +00:00
* Wed Sep 12 2012 Orion Poplawski <orion@cora.nwra.com> - 1.0-2.fix1
- Add patch to link only against netcdf
2012-09-12 19:46:52 +00:00
* Thu May 24 2012 Orion Poplawski <orion@cora.nwra.com> - 1.0-1.fix1
- Update to 1.0fix1
* Thu Apr 5 2012 Orion Poplawski <orion@cora.nwra.com> - 0.9.9-1
- Update to 0.9.9
* Thu Sep 8 2011 Orion Poplawski <orion@cora.nwra.com> - 0.9.7-1
- Initial package