summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 22:41:25 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 22:41:25 +0000
commite32a81283075b9fcf829084e0726141f9b17218f (patch)
treee0f345128af72ff70aa5e3518af1e3e7013295cc
parent99a3dc249b1e073586845a30a7811161b00ca778 (diff)
automatic import of python-kml2geojson
-rw-r--r--.gitignore1
-rw-r--r--python-kml2geojson.spec73
-rw-r--r--sources1
3 files changed, 75 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..24851e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/kml2geojson-5.1.0.tar.gz
diff --git a/python-kml2geojson.spec b/python-kml2geojson.spec
new file mode 100644
index 0000000..95fb4dc
--- /dev/null
+++ b/python-kml2geojson.spec
@@ -0,0 +1,73 @@
+%global _empty_manifest_terminate_build 0
+Name: python-kml2geojson
+Version: 5.1.0
+Release: 1
+Summary: A Python library to covert KML files to GeoJSON files
+License: MIT
+URL: https://github.com/mrcagney/kml2geojson
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2f/eb/45891463bdd2117cf468aa1cda382edd293799bb79ee2b6660709ad3f63f/kml2geojson-5.1.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-click
+
+%description
+Create a Python 3.8+ virtual environment and run ``poetry add kml2geojson``.
+
+%package -n python3-kml2geojson
+Summary: A Python library to covert KML files to GeoJSON files
+Provides: python-kml2geojson
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-kml2geojson
+Create a Python 3.8+ virtual environment and run ``poetry add kml2geojson``.
+
+%package help
+Summary: Development documents and examples for kml2geojson
+Provides: python3-kml2geojson-doc
+%description help
+Create a Python 3.8+ virtual environment and run ``poetry add kml2geojson``.
+
+%prep
+%autosetup -n kml2geojson-5.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-kml2geojson -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 5.1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ce2c43a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9f4494edd1794c728d00db6eb49ff58d kml2geojson-5.1.0.tar.gz