summaryrefslogtreecommitdiff
path: root/python-cfdm.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-cfdm.spec')
-rw-r--r--python-cfdm.spec126
1 files changed, 126 insertions, 0 deletions
diff --git a/python-cfdm.spec b/python-cfdm.spec
new file mode 100644
index 0000000..656a194
--- /dev/null
+++ b/python-cfdm.spec
@@ -0,0 +1,126 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cfdm
+Version: 1.10.1.0
+Release: 1
+Summary: A Python reference implementation of the CF data model
+License: MIT
+URL: https://ncas-cms.github.io/cfdm
+Source0: https://mirrors.aliyun.com/pypi/web/packages/40/c5/1c34db3eed2e290ceb8462ece6022668e2b0047a21588015d9b6a171e31e/cfdm-1.10.1.0.tar.gz
+BuildArch: noarch
+
+
+%description
+ Data : air_temperature(time(12), latitude(64), longitude(128)) K
+ Cell methods : time(12): mean (interval: 1.0 month)
+ Dimension coords: time(12) = [0450-11-16 00:00:00, ..., 0451-10-16 12:00:00] noleap
+The **cfdm** package can
+* read field and domain constructs from netCDF and CDL datasets,
+* create new field and domain constructs in memory,
+* write and append field and domain constructs to netCDF datasets on disk,
+* read, write, and create coordinates defined by geometry cells,
+* read and write netCDF4 string data-type variables,
+* read, write, and create netCDF and CDL datasets containing hierarchical groups,
+* inspect field and domain constructs,
+* test whether two constructs are the same,
+* modify field and domain construct metadata and data,
+* create subspaces of field and domain constructs,
+* incorporate, and create, metadata stored in external files, and
+* read, write, and create data that have been compressed by convention
+ (i.e. ragged or gathered arrays, or coordinate arrays compressed
+ by subsampling), whilst presenting a view of the data in its
+ uncompressed form.
+
+%package -n python3-cfdm
+Summary: A Python reference implementation of the CF data model
+Provides: python-cfdm
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cfdm
+ Data : air_temperature(time(12), latitude(64), longitude(128)) K
+ Cell methods : time(12): mean (interval: 1.0 month)
+ Dimension coords: time(12) = [0450-11-16 00:00:00, ..., 0451-10-16 12:00:00] noleap
+The **cfdm** package can
+* read field and domain constructs from netCDF and CDL datasets,
+* create new field and domain constructs in memory,
+* write and append field and domain constructs to netCDF datasets on disk,
+* read, write, and create coordinates defined by geometry cells,
+* read and write netCDF4 string data-type variables,
+* read, write, and create netCDF and CDL datasets containing hierarchical groups,
+* inspect field and domain constructs,
+* test whether two constructs are the same,
+* modify field and domain construct metadata and data,
+* create subspaces of field and domain constructs,
+* incorporate, and create, metadata stored in external files, and
+* read, write, and create data that have been compressed by convention
+ (i.e. ragged or gathered arrays, or coordinate arrays compressed
+ by subsampling), whilst presenting a view of the data in its
+ uncompressed form.
+
+%package help
+Summary: Development documents and examples for cfdm
+Provides: python3-cfdm-doc
+%description help
+ Data : air_temperature(time(12), latitude(64), longitude(128)) K
+ Cell methods : time(12): mean (interval: 1.0 month)
+ Dimension coords: time(12) = [0450-11-16 00:00:00, ..., 0451-10-16 12:00:00] noleap
+The **cfdm** package can
+* read field and domain constructs from netCDF and CDL datasets,
+* create new field and domain constructs in memory,
+* write and append field and domain constructs to netCDF datasets on disk,
+* read, write, and create coordinates defined by geometry cells,
+* read and write netCDF4 string data-type variables,
+* read, write, and create netCDF and CDL datasets containing hierarchical groups,
+* inspect field and domain constructs,
+* test whether two constructs are the same,
+* modify field and domain construct metadata and data,
+* create subspaces of field and domain constructs,
+* incorporate, and create, metadata stored in external files, and
+* read, write, and create data that have been compressed by convention
+ (i.e. ragged or gathered arrays, or coordinate arrays compressed
+ by subsampling), whilst presenting a view of the data in its
+ uncompressed form.
+
+%prep
+%autosetup -n cfdm-1.10.1.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-cfdm -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.10.1.0-1
+- Package Spec generated