diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 21:23:12 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 21:23:12 +0000 |
| commit | c3440ff110ac50f2fc97490a1cbaec802a049f25 (patch) | |
| tree | 2d03e450bf96f48e1d8f23a9c4b80ba14ade9446 | |
| parent | ad5131967a1749bb2338f48da27dd8d18f5852e1 (diff) | |
automatic import of python-pyepr
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pyepr.spec | 116 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 118 insertions, 0 deletions
@@ -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 @@ -0,0 +1 @@ +bc93f07dcdf5bd2759798af5da42a750 pyepr-1.1.4.tar.gz |
