summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-pyepr.spec116
-rw-r--r--sources1
3 files changed, 118 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9005f14 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyepr-1.1.4.tar.gz
diff --git a/python-pyepr.spec b/python-pyepr.spec
new file mode 100644
index 0000000..5b58ec2
--- /dev/null
+++ b/python-pyepr.spec
@@ -0,0 +1,116 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyepr
+Version: 1.1.4
+Release: 1
+Summary: Python ENVISAT Product Reader API
+License: GPL3
+URL: http://avalentino.github.io/pyepr
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/25/19/ffcad35cbf4143258916c7d98b48a8713004b8aca8ca0bc9fc119434ebbd/pyepr-1.1.4.tar.gz
+
+
+%description
+PyEPR provides Python_ bindings for the ENVISAT
+Product Reader C API (`EPR API`_) for reading satellite data from ENVISAT_
+ESA_ (European Space Agency) mission.
+
+PyEPR, as well as the `EPR API`_ for C, supports ENVISAT_ MERIS, AATSR
+Level 1B and Level 2 and also ASAR data products. It provides access to
+the data either on a geophysical (decoded, ready-to-use pixel samples)
+or on a raw data layer. The raw data access makes it possible to read
+any data field contained in a product file.
+
+.. _Python: https://www.python.org
+.. _`EPR API`: https://github.com/bcdev/epr-api
+.. _ENVISAT: https://envisat.esa.int
+.. _ESA: https://earth.esa.int
+
+
+%package -n python3-pyepr
+Summary: Python ENVISAT Product Reader API
+Provides: python-pyepr
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-pyepr
+PyEPR provides Python_ bindings for the ENVISAT
+Product Reader C API (`EPR API`_) for reading satellite data from ENVISAT_
+ESA_ (European Space Agency) mission.
+
+PyEPR, as well as the `EPR API`_ for C, supports ENVISAT_ MERIS, AATSR
+Level 1B and Level 2 and also ASAR data products. It provides access to
+the data either on a geophysical (decoded, ready-to-use pixel samples)
+or on a raw data layer. The raw data access makes it possible to read
+any data field contained in a product file.
+
+.. _Python: https://www.python.org
+.. _`EPR API`: https://github.com/bcdev/epr-api
+.. _ENVISAT: https://envisat.esa.int
+.. _ESA: https://earth.esa.int
+
+
+%package help
+Summary: Development documents and examples for pyepr
+Provides: python3-pyepr-doc
+%description help
+PyEPR provides Python_ bindings for the ENVISAT
+Product Reader C API (`EPR API`_) for reading satellite data from ENVISAT_
+ESA_ (European Space Agency) mission.
+
+PyEPR, as well as the `EPR API`_ for C, supports ENVISAT_ MERIS, AATSR
+Level 1B and Level 2 and also ASAR data products. It provides access to
+the data either on a geophysical (decoded, ready-to-use pixel samples)
+or on a raw data layer. The raw data access makes it possible to read
+any data field contained in a product file.
+
+.. _Python: https://www.python.org
+.. _`EPR API`: https://github.com/bcdev/epr-api
+.. _ENVISAT: https://envisat.esa.int
+.. _ESA: https://earth.esa.int
+
+
+%prep
+%autosetup -n pyepr-1.1.4
+
+%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-pyepr -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8e9abf6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+bc93f07dcdf5bd2759798af5da42a750 pyepr-1.1.4.tar.gz