summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-datapoint.spec96
-rw-r--r--sources1
3 files changed, 98 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..72c840b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/datapoint-0.9.8.tar.gz
diff --git a/python-datapoint.spec b/python-datapoint.spec
new file mode 100644
index 0000000..b0379a7
--- /dev/null
+++ b/python-datapoint.spec
@@ -0,0 +1,96 @@
+%global _empty_manifest_terminate_build 0
+Name: python-datapoint
+Version: 0.9.8
+Release: 1
+Summary: Python interface to the Met Office's Datapoint API
+License: GPLv3
+URL: https://github.com/ejep/datapoint-python
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ca/14/662c3071338c9c535f4eb981b2fe04aa3862c56ff7169b94a1309c55bdd9/datapoint-0.9.8.tar.gz
+BuildArch: noarch
+
+
+%description
+*A Python module for accessing weather data via the Met
+Office's open data API known as
+`Datapoint`.*
+**Disclaimer: This module is in no way part of the datapoint
+project/service. This module is intended to simplify the use of
+Datapoint for small Python projects (e.g school projects). No support
+for this module is provided by the Met Office and may break as the
+Datapoint service grows/evolves. The author will make reasonable efforts
+to keep it up to date and fully featured.**
+
+%package -n python3-datapoint
+Summary: Python interface to the Met Office's Datapoint API
+Provides: python-datapoint
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-datapoint
+*A Python module for accessing weather data via the Met
+Office's open data API known as
+`Datapoint`.*
+**Disclaimer: This module is in no way part of the datapoint
+project/service. This module is intended to simplify the use of
+Datapoint for small Python projects (e.g school projects). No support
+for this module is provided by the Met Office and may break as the
+Datapoint service grows/evolves. The author will make reasonable efforts
+to keep it up to date and fully featured.**
+
+%package help
+Summary: Development documents and examples for datapoint
+Provides: python3-datapoint-doc
+%description help
+*A Python module for accessing weather data via the Met
+Office's open data API known as
+`Datapoint`.*
+**Disclaimer: This module is in no way part of the datapoint
+project/service. This module is intended to simplify the use of
+Datapoint for small Python projects (e.g school projects). No support
+for this module is provided by the Met Office and may break as the
+Datapoint service grows/evolves. The author will make reasonable efforts
+to keep it up to date and fully featured.**
+
+%prep
+%autosetup -n datapoint-0.9.8
+
+%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-datapoint -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.8-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..3bac647
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+93305f86eb5b5d460f70c8ee258bec67 datapoint-0.9.8.tar.gz