summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 10:02:57 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 10:02:57 +0000
commita312060810e5d3b93d5f1b754acb3d5522a2797e (patch)
treef85d645f4022017018dd362400491c181cf4c0dc
parent85b64d021489e2ad3ae19ed916d99fe65e18c82e (diff)
automatic import of python-pygdal-chmopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-pygdal-chm.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b32a94e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pygdal-chm-3.6.2.11.tar.gz
diff --git a/python-pygdal-chm.spec b/python-pygdal-chm.spec
new file mode 100644
index 0000000..98bcf40
--- /dev/null
+++ b/python-pygdal-chm.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pygdal-chm
+Version: 3.6.2.11
+Release: 1
+Summary: Virtualenv and setuptools friendly version of standard GDAL python bindings
+License: MIT
+URL: https://github.com/nextgis/pygdal
+Source0: https://mirrors.aliyun.com/pypi/web/packages/99/a3/1e6566ac78f4d88c3fb45d53bc7c0918f6b0725f2c56afbf0582e65e6364/pygdal-chm-3.6.2.11.tar.gz
+BuildArch: noarch
+
+
+%description
+b'pygdal\n======\n\nVirtualenv and setuptools friendly version of standard GDAL python bindings.\n\nThis package is for you if you had problems installing GDAL in your virtualenv. You can install GDAL into your virtualenv using this package but you still need to install GDAL library and its header files on your system. On Ubuntu it can be done this way:\n\n::\n\n $ sudo apt-get install libgdal1-dev\n\nVersion of the same package, and GDAL, so that if you have installed GDAL 1.8.1 you need to install the version 1.8.1 of this package:\n\n::\n\n $ gdal-config --version\n 1.8.1\n\n $ git clone git@github.com:nextgis/pygdal.git\n $ cd pygdal\n $ virtualenv --no-site-packages env\n $ env/bin/pip install 1.8.1/\n\nOr you can install package directly from PyPi:\n\n::\n\n $ virtualenv --no-site-packages env\n $ env/bin/pip install pygdal=="`gdal-config --version`.*"\n\nThe trick with range of versions required to support pygdal versioning.\n\nThe supported versions are ``1.8.1`` - ``3.4.1``. Package ``numpy`` is also listed as a dependency (using ``setup_requires`` and ``install_requires`` directives), so you do not need to install it before installing GDAL.\n\nIf you installed GDAL using the `KyngChaos frameworks <http://www.kyngchaos.com/software/frameworks/>`_, you may need to override the default values returned by ``gdal-config --prefix`` in order to install this package. This can be accomplished by setting the ``GDALHOME`` environment variable, e.g.\n\n::\n\n $ export GDALHOME="/Library/Frameworks/GDAL.framework/Versions/Current/unix/"\n $ env/bin/pip install pygdal=="`gdal-config --version`.*"\n\nAfter package is installed you can use is same way as standard GDAL bindings:\n\n::\n\n from osgeo import gdal\n\n'
+
+
+%package -n python3-pygdal-chm
+Summary: Virtualenv and setuptools friendly version of standard GDAL python bindings
+Provides: python-pygdal-chm
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pygdal-chm
+b'pygdal\n======\n\nVirtualenv and setuptools friendly version of standard GDAL python bindings.\n\nThis package is for you if you had problems installing GDAL in your virtualenv. You can install GDAL into your virtualenv using this package but you still need to install GDAL library and its header files on your system. On Ubuntu it can be done this way:\n\n::\n\n $ sudo apt-get install libgdal1-dev\n\nVersion of the same package, and GDAL, so that if you have installed GDAL 1.8.1 you need to install the version 1.8.1 of this package:\n\n::\n\n $ gdal-config --version\n 1.8.1\n\n $ git clone git@github.com:nextgis/pygdal.git\n $ cd pygdal\n $ virtualenv --no-site-packages env\n $ env/bin/pip install 1.8.1/\n\nOr you can install package directly from PyPi:\n\n::\n\n $ virtualenv --no-site-packages env\n $ env/bin/pip install pygdal=="`gdal-config --version`.*"\n\nThe trick with range of versions required to support pygdal versioning.\n\nThe supported versions are ``1.8.1`` - ``3.4.1``. Package ``numpy`` is also listed as a dependency (using ``setup_requires`` and ``install_requires`` directives), so you do not need to install it before installing GDAL.\n\nIf you installed GDAL using the `KyngChaos frameworks <http://www.kyngchaos.com/software/frameworks/>`_, you may need to override the default values returned by ``gdal-config --prefix`` in order to install this package. This can be accomplished by setting the ``GDALHOME`` environment variable, e.g.\n\n::\n\n $ export GDALHOME="/Library/Frameworks/GDAL.framework/Versions/Current/unix/"\n $ env/bin/pip install pygdal=="`gdal-config --version`.*"\n\nAfter package is installed you can use is same way as standard GDAL bindings:\n\n::\n\n from osgeo import gdal\n\n'
+
+
+%package help
+Summary: Development documents and examples for pygdal-chm
+Provides: python3-pygdal-chm-doc
+%description help
+b'pygdal\n======\n\nVirtualenv and setuptools friendly version of standard GDAL python bindings.\n\nThis package is for you if you had problems installing GDAL in your virtualenv. You can install GDAL into your virtualenv using this package but you still need to install GDAL library and its header files on your system. On Ubuntu it can be done this way:\n\n::\n\n $ sudo apt-get install libgdal1-dev\n\nVersion of the same package, and GDAL, so that if you have installed GDAL 1.8.1 you need to install the version 1.8.1 of this package:\n\n::\n\n $ gdal-config --version\n 1.8.1\n\n $ git clone git@github.com:nextgis/pygdal.git\n $ cd pygdal\n $ virtualenv --no-site-packages env\n $ env/bin/pip install 1.8.1/\n\nOr you can install package directly from PyPi:\n\n::\n\n $ virtualenv --no-site-packages env\n $ env/bin/pip install pygdal=="`gdal-config --version`.*"\n\nThe trick with range of versions required to support pygdal versioning.\n\nThe supported versions are ``1.8.1`` - ``3.4.1``. Package ``numpy`` is also listed as a dependency (using ``setup_requires`` and ``install_requires`` directives), so you do not need to install it before installing GDAL.\n\nIf you installed GDAL using the `KyngChaos frameworks <http://www.kyngchaos.com/software/frameworks/>`_, you may need to override the default values returned by ``gdal-config --prefix`` in order to install this package. This can be accomplished by setting the ``GDALHOME`` environment variable, e.g.\n\n::\n\n $ export GDALHOME="/Library/Frameworks/GDAL.framework/Versions/Current/unix/"\n $ env/bin/pip install pygdal=="`gdal-config --version`.*"\n\nAfter package is installed you can use is same way as standard GDAL bindings:\n\n::\n\n from osgeo import gdal\n\n'
+
+
+%prep
+%autosetup -n pygdal-chm-3.6.2.11
+
+%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-pygdal-chm -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 3.6.2.11-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..71e2c3f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+722de1bf1d456ce219fc62fffe0b37f7 pygdal-chm-3.6.2.11.tar.gz